Exemplo n.º 1
0
// SetInputHints is a wrapper around gtk_text_view_set_input_hints().
func (v *TextView) SetInputHints(hints InputHints) {
	C.gtk_text_view_set_input_hints(v.native(), C.GtkInputHints(hints))
}
Exemplo n.º 2
0
	FILE_FILTER_DISPLAY_NAME = C.GtkFileFilterFlags(C.GTK_FILE_FILTER_DISPLAY_NAME)
	FILE_FILTER_MIME_TYPE    = C.GtkFileFilterFlags(C.GTK_FILE_FILTER_MIME_TYPE)

	// IconLookupFlags
	ICON_LOOKUP_NO_SVG           = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_NO_SVG)
	ICON_LOOKUP_FORCE_SVG        = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_FORCE_SVG)
	ICON_LOOKUP_USE_BUILTIN      = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_USE_BUILTIN)
	ICON_LOOKUP_GENERIC_FALLBACK = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_GENERIC_FALLBACK)
	ICON_LOOKUP_FORCE_SIZE       = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_FORCE_SIZE)
	ICON_LOOKUP_FORCE_REGULAR    = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_FORCE_REGULAR)
	ICON_LOOKUP_FORCE_SYMBOLIC   = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_FORCE_SYMBOLIC)
	ICON_LOOKUP_DIR_LTR          = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_DIR_LTR)
	ICON_LOOKUP_DIR_RTL          = C.GtkIconLookupFlags(C.GTK_ICON_LOOKUP_DIR_RTL)

	// InputHints
	INPUT_HINT_NONE                = C.GtkInputHints(C.GTK_INPUT_HINT_NONE)
	INPUT_HINT_SPELLCHECK          = C.GtkInputHints(C.GTK_INPUT_HINT_SPELLCHECK)
	INPUT_HINT_NO_SPELLCHECK       = C.GtkInputHints(C.GTK_INPUT_HINT_NO_SPELLCHECK)
	INPUT_HINT_WORD_COMPLETION     = C.GtkInputHints(C.GTK_INPUT_HINT_WORD_COMPLETION)
	INPUT_HINT_LOWERCASE           = C.GtkInputHints(C.GTK_INPUT_HINT_LOWERCASE)
	INPUT_HINT_UPPERCASE_CHARS     = C.GtkInputHints(C.GTK_INPUT_HINT_UPPERCASE_CHARS)
	INPUT_HINT_UPPERCASE_WORDS     = C.GtkInputHints(C.GTK_INPUT_HINT_UPPERCASE_WORDS)
	INPUT_HINT_UPPERCASE_SENTENCES = C.GtkInputHints(C.GTK_INPUT_HINT_UPPERCASE_SENTENCES)
	INPUT_HINT_INHIBIT_OSK         = C.GtkInputHints(C.GTK_INPUT_HINT_INHIBIT_OSK)

	// JunctionSides
	JUNCTION_NONE               = C.GtkJunctionSides(C.GTK_JUNCTION_NONE)
	JUNCTION_CORNER_TOPLEFT     = C.GtkJunctionSides(C.GTK_JUNCTION_CORNER_TOPLEFT)
	JUNCTION_CORNER_TOPRIGHT    = C.GtkJunctionSides(C.GTK_JUNCTION_CORNER_TOPRIGHT)
	JUNCTION_CORNER_BOTTOMLEFT  = C.GtkJunctionSides(C.GTK_JUNCTION_CORNER_BOTTOMLEFT)
	JUNCTION_CORNER_BOTTOMRIGHT = C.GtkJunctionSides(C.GTK_JUNCTION_CORNER_BOTTOMRIGHT)