syscall

package
v0.0.0-...-241255c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdleAdd

func IdleAdd(function func())

IdleAdd is a wrapper around g_idle_add.

func MainContextInvoke

func MainContextInvoke(function func())

MainContextInvoke is a wrapper around g_main_context_invoke.

func PixbufGetFromWindow

func PixbufGetFromWindow(root *gdk.Window, window *gtk.Window) *gdk.Pixbuf

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

func SetBounds(widget *gtk.Widget, x, y, width, height int)

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

func WidgetGetPreferredHeightForWidth(widget *gtk.Widget, width int) (int, int)

WidgetGetPreferredHeightForWidth is a wrapper around gtk_widget_get_preferred_height_for_width.

func WidgetSendKey

func WidgetSendKey(widget *gtk.Widget, keyval rune, modifiers gdk.ModifierType, release uint8)

WidgetSendKey is a wrapper around gtk_widget_event to send a key press and release event.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL