Documentation ¶
Index ¶
- Constants
- func CreateGLArea()
- func CreateGLAreaAndAddToContainer(container Container)
- func CreateGLAreaAndAddToWindow()
- func CreateWindow(windowWidth, windowHeight int, title string) error
- func CursorDisable()
- func CursorDisabled() bool
- func CursorHidden() bool
- func CursorHide()
- func CursorShow()
- func CursorShown() bool
- func Init()
- func Main()
- func MainQuit()
- func SetGLArea(area GLArea)
- func SetWindow(window Window)
- func WindowGetSize() mgl32.Vec2
- func WindowSetFullscreen(b bool)
- func WindowSetSize(size mgl32.Vec2)
- type Adjustment
- type Box
- type Builder
- type Button
- type ButtonSignalCallback
- type Colorspace
- type Container
- type Dialog
- type Editable
- type Entry
- type Event
- type EventKey
- type FileChooser
- type FileChooserAction
- type FileChooserDialog
- type FileFilter
- type GLArea
- type GList
- type GObject
- func (this GObject) GetData(key string) string
- func (this GObject) SetData(key string, data string)
- func (this GObject) ToBox() Box
- func (this GObject) ToGLArea() GLArea
- func (this GObject) ToListBox() ListBox
- func (this GObject) ToMenuItem() MenuItem
- func (this GObject) ToToolButton() ToolButton
- func (this GObject) ToWidget() Widget
- type GPointer
- type Grid
- type Image
- type Label
- type ListBox
- type ListBoxRow
- type Menu
- type MenuBar
- type MenuItem
- type MenuItemSignalCallback
- type MenuShell
- type MotionNotifyCallback
- type Orientation
- type Pixbuf
- type RenderCallback
- type SpinButton
- type Switch
- type ToolButton
- type UseWholeWindowCallback
- type Widget
- func (this Widget) Destroy()
- func (this Widget) Equals(other Widget) bool
- func (this Widget) GetName() string
- func (this Widget) GetParent() Widget
- func (this Widget) GetSize() (int32, int32)
- func (this Widget) GetSizeRequest() (int32, int32)
- func (this Widget) GrabFocus()
- func (this Widget) HasFocus() bool
- func (this Widget) IsNULL() bool
- func (this Widget) Realize()
- func (this Widget) SetCanFocus(value bool)
- func (this Widget) SetName(name string)
- func (this Widget) SetSizeRequest(width, height int)
- func (this Widget) Show()
- func (this Widget) ShowAll()
- func (this Widget) SignalConnect(signal string, callback interface{})
- func (this Widget) ToBox() Box
- func (this Widget) ToContainer() Container
- func (this Widget) ToEntry() Entry
- func (this Widget) ToGrid() Grid
- func (this Widget) ToLabel() Label
- func (this Widget) ToListBox() ListBox
- func (this Widget) ToWindow() Window
- func (this Widget) Unrealize()
- type Window
Constants ¶
View Source
const ( RESPONSE_ACCEPT int32 = iota RESPONSE_NONE int32 = iota )
Variables ¶
This section is empty.
Functions ¶
func CreateGLArea ¶
func CreateGLArea()
func CreateGLAreaAndAddToContainer ¶
func CreateGLAreaAndAddToContainer(container Container)
func CreateGLAreaAndAddToWindow ¶
func CreateGLAreaAndAddToWindow()
func CreateWindow ¶
func CursorDisable ¶
func CursorDisable()
func CursorDisabled ¶
func CursorDisabled() bool
func CursorHidden ¶
func CursorHidden() bool
func CursorHide ¶
func CursorHide()
func CursorShow ¶
func CursorShow()
func CursorShown ¶
func CursorShown() bool
func WindowGetSize ¶
func WindowSetFullscreen ¶
func WindowSetFullscreen(b bool)
func WindowSetSize ¶
Types ¶
type Adjustment ¶
type Adjustment struct {
Handle *C.GtkAdjustment
}
type Builder ¶
type Builder struct {
Handle *C.GtkBuilder
}
func BuilderNew ¶
func BuilderNew() Builder
func (Builder) AddFromFile ¶
type Button ¶
func ButtonNewWithLabel ¶
func (Button) SignalConnect ¶
func (this Button) SignalConnect(signal string, callback ButtonSignalCallback)
func (Button) ToContainer ¶
type ButtonSignalCallback ¶
type ButtonSignalCallback func(button Button)
type Entry ¶
func (Entry) ToEditable ¶
type Event ¶
func (Event) ToEventKey ¶
type EventKey ¶
type EventKey struct {
Handle *C.GdkEventKey
}
type FileChooser ¶
type FileChooser struct {
Handle *C.GtkFileChooser
}
func (FileChooser) GetFilename ¶
func (this FileChooser) GetFilename() string
func (FileChooser) GetFilenames ¶
func (this FileChooser) GetFilenames() (files []string)
func (FileChooser) SetFilter ¶
func (this FileChooser) SetFilter(filter FileFilter)
func (FileChooser) SetSelectMultiple ¶
func (this FileChooser) SetSelectMultiple(select_multiple bool)
type FileChooserAction ¶
type FileChooserAction int
const ( FILE_CHOOSER_ACTION_OPEN FileChooserAction = iota FILE_CHOOSER_ACTION_SAVE FileChooserAction = iota FILE_CHOOSER_ACTION_SELECT_FOLDER FileChooserAction = iota FILE_CHOOSER_ACTION_CREATE_FOLDER FileChooserAction = iota )
type FileChooserDialog ¶
type FileChooserDialog struct {
Handle *C.GtkFileChooserDialog
}
func FileChooserDialogNew ¶
func FileChooserDialogNew(title string, parent Window, action FileChooserAction) FileChooserDialog
func (FileChooserDialog) ToDialog ¶
func (this FileChooserDialog) ToDialog() Dialog
func (FileChooserDialog) ToFileChooser ¶
func (this FileChooserDialog) ToFileChooser() FileChooser
func (FileChooserDialog) ToWidget ¶
func (this FileChooserDialog) ToWidget() Widget
type FileFilter ¶
type FileFilter struct {
Handle *C.GtkFileFilter
}
func FileFilterNew ¶
func FileFilterNew() FileFilter
func (FileFilter) AddPattern ¶
func (this FileFilter) AddPattern(pattern string)
type GObject ¶
func (GObject) ToMenuItem ¶
func (GObject) ToToolButton ¶
func (this GObject) ToToolButton() ToolButton
type Image ¶
func ImageNewFromPixbuf ¶
type ListBox ¶
type ListBox struct {
Handle *C.GtkListBox
}
func ListBoxNew ¶
func ListBoxNew() ListBox
func (ListBox) GetSelectedRow ¶
func (this ListBox) GetSelectedRow() ListBoxRow
func (ListBox) SignalConnect ¶
func (ListBox) ToContainer ¶
type ListBoxRow ¶
type ListBoxRow struct {
Handle *C.GtkListBoxRow
}
func (ListBoxRow) IsNULL ¶
func (this ListBoxRow) IsNULL() bool
func (ListBoxRow) ToContainer ¶
func (this ListBoxRow) ToContainer() Container
func (ListBoxRow) ToWidget ¶
func (this ListBoxRow) ToWidget() Widget
type Menu ¶
func (Menu) ToMenuShell ¶
type MenuBar ¶
type MenuBar struct {
Handle *C.GtkMenuBar
}
func MenuBarNew ¶
func MenuBarNew() MenuBar
func (MenuBar) ToContainer ¶
func (MenuBar) ToMenuShell ¶
type MenuItem ¶
type MenuItem struct {
Handle *C.GtkMenuItem
}
func MenuItemNewWithLabel ¶
func (MenuItem) SetSubmenu ¶
func (MenuItem) SignalConnect ¶
func (this MenuItem) SignalConnect(signal string, callback MenuItemSignalCallback)
type MenuItemSignalCallback ¶
type MenuItemSignalCallback func(menuItem MenuItem)
type MenuShell ¶
type MenuShell struct {
Handle *C.GtkMenuShell
}
type MotionNotifyCallback ¶
type MotionNotifyCallback func(x, y int16)
var OnMotion MotionNotifyCallback
type Orientation ¶
type Orientation int
const ( ORIENTATION_HORIZONTAL Orientation = iota ORIENTATION_VERTICAL Orientation = iota )
type Pixbuf ¶
func PixbufNewFromBytes ¶
func PixbufNewFromBytes(data []byte, colorspace Colorspace, has_alpha bool, bits_per_sample, width, height, rowstride int) Pixbuf
type SpinButton ¶
type SpinButton struct {
Handle *C.GtkSpinButton
}
func SpinButtonNew ¶
func SpinButtonNew(adjustment *Adjustment, climbRate float64, digits uint) SpinButton
func SpinButtonNewWithRange ¶
func SpinButtonNewWithRange(min, max, step float64) SpinButton
func (SpinButton) GetValue ¶
func (this SpinButton) GetValue() float64
func (SpinButton) SetValue ¶
func (this SpinButton) SetValue(val float64)
func (SpinButton) ToWidget ¶
func (this SpinButton) ToWidget() Widget
type ToolButton ¶
type ToolButton struct {
Handle *C.GtkToolButton
}
func (ToolButton) SignalConnect ¶
func (this ToolButton) SignalConnect(callback func(toolButton ToolButton))
func (ToolButton) ToWidget ¶
func (this ToolButton) ToWidget() Widget
type UseWholeWindowCallback ¶
type UseWholeWindowCallback func() bool
var OnUseWholeScreen UseWholeWindowCallback
type Widget ¶
func (Widget) GetSizeRequest ¶
func (Widget) SetCanFocus ¶
func (Widget) SetSizeRequest ¶
func (Widget) SignalConnect ¶
func (Widget) ToContainer ¶
type Window ¶
func CreateWindowObject ¶
func CreateWindowObject() Window
func (Window) ConfigureParameters ¶
func (this Window) ConfigureParameters()
func (Window) ConfigureParametersAdv ¶
func (Window) ConnectSignals ¶
func (this Window) ConnectSignals()
func (Window) SetAttachedTo ¶
func (Window) ToContainer ¶
Click to show internal directories.
Click to hide internal directories.