Example #1
0
// SetInputPurpose is a wrapper around gtk_text_view_set_input_purpose().
func (v *TextView) SetInputPurpose(purpose InputPurpose) {
	C.gtk_text_view_set_input_purpose(v.native(),
		C.GtkInputPurpose(purpose))
}
Example #2
0
	ICON_VIEW_DROP_RIGHT = C.GtkIconViewDropPosition(C.GTK_ICON_VIEW_DROP_RIGHT)
	ICON_VIEW_DROP_ABOVE = C.GtkIconViewDropPosition(C.GTK_ICON_VIEW_DROP_ABOVE)
	ICON_VIEW_DROP_BELOW = C.GtkIconViewDropPosition(C.GTK_ICON_VIEW_DROP_BELOW)

	// ImageType
	IMAGE_EMPTY     = C.GtkImageType(C.GTK_IMAGE_EMPTY)
	IMAGE_PIXBUF    = C.GtkImageType(C.GTK_IMAGE_PIXBUF)
	IMAGE_STOCK     = C.GtkImageType(C.GTK_IMAGE_STOCK)
	IMAGE_ICON_SET  = C.GtkImageType(C.GTK_IMAGE_ICON_SET)
	IMAGE_ANIMATION = C.GtkImageType(C.GTK_IMAGE_ANIMATION)
	IMAGE_ICON_NAME = C.GtkImageType(C.GTK_IMAGE_ICON_NAME)
	IMAGE_GICON     = C.GtkImageType(C.GTK_IMAGE_GICON)
	IMAGE_SURFACE   = C.GtkImageType(C.GTK_IMAGE_SURFACE)

	// InputPurpose
	INPUT_PURPOSE_FREE_FORM = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_FREE_FORM)
	INPUT_PURPOSE_ALPHA     = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_ALPHA)
	INPUT_PURPOSE_DIGITS    = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_DIGITS)
	INPUT_PURPOSE_NUMBER    = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_NUMBER)
	INPUT_PURPOSE_PHONE     = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_PHONE)
	INPUT_PURPOSE_URL       = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_URL)
	INPUT_PURPOSE_EMAIL     = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_EMAIL)
	INPUT_PURPOSE_NAME      = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_NAME)
	INPUT_PURPOSE_PASSWORD  = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_PASSWORD)
	INPUT_PURPOSE_PIN       = C.GtkInputPurpose(C.GTK_INPUT_PURPOSE_PIN)

	// Justification
	JUSTIFY_LEFT   = C.GtkJustification(C.GTK_JUSTIFY_LEFT)
	JUSTIFY_RIGHT  = C.GtkJustification(C.GTK_JUSTIFY_RIGHT)
	JUSTIFY_CENTER = C.GtkJustification(C.GTK_JUSTIFY_CENTER)
	JUSTIFY_FILL   = C.GtkJustification(C.GTK_JUSTIFY_FILL)