Example #1
0
// SetTransitionType is a wrapper around gtk_revealer_set_transition_type()
func (v *Revealer) SetTransitionType(transition RevealerTransitionType) {
	t := C.GtkRevealerTransitionType(transition)
	C.gtk_revealer_set_transition_type(v.native(), t)
}
Example #2
0
	// ResponseType
	RESPONSE_NONE         = C.GtkResponseType(C.GTK_RESPONSE_NONE)
	RESPONSE_REJECT       = C.GtkResponseType(C.GTK_RESPONSE_REJECT)
	RESPONSE_ACCEPT       = C.GtkResponseType(C.GTK_RESPONSE_ACCEPT)
	RESPONSE_DELETE_EVENT = C.GtkResponseType(C.GTK_RESPONSE_DELETE_EVENT)
	RESPONSE_OK           = C.GtkResponseType(C.GTK_RESPONSE_OK)
	RESPONSE_CANCEL       = C.GtkResponseType(C.GTK_RESPONSE_CANCEL)
	RESPONSE_CLOSE        = C.GtkResponseType(C.GTK_RESPONSE_CLOSE)
	RESPONSE_YES          = C.GtkResponseType(C.GTK_RESPONSE_YES)
	RESPONSE_NO           = C.GtkResponseType(C.GTK_RESPONSE_NO)
	RESPONSE_APPLY        = C.GtkResponseType(C.GTK_RESPONSE_APPLY)
	RESPONSE_HELP         = C.GtkResponseType(C.GTK_RESPONSE_HELP)

	// RevealerTransitionType
	REVEALER_TRANSITION_TYPE_NONE        = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_NONE)
	REVEALER_TRANSITION_TYPE_CROSSFADE   = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_CROSSFADE)
	REVEALER_TRANSITION_TYPE_SLIDE_RIGHT = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT)
	REVEALER_TRANSITION_TYPE_SLIDE_LEFT  = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT)
	REVEALER_TRANSITION_TYPE_SLIDE_UP    = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP)
	REVEALER_TRANSITION_TYPE_SLIDE_DOWN  = C.GtkRevealerTransitionType(C.GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN)

	// ScrollStep
	SCROLL_STEPS            = C.GtkScrollStep(C.GTK_SCROLL_STEPS)
	SCROLL_PAGES            = C.GtkScrollStep(C.GTK_SCROLL_PAGES)
	SCROLL_ENDS             = C.GtkScrollStep(C.GTK_SCROLL_ENDS)
	SCROLL_HORIZONTAL_STEPS = C.GtkScrollStep(C.GTK_SCROLL_HORIZONTAL_STEPS)
	SCROLL_HORIZONTAL_PAGES = C.GtkScrollStep(C.GTK_SCROLL_HORIZONTAL_PAGES)
	SCROLL_HORIZONTAL_ENDS  = C.GtkScrollStep(C.GTK_SCROLL_HORIZONTAL_ENDS)

	// ScrollType