コード例 #1
0
ファイル: gtk_enums.go プロジェクト: reusee/ggir
package gtk

/*
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#include <glib.h>
#include <stdlib.h>
*/
import "C"

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
コード例 #2
0
ファイル: widget.go プロジェクト: yamnikov-oleg/gotk3
// SetVAlign is a wrapper around gtk_widget_set_valign().
func (v *Widget) SetVAlign(align Align) {
	C.gtk_widget_set_valign(v.native(), C.GtkAlign(align))
}