// ArrowNew is a wrapper around gtk_arrow_new().
func ArrowNew(arrowType ArrowType, shadowType ShadowType) (*Arrow, error) {
	c := C.gtk_arrow_new(C.GtkArrowType(arrowType),
		C.GtkShadowType(shadowType))
	if c == nil {
		return nil, nilPtrErr
	}
	obj := wrapObject(unsafe.Pointer(c))
	return wrapArrow(obj), nil
}
// Set is a wrapper around gtk_arrow_set().
func (v *Arrow) Set(arrowType ArrowType, shadowType ShadowType) {
	C.gtk_arrow_set(v.native(), C.GtkArrowType(arrowType), C.GtkShadowType(shadowType))
}
Beispiel #3
0
var (
	// Align
	ALIGN_FILL     = C.GtkAlign(C.GTK_ALIGN_FILL)
	ALIGN_START    = C.GtkAlign(C.GTK_ALIGN_START)
	ALIGN_END      = C.GtkAlign(C.GTK_ALIGN_END)
	ALIGN_CENTER   = C.GtkAlign(C.GTK_ALIGN_CENTER)
	ALIGN_BASELINE = C.GtkAlign(C.GTK_ALIGN_BASELINE)

	// ArrowPlacement
	ARROWS_BOTH  = C.GtkArrowPlacement(C.GTK_ARROWS_BOTH)
	ARROWS_START = C.GtkArrowPlacement(C.GTK_ARROWS_START)
	ARROWS_END   = C.GtkArrowPlacement(C.GTK_ARROWS_END)

	// ArrowType
	ARROW_UP    = C.GtkArrowType(C.GTK_ARROW_UP)
	ARROW_DOWN  = C.GtkArrowType(C.GTK_ARROW_DOWN)
	ARROW_LEFT  = C.GtkArrowType(C.GTK_ARROW_LEFT)
	ARROW_RIGHT = C.GtkArrowType(C.GTK_ARROW_RIGHT)
	ARROW_NONE  = C.GtkArrowType(C.GTK_ARROW_NONE)

	// AssistantPageType
	ASSISTANT_PAGE_CONTENT  = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_CONTENT)
	ASSISTANT_PAGE_INTRO    = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_INTRO)
	ASSISTANT_PAGE_CONFIRM  = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_CONFIRM)
	ASSISTANT_PAGE_SUMMARY  = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_SUMMARY)
	ASSISTANT_PAGE_PROGRESS = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_PROGRESS)
	ASSISTANT_PAGE_CUSTOM   = C.GtkAssistantPageType(C.GTK_ASSISTANT_PAGE_CUSTOM)

	// BaselinePosition
	BASELINE_POSITION_TOP    = C.GtkBaselinePosition(C.GTK_BASELINE_POSITION_TOP)