Exemplo n.º 1
0
	TREE_VIEW_GRID_LINES_HORIZONTAL = C.GtkTreeViewGridLines(C.GTK_TREE_VIEW_GRID_LINES_HORIZONTAL)
	TREE_VIEW_GRID_LINES_VERTICAL   = C.GtkTreeViewGridLines(C.GTK_TREE_VIEW_GRID_LINES_VERTICAL)
	TREE_VIEW_GRID_LINES_BOTH       = C.GtkTreeViewGridLines(C.GTK_TREE_VIEW_GRID_LINES_BOTH)

	// Unit
	UNIT_NONE   = C.GtkUnit(C.GTK_UNIT_NONE)
	UNIT_POINTS = C.GtkUnit(C.GTK_UNIT_POINTS)
	UNIT_INCH   = C.GtkUnit(C.GTK_UNIT_INCH)
	UNIT_MM     = C.GtkUnit(C.GTK_UNIT_MM)

	// WidgetHelpType
	WIDGET_HELP_TOOLTIP    = C.GtkWidgetHelpType(C.GTK_WIDGET_HELP_TOOLTIP)
	WIDGET_HELP_WHATS_THIS = C.GtkWidgetHelpType(C.GTK_WIDGET_HELP_WHATS_THIS)

	// WindowPosition
	WIN_POS_NONE             = C.GtkWindowPosition(C.GTK_WIN_POS_NONE)
	WIN_POS_CENTER           = C.GtkWindowPosition(C.GTK_WIN_POS_CENTER)
	WIN_POS_MOUSE            = C.GtkWindowPosition(C.GTK_WIN_POS_MOUSE)
	WIN_POS_CENTER_ALWAYS    = C.GtkWindowPosition(C.GTK_WIN_POS_CENTER_ALWAYS)
	WIN_POS_CENTER_ON_PARENT = C.GtkWindowPosition(C.GTK_WIN_POS_CENTER_ON_PARENT)

	// WindowType
	WINDOW_TOPLEVEL = C.GtkWindowType(C.GTK_WINDOW_TOPLEVEL)
	WINDOW_POPUP    = C.GtkWindowType(C.GTK_WINDOW_POPUP)

	// WrapMode
	WRAP_NONE      = C.GtkWrapMode(C.GTK_WRAP_NONE)
	WRAP_CHAR      = C.GtkWrapMode(C.GTK_WRAP_CHAR)
	WRAP_WORD      = C.GtkWrapMode(C.GTK_WRAP_WORD)
	WRAP_WORD_CHAR = C.GtkWrapMode(C.GTK_WRAP_WORD_CHAR)
)
Exemplo n.º 2
0
// SetPosition is a wrapper around gtk_window_set_position().
func (v *Window) SetPosition(position WindowPosition) {
	C.gtk_window_set_position(v.native(), C.GtkWindowPosition(position))
}