File: widget_since_3_14.go

package info (click to toggle)
golang-github-gotk3-gotk3 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,332 kB
  • sloc: ansic: 904; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12

// See: https://developer.gnome.org/gtk3/3.14/api-index-3-14.html

package gtk

// #include <gtk/gtk.h>
import "C"

// GetClip is a wrapper around gtk_widget_get_clip().
func (v *Widget) GetClip() *Allocation {
	var clip Allocation
	C.gtk_widget_get_clip(v.native(), clip.native())
	return &clip
}

// SetClip is a wrapper around gtk_widget_set_clip().
func (v *Widget) SetClip(clip *Allocation) {
	C.gtk_widget_set_clip(v.native(), clip.native())
}