コード例 #1
0
ファイル: level_bar.go プロジェクト: rosatolen/coyim
// SetMode() is a wrapper around gtk_level_bar_set_mode().
func (v *LevelBar) SetMode(m LevelBarMode) {
	C.gtk_level_bar_set_mode(v.native(), C.GtkLevelBarMode(m))
}
コード例 #2
0
ファイル: gtk_enums.go プロジェクト: reusee/ggir
	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)
	LICENSE_BSD           = C.GtkLicense(C.GTK_LICENSE_BSD)
	LICENSE_MIT_X11       = C.GtkLicense(C.GTK_LICENSE_MIT_X11)
	LICENSE_ARTISTIC      = C.GtkLicense(C.GTK_LICENSE_ARTISTIC)
	LICENSE_GPL_2_0_ONLY  = C.GtkLicense(C.GTK_LICENSE_GPL_2_0_ONLY)
	LICENSE_GPL_3_0_ONLY  = C.GtkLicense(C.GTK_LICENSE_GPL_3_0_ONLY)
	LICENSE_LGPL_2_1_ONLY = C.GtkLicense(C.GTK_LICENSE_LGPL_2_1_ONLY)