VideoTools/third_party/gotk3/gtk/widget_since_3_14.go
Stu d4efa91ce1 Add vendored gotk3 GTK3 bindings for Go
Vendor gotk3 library to ensure consistent GTK3 bindings across
environments and simplify dependency management.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-15 05:40:43 -05:00

21 lines
499 B
Go

// +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())
}