Documentation ¶
Overview ¶
Package syscall provides platform-dependent routines required to support the package goey. In particular, when using GTK+3, the goal is to fill in some missing APIs that are not provided by gotk3's package. Anything found herein should be a candidate for upstreaming. Naming convention is to convert snake-case used by the C API to camel-case.
This package is intended for internal use.
This package contains platform-specific details.
Index ¶
- func IdleAdd(function func())
- func MainContextInvoke(function func())
- func PixbufGetFromWindow(root *gdk.Window, window *gtk.Window) *gdk.Pixbuf
- func PixbufNewFromBytes(bytes []uint8, colorspace gdk.Colorspace, hasAlpha bool, bitsPerSample int, ...) *gdk.Pixbuf
- func SetBounds(widget *gtk.Widget, x, y, width, height int)
- func WidgetGetPreferredHeightForWidth(widget *gtk.Widget, width int) (int, int)
- func WidgetSendKey(widget *gtk.Widget, keyval rune, modifiers gdk.ModifierType, release uint8)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MainContextInvoke ¶
func MainContextInvoke(function func())
MainContextInvoke is a wrapper around g_main_context_invoke.
func PixbufGetFromWindow ¶
PixbufGetFromWindow is a wrapper around gdk_pixbuf_get_from_window.
func PixbufNewFromBytes ¶
func PixbufNewFromBytes(bytes []uint8, colorspace gdk.Colorspace, hasAlpha bool, bitsPerSample int, width int, height int, rowStride int) *gdk.Pixbuf
PixbufNewFromBytes is a wrapper around gdk_pixbuf_new_from_data.
func SetBounds ¶
SetBounds is a specialized wrapper around gtk_widget_size_allocate. However, this function also assumes that the parent is a GtkLayout, and so also moves the widget using gtk_layout_move.
func WidgetGetPreferredHeightForWidth ¶
WidgetGetPreferredHeightForWidth is a wrapper around gtk_widget_get_preferred_height_for_width.
func WidgetSendKey ¶
WidgetSendKey is a wrapper around gtk_widget_event to send a key press and release event.
Types ¶
This section is empty.