예제 #1
0
파일: label.go 프로젝트: twstrike/gotk3
// SetJustify is a wrapper around gtk_label_set_justify().
func (v *Label) SetJustify(jtype Justification) {
	C.gtk_label_set_justify(v.native(), C.GtkJustification(jtype))
}
예제 #2
0
파일: gtk_enums.go 프로젝트: reusee/ggir
	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)

	// LevelBarMode
	LEVEL_BAR_MODE_CONTINUOUS = C.GtkLevelBarMode(C.GTK_LEVEL_BAR_MODE_CONTINUOUS)
	LEVEL_BAR_MODE_DISCRETE   = C.GtkLevelBarMode(C.GTK_LEVEL_BAR_MODE_DISCRETE)

	// License
	LICENSE_UNKNOWN       = C.GtkLicense(C.GTK_LICENSE_UNKNOWN)
	LICENSE_CUSTOM        = C.GtkLicense(C.GTK_LICENSE_CUSTOM)
	LICENSE_GPL_2_0       = C.GtkLicense(C.GTK_LICENSE_GPL_2_0)
	LICENSE_GPL_3_0       = C.GtkLicense(C.GTK_LICENSE_GPL_3_0)
	LICENSE_LGPL_2_1      = C.GtkLicense(C.GTK_LICENSE_LGPL_2_1)
	LICENSE_LGPL_3_0      = C.GtkLicense(C.GTK_LICENSE_LGPL_3_0)
예제 #3
0
파일: text_view.go 프로젝트: gotk3/gotk3
// SetJustification is a wrapper around gtk_text_view_set_justification().
func (v *TextView) SetJustification(justify Justification) {
	C.gtk_text_view_set_justification(v.native(), C.GtkJustification(justify))
}
예제 #4
0
파일: label.go 프로젝트: napsy/go-gtk3
func (self *Label) SetJustify(jtype GtkJustification) {
	C.gtk_label_set_justify(self.object, C.GtkJustification(jtype))
}