Example #1
0
// SetVisibleChildFull is a wrapper around gtk_stack_set_visible_child_full().
func (v *Stack) SetVisibleChildFull(name string, transaction StackTransitionType) {
	cstr := C.CString(name)
	defer C.free(unsafe.Pointer(cstr))
	C.gtk_stack_set_visible_child_full(v.native(), (*C.gchar)(cstr),
		C.GtkStackTransitionType(transaction))
}
Example #2
0
// SetTransitionType is a wrapper around gtk_stack_set_transition_type().
func (v *Stack) SetTransitionType(transition StackTransitionType) {
	C.gtk_stack_set_transition_type(v.native(), C.GtkStackTransitionType(transition))
}
Example #3
0
	// SpinButtonUpdatePolicy
	UPDATE_ALWAYS   = C.GtkSpinButtonUpdatePolicy(C.GTK_UPDATE_ALWAYS)
	UPDATE_IF_VALID = C.GtkSpinButtonUpdatePolicy(C.GTK_UPDATE_IF_VALID)

	// SpinType
	SPIN_STEP_FORWARD  = C.GtkSpinType(C.GTK_SPIN_STEP_FORWARD)
	SPIN_STEP_BACKWARD = C.GtkSpinType(C.GTK_SPIN_STEP_BACKWARD)
	SPIN_PAGE_FORWARD  = C.GtkSpinType(C.GTK_SPIN_PAGE_FORWARD)
	SPIN_PAGE_BACKWARD = C.GtkSpinType(C.GTK_SPIN_PAGE_BACKWARD)
	SPIN_HOME          = C.GtkSpinType(C.GTK_SPIN_HOME)
	SPIN_END           = C.GtkSpinType(C.GTK_SPIN_END)
	SPIN_USER_DEFINED  = C.GtkSpinType(C.GTK_SPIN_USER_DEFINED)

	// StackTransitionType
	STACK_TRANSITION_TYPE_NONE             = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_NONE)
	STACK_TRANSITION_TYPE_CROSSFADE        = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_CROSSFADE)
	STACK_TRANSITION_TYPE_SLIDE_RIGHT      = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT)
	STACK_TRANSITION_TYPE_SLIDE_LEFT       = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT)
	STACK_TRANSITION_TYPE_SLIDE_UP         = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP)
	STACK_TRANSITION_TYPE_SLIDE_DOWN       = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_DOWN)
	STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT)
	STACK_TRANSITION_TYPE_SLIDE_UP_DOWN    = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN)
	STACK_TRANSITION_TYPE_OVER_UP          = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_OVER_UP)
	STACK_TRANSITION_TYPE_OVER_DOWN        = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_OVER_DOWN)
	STACK_TRANSITION_TYPE_OVER_LEFT        = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_OVER_LEFT)
	STACK_TRANSITION_TYPE_OVER_RIGHT       = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_OVER_RIGHT)
	STACK_TRANSITION_TYPE_UNDER_UP         = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_UNDER_UP)
	STACK_TRANSITION_TYPE_UNDER_DOWN       = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_UNDER_DOWN)
	STACK_TRANSITION_TYPE_UNDER_LEFT       = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_UNDER_LEFT)
	STACK_TRANSITION_TYPE_UNDER_RIGHT      = C.GtkStackTransitionType(C.GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT)