Beispiel #1
0
func (self *Button) SetImagePosition(position GtkPositionType) {
	C.gtk_button_set_image_position(self.object, C.GtkPositionType(position))
}
Beispiel #2
0
	PATH_PRIO_THEME       = C.GtkPathPriorityType(C.GTK_PATH_PRIO_THEME)
	PATH_PRIO_RC          = C.GtkPathPriorityType(C.GTK_PATH_PRIO_RC)
	PATH_PRIO_HIGHEST     = C.GtkPathPriorityType(C.GTK_PATH_PRIO_HIGHEST)

	// PathType
	PATH_WIDGET       = C.GtkPathType(C.GTK_PATH_WIDGET)
	PATH_WIDGET_CLASS = C.GtkPathType(C.GTK_PATH_WIDGET_CLASS)
	PATH_CLASS        = C.GtkPathType(C.GTK_PATH_CLASS)

	// PolicyType
	POLICY_ALWAYS    = C.GtkPolicyType(C.GTK_POLICY_ALWAYS)
	POLICY_AUTOMATIC = C.GtkPolicyType(C.GTK_POLICY_AUTOMATIC)
	POLICY_NEVER     = C.GtkPolicyType(C.GTK_POLICY_NEVER)

	// PositionType
	POS_LEFT   = C.GtkPositionType(C.GTK_POS_LEFT)
	POS_RIGHT  = C.GtkPositionType(C.GTK_POS_RIGHT)
	POS_TOP    = C.GtkPositionType(C.GTK_POS_TOP)
	POS_BOTTOM = C.GtkPositionType(C.GTK_POS_BOTTOM)

	// PrintDuplex
	PRINT_DUPLEX_SIMPLEX    = C.GtkPrintDuplex(C.GTK_PRINT_DUPLEX_SIMPLEX)
	PRINT_DUPLEX_HORIZONTAL = C.GtkPrintDuplex(C.GTK_PRINT_DUPLEX_HORIZONTAL)
	PRINT_DUPLEX_VERTICAL   = C.GtkPrintDuplex(C.GTK_PRINT_DUPLEX_VERTICAL)

	// PrintError
	PRINT_ERROR_GENERAL        = C.GtkPrintError(C.GTK_PRINT_ERROR_GENERAL)
	PRINT_ERROR_INTERNAL_ERROR = C.GtkPrintError(C.GTK_PRINT_ERROR_INTERNAL_ERROR)
	PRINT_ERROR_NOMEM          = C.GtkPrintError(C.GTK_PRINT_ERROR_NOMEM)
	PRINT_ERROR_INVALID_FILE   = C.GtkPrintError(C.GTK_PRINT_ERROR_INVALID_FILE)
Beispiel #3
0
// GDK_AVAILABLE_IN_3_2
// void       gtk_grid_insert_next_to         (GtkGrid         *grid,
//                                             GtkWidget       *sibling,
//                                             GtkPositionType  side);
func (g *Grid) InsertNextTo(sibling *Widget, side PositionType) {
	C.gtk_grid_insert_next_to(g.c, sibling.c, C.GtkPositionType(side))
}
Beispiel #4
0
// SetPosition is a wrapper around gtk_popover_set_position().
func (v *Popover) SetPosition(position PositionType) {
	C.gtk_popover_set_position(v.native(), C.GtkPositionType(position))
}
Beispiel #5
0
// void       gtk_grid_attach_next_to         (GtkGrid         *grid,
//                                             GtkWidget       *child,
//                                             GtkWidget       *sibling,
//                                             GtkPositionType  side,
//                                             gint             width,
//                                             gint             height);
func (g *Grid) AttachNextTo(child, sibling *Widget,
	side PositionType, width, height int32) {
	C.gtk_grid_attach_next_to(g.c, child.c, sibling.c,
		C.GtkPositionType(side), C.gint(width), C.gint(height))
}