Esempio n. 1
0
File: box.go Progetto: napsy/go-gtk3
func (self *Box) SetChildPacking(w WidgetLike, expand bool, fill bool, padding int, ptype GtkPackType) {
	e := gobject.GBool(expand)
	f := gobject.GBool(fill)
	defer e.Free()
	defer f.Free()
	C.gtk_box_set_child_packing(self.object, w.W().object, *((*C.gboolean)(e.GetPtr())), *((*C.gboolean)(f.GetPtr())),
		C.guint(padding), C.GtkPackType(ptype))
}
Esempio n. 2
0
	NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT = C.GtkNumberUpLayout(C.GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT)
	NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT = C.GtkNumberUpLayout(C.GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT)
	NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT = C.GtkNumberUpLayout(C.GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT)

	// Orientation
	ORIENTATION_HORIZONTAL = C.GtkOrientation(C.GTK_ORIENTATION_HORIZONTAL)
	ORIENTATION_VERTICAL   = C.GtkOrientation(C.GTK_ORIENTATION_VERTICAL)

	// PackDirection
	PACK_DIRECTION_LTR = C.GtkPackDirection(C.GTK_PACK_DIRECTION_LTR)
	PACK_DIRECTION_RTL = C.GtkPackDirection(C.GTK_PACK_DIRECTION_RTL)
	PACK_DIRECTION_TTB = C.GtkPackDirection(C.GTK_PACK_DIRECTION_TTB)
	PACK_DIRECTION_BTT = C.GtkPackDirection(C.GTK_PACK_DIRECTION_BTT)

	// PackType
	PACK_START = C.GtkPackType(C.GTK_PACK_START)
	PACK_END   = C.GtkPackType(C.GTK_PACK_END)

	// PageOrientation
	PAGE_ORIENTATION_PORTRAIT          = C.GtkPageOrientation(C.GTK_PAGE_ORIENTATION_PORTRAIT)
	PAGE_ORIENTATION_LANDSCAPE         = C.GtkPageOrientation(C.GTK_PAGE_ORIENTATION_LANDSCAPE)
	PAGE_ORIENTATION_REVERSE_PORTRAIT  = C.GtkPageOrientation(C.GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT)
	PAGE_ORIENTATION_REVERSE_LANDSCAPE = C.GtkPageOrientation(C.GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE)

	// PageSet
	PAGE_SET_ALL  = C.GtkPageSet(C.GTK_PAGE_SET_ALL)
	PAGE_SET_EVEN = C.GtkPageSet(C.GTK_PAGE_SET_EVEN)
	PAGE_SET_ODD  = C.GtkPageSet(C.GTK_PAGE_SET_ODD)

	// PanDirection
	PAN_DIRECTION_LEFT  = C.GtkPanDirection(C.GTK_PAN_DIRECTION_LEFT)