示例#1
0
// SetLicenseType is a wrapper around gtk_about_dialog_set_license_type().
func (v *AboutDialog) SetLicenseType(license License) {
	C.gtk_about_dialog_set_license_type(v.native(), C.GtkLicense(license))
}
示例#2
0
文件: gtk_enums.go 项目: reusee/ggir
	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)
	LICENSE_LGPL_3_0_ONLY = C.GtkLicense(C.GTK_LICENSE_LGPL_3_0_ONLY)

	// MenuDirectionType
	MENU_DIR_PARENT = C.GtkMenuDirectionType(C.GTK_MENU_DIR_PARENT)