Documentation ¶
Overview ¶
Go bindings for GDK 3. Supports version 3.6 and later.
Index ¶
- type Atom
- type Colorspace
- type Device
- type DeviceManager
- type Display
- func (v *Display) Beep()
- func (v *Display) Close()
- func (v *Display) DeviceIsGrabbed(device *Device) bool
- func (v *Display) Flush()
- func (v *Display) GetAppLaunchContext()
- func (v *Display) GetDefaultCursorSize() uint
- func (v *Display) GetDefaultGroup() (*Window, error)
- func (v *Display) GetDefaultScreen() (*Screen, error)
- func (v *Display) GetDeviceManager() (*DeviceManager, error)
- func (v *Display) GetEvent() (*Event, error)
- func (v *Display) GetMaximalCursorSize() (width, height uint)
- func (v *Display) GetName() (string, error)
- func (v *Display) GetScreen(screenNum int) (*Screen, error)
- func (v *Display) HasPending() bool
- func (v *Display) IsClosed() bool
- func (v *Display) Native() uintptr
- func (v *Display) NotifyStartupComplete(startupID string)
- func (v *Display) PeekEvent() (*Event, error)
- func (v *Display) PutEvent(event *Event)
- func (v *Display) RequestSelectionNotification(selection Atom) bool
- func (v *Display) SetDoubleClickDistance(distance uint)
- func (v *Display) SetDoubleClickTime(msec uint)
- func (v *Display) StoreClipboard(clipboardWindow *Window, time uint32, targets ...Atom)
- func (v *Display) SupportsClipboardPersistence() bool
- func (v *Display) SupportsColorCursor() bool
- func (v *Display) SupportsComposite() bool
- func (v *Display) SupportsCursorAlpha() bool
- func (v *Display) SupportsInputShapes() bool
- func (v *Display) SupportsSelectionNotification() bool
- func (v *Display) SupportsShapes() bool
- func (v *Display) Sync()
- type Event
- type EventKey
- type InterpType
- type Pixbuf
- func (v *Pixbuf) GetBitsPerSample() int
- func (v *Pixbuf) GetByteLength() int
- func (v *Pixbuf) GetColorspace() Colorspace
- func (v *Pixbuf) GetHasAlpha() bool
- func (v *Pixbuf) GetHeight() int
- func (v *Pixbuf) GetNChannels() int
- func (v *Pixbuf) GetOption(key string) (value string, ok bool)
- func (v *Pixbuf) GetPixels() (channels []byte)
- func (v *Pixbuf) GetRowstride() int
- func (v *Pixbuf) GetWidth() int
- func (v *Pixbuf) Native() uintptr
- func (v *Pixbuf) RotateSimple(angle PixbufRotation) (*Pixbuf, error)
- func (v *Pixbuf) ScaleSimple(destWidth, destHeight int, interpType InterpType) (*Pixbuf, error)
- type PixbufAlphaMode
- type PixbufRotation
- type Screen
- type Visual
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Atom ¶
type Atom uintptr
Atom is a representation of GDK's GdkAtom.
const ( SELECTION_PRIMARY Atom = 1 SELECTION_SECONDARY Atom = 2 SELECTION_CLIPBOARD Atom = 69 TARGET_BITMAP Atom = 5 TARGET_COLORMAP Atom = 7 TARGET_DRAWABLE Atom = 17 TARGET_PIXMAP Atom = 20 TARGET_STRING Atom = 31 SELECTION_TYPE_ATOM Atom = 4 SELECTION_TYPE_BITMAP Atom = 5 SELECTION_TYPE_COLORMAP Atom = 7 SELECTION_TYPE_DRAWABLE Atom = 17 SELECTION_TYPE_INTEGER Atom = 19 SELECTION_TYPE_PIXMAP Atom = 20 SELECTION_TYPE_WINDOW Atom = 33 SELECTION_TYPE_STRING Atom = 31 )
Selections
type Colorspace ¶
type Colorspace int
Colorspace is a representation of GDK's GdkColorspace.
const (
COLORSPACE_RGB Colorspace = C.GDK_COLORSPACE_RGB
)
type DeviceManager ¶
DeviceManager is a representation of GDK's GdkDeviceManager.
func (*DeviceManager) Native ¶
func (v *DeviceManager) Native() uintptr
Native returns a pointer to the underlying GdkDeviceManager.
type Display ¶
Display is a representation of GDK's GdkDisplay.
func DisplayGetDefault ¶
DisplayGetDefault() is a wrapper around gdk_display_get_default().
func DisplayOpen ¶
DisplayOpen() is a wrapper around gdk_display_open().
func (*Display) DeviceIsGrabbed ¶
DeviceIsGrabbed() is a wrapper around gdk_display_device_is_grabbed().
func (*Display) GetAppLaunchContext ¶
func (v *Display) GetAppLaunchContext()
TODO(jrick) glib.AppLaunchContext GdkAppLaunchContext
func (*Display) GetDefaultCursorSize ¶
GetDefaultCursorSize() is a wrapper around gdk_display_get_default_cursor_size().
func (*Display) GetDefaultGroup ¶
GetDefaultGroup() is a wrapper around gdk_display_get_default_group().
func (*Display) GetDefaultScreen ¶
GetDefaultScreen() is a wrapper around gdk_display_get_default_screen().
func (*Display) GetDeviceManager ¶
func (v *Display) GetDeviceManager() (*DeviceManager, error)
GetDeviceManager() is a wrapper around gdk_display_get_device_manager().
func (*Display) GetMaximalCursorSize ¶
GetMaximalCursorSize() is a wrapper around gdk_display_get_maximal_cursor_size().
func (*Display) HasPending ¶
HasPending() is a wrapper around gdk_display_has_pending().
func (*Display) NotifyStartupComplete ¶
NotifyStartupComplete() is a wrapper around gdk_display_notify_startup_complete().
func (*Display) RequestSelectionNotification ¶
RequestSelectionNotification() is a wrapper around gdk_display_request_selection_notification().
func (*Display) SetDoubleClickDistance ¶
SetDoubleClickDistance() is a wrapper around gdk_display_set_double_click_distance().
func (*Display) SetDoubleClickTime ¶
SetDoubleClickTime() is a wrapper around gdk_display_set_double_click_time().
func (*Display) StoreClipboard ¶
TODO(jrick)
func (*Display) SupportsClipboardPersistence ¶
SupportsClipboardPersistence() is a wrapper around gdk_display_supports_clipboard_persistence().
func (*Display) SupportsColorCursor ¶
SupportsColorCursor() is a wrapper around gdk_display_supports_cursor_color().
func (*Display) SupportsComposite ¶
SupportsComposite() is a wrapper around gdk_display_supports_composite().
func (*Display) SupportsCursorAlpha ¶
SupportsCursorAlpha() is a wrapper around gdk_display_supports_cursor_alpha().
func (*Display) SupportsInputShapes ¶
SupportsInputShapes() is a wrapper around gdk_display_supports_input_shapes().
func (*Display) SupportsSelectionNotification ¶
SupportsSelectionNotification() is a wrapper around gdk_display_supports_selection_notification().
func (*Display) SupportsShapes ¶
SupportsShapes() is a wrapper around gdk_display_supports_shapes().
type InterpType ¶
type InterpType int
InterpType is a representation of GDK's GdkInterpType.
const ( INTERP_NEAREST InterpType = C.GDK_INTERP_NEAREST INTERP_TILES InterpType = C.GDK_INTERP_TILES INTERP_BILINEAR InterpType = C.GDK_INTERP_BILINEAR INTERP_HYPER InterpType = C.GDK_INTERP_HYPER )
type Pixbuf ¶
Pixbuf is a representation of GDK's GdkPixbuf.
func PixbufNew ¶
func PixbufNew(colorspace Colorspace, hasAlpha bool, bitsPerSample, width, height int) (*Pixbuf, error)
PixbufNew is a wrapper around gdk_pixbuf_new().
func PixbufNewFromFile ¶
PixbufNewFromFile is a wrapper around gdk_pixbuf_new_from_file().
func (*Pixbuf) GetBitsPerSample ¶
GetBitsPerSample is a wrapper around gdk_pixbuf_get_bits_per_sample().
func (*Pixbuf) GetByteLength ¶
GetByteLength is a wrapper around gdk_pixbuf_get_byte_length().
func (*Pixbuf) GetColorspace ¶
func (v *Pixbuf) GetColorspace() Colorspace
GetColorspace is a wrapper around gdk_pixbuf_get_colorspace().
func (*Pixbuf) GetHasAlpha ¶
GetHasAlpha is a wrapper around gdk_pixbuf_get_has_alpha().
func (*Pixbuf) GetNChannels ¶
GetNChannels is a wrapper around gdk_pixbuf_get_n_channels().
func (*Pixbuf) GetOption ¶
GetOption is a wrapper around gdk_pixbuf_get_option(). ok is true if the key has an associated value.
func (*Pixbuf) GetPixels ¶
GetPixels is a wrapper around gdk_pixbuf_get_pixels_with_length(). A Go slice is used to represent the underlying Pixbuf data array, one byte per channel.
func (*Pixbuf) GetRowstride ¶
GetRowstride is a wrapper around gdk_pixbuf_get_rowstride().
func (*Pixbuf) RotateSimple ¶
func (v *Pixbuf) RotateSimple(angle PixbufRotation) (*Pixbuf, error)
RotateSimple is a wrapper around gdk_pixbuf_rotate_simple().
func (*Pixbuf) ScaleSimple ¶
func (v *Pixbuf) ScaleSimple(destWidth, destHeight int, interpType InterpType) (*Pixbuf, error)
ScaleSimple is a wrapper around gdk_pixbuf_scale_simple().
type PixbufAlphaMode ¶
type PixbufAlphaMode int
PixbufAlphaMode is a representation of GDK's GdkPixbufAlphaMode.
const ( GDK_PIXBUF_ALPHA_BILEVEL PixbufAlphaMode = C.GDK_PIXBUF_ALPHA_BILEVEL GDK_PIXBUF_ALPHA_FULL PixbufAlphaMode = C.GDK_PIXBUF_ALPHA_FULL )
type PixbufRotation ¶
type PixbufRotation int
PixbufRotation is a representation of GDK's GdkPixbufRotation.
const ( PIXBUF_ROTATE_NONE PixbufRotation = C.GDK_PIXBUF_ROTATE_NONE PIXBUF_ROTATE_COUNTERCLOCKWISE PixbufRotation = C.GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE PIXBUF_ROTATE_UPSIDEDOWN PixbufRotation = C.GDK_PIXBUF_ROTATE_UPSIDEDOWN PIXBUF_ROTATE_CLOCKWISE PixbufRotation = C.GDK_PIXBUF_ROTATE_CLOCKWISE )
type Screen ¶
Screen is a representation of GDK's GdkScreen.
func (*Screen) GetRGBAVisual ¶
GetRGBAVisual is a wrapper around gdk_screen_get_rgba_visual().
func (*Screen) GetSystemVisual ¶
GetSystemVisual is a wrapper around gdk_screen_get_system_visual().