Exemplo n.º 1
0
// SetGravity is a wrapper around gtk_window_set_gravity().
func (v *Window) SetGravity(gravity gdk.GdkGravity) {
	C.gtk_window_set_gravity(v.native(), C.GdkGravity(gravity))
}
Exemplo n.º 2
0
	FULLSCREEN_ON_ALL_MONITORS    = C.GdkFullscreenMode(C.GDK_FULLSCREEN_ON_ALL_MONITORS)

	// GrabOwnership
	OWNERSHIP_NONE        = C.GdkGrabOwnership(C.GDK_OWNERSHIP_NONE)
	OWNERSHIP_WINDOW      = C.GdkGrabOwnership(C.GDK_OWNERSHIP_WINDOW)
	OWNERSHIP_APPLICATION = C.GdkGrabOwnership(C.GDK_OWNERSHIP_APPLICATION)

	// GrabStatus
	GRAB_SUCCESS         = C.GdkGrabStatus(C.GDK_GRAB_SUCCESS)
	GRAB_ALREADY_GRABBED = C.GdkGrabStatus(C.GDK_GRAB_ALREADY_GRABBED)
	GRAB_INVALID_TIME    = C.GdkGrabStatus(C.GDK_GRAB_INVALID_TIME)
	GRAB_NOT_VIEWABLE    = C.GdkGrabStatus(C.GDK_GRAB_NOT_VIEWABLE)
	GRAB_FROZEN          = C.GdkGrabStatus(C.GDK_GRAB_FROZEN)

	// Gravity
	GRAVITY_NORTH_WEST = C.GdkGravity(C.GDK_GRAVITY_NORTH_WEST)
	GRAVITY_NORTH      = C.GdkGravity(C.GDK_GRAVITY_NORTH)
	GRAVITY_NORTH_EAST = C.GdkGravity(C.GDK_GRAVITY_NORTH_EAST)
	GRAVITY_WEST       = C.GdkGravity(C.GDK_GRAVITY_WEST)
	GRAVITY_CENTER     = C.GdkGravity(C.GDK_GRAVITY_CENTER)
	GRAVITY_EAST       = C.GdkGravity(C.GDK_GRAVITY_EAST)
	GRAVITY_SOUTH_WEST = C.GdkGravity(C.GDK_GRAVITY_SOUTH_WEST)
	GRAVITY_SOUTH      = C.GdkGravity(C.GDK_GRAVITY_SOUTH)
	GRAVITY_SOUTH_EAST = C.GdkGravity(C.GDK_GRAVITY_SOUTH_EAST)
	GRAVITY_STATIC     = C.GdkGravity(C.GDK_GRAVITY_STATIC)

	// InputMode
	MODE_DISABLED = C.GdkInputMode(C.GDK_MODE_DISABLED)
	MODE_SCREEN   = C.GdkInputMode(C.GDK_MODE_SCREEN)
	MODE_WINDOW   = C.GdkInputMode(C.GDK_MODE_WINDOW)