Documentation ¶
Index ¶
- Constants
- func GtkCheckMenuItemWithLabel(label string) *C.GtkWidget
- func GtkMenuItemWithLabel(label string) *C.GtkWidget
- func GtkRadioMenuItemWithLabel(label string, group *C.GSList) *C.GtkWidget
- type Calloc
- type EventNotify
- type Frontend
- func (f *Frontend) BrowserOpenURL(url string)
- func (f *Frontend) Callback(message string)
- func (f *Frontend) ClipboardGetText() (string, error)
- func (f *Frontend) ClipboardSetText(text string) error
- func (f *Frontend) ExecJS(js string)
- func (f *Frontend) Hide()
- func (f *Frontend) MenuSetApplicationMenu(menu *menu.Menu)
- func (f *Frontend) MenuUpdateApplicationMenu()
- func (f *Frontend) MessageDialog(dialogOptions frontend.MessageDialogOptions) (string, error)
- func (f *Frontend) Notify(name string, data ...interface{})
- func (f *Frontend) OpenDirectoryDialog(dialogOptions frontend.OpenDialogOptions) (string, error)
- func (f *Frontend) OpenFileDialog(dialogOptions frontend.OpenDialogOptions) (result string, err error)
- func (f *Frontend) OpenMultipleFilesDialog(dialogOptions frontend.OpenDialogOptions) ([]string, error)
- func (f *Frontend) Quit()
- func (f *Frontend) Run(ctx context.Context) error
- func (f *Frontend) RunMainLoop()
- func (f *Frontend) SaveFileDialog(dialogOptions frontend.SaveDialogOptions) (string, error)
- func (f *Frontend) ScreenGetAll() ([]Screen, error)
- func (f *Frontend) Show()
- func (f *Frontend) WindowCenter()
- func (f *Frontend) WindowClose()
- func (f *Frontend) WindowFullscreen()
- func (f *Frontend) WindowGetPosition() (int, int)
- func (f *Frontend) WindowGetSize() (int, int)
- func (f *Frontend) WindowHide()
- func (f *Frontend) WindowIsFullscreen() bool
- func (f *Frontend) WindowIsMaximised() bool
- func (f *Frontend) WindowIsMinimised() bool
- func (f *Frontend) WindowIsNormal() bool
- func (f *Frontend) WindowMaximise()
- func (f *Frontend) WindowMinimise()
- func (f *Frontend) WindowPrint()
- func (f *Frontend) WindowReload()
- func (f *Frontend) WindowReloadApp()
- func (f *Frontend) WindowSetAlwaysOnTop(b bool)
- func (f *Frontend) WindowSetBackgroundColour(col *options.RGBA)
- func (f *Frontend) WindowSetDarkTheme()
- func (f *Frontend) WindowSetLightTheme()
- func (f *Frontend) WindowSetMaxSize(width int, height int)
- func (f *Frontend) WindowSetMinSize(width int, height int)
- func (f *Frontend) WindowSetPosition(x, y int)
- func (f *Frontend) WindowSetSize(width, height int)
- func (f *Frontend) WindowSetSystemDefaultTheme()
- func (f *Frontend) WindowSetTitle(title string)
- func (f *Frontend) WindowShow()
- func (f *Frontend) WindowToggleMaximise()
- func (f *Frontend) WindowUnfullscreen()
- func (f *Frontend) WindowUnmaximise()
- func (f *Frontend) WindowUnminimise()
- type Screen
- type Window
- func (w *Window) Center()
- func (w *Window) Close()
- func (w *Window) Destroy()
- func (w *Window) ExecJS(js string)
- func (w *Window) Fullscreen()
- func (w *Window) GetPosition() (int, int)
- func (w *Window) Hide()
- func (w *Window) IsFullScreen() bool
- func (w *Window) IsMaximised() bool
- func (w *Window) IsMinimised() bool
- func (w *Window) IsNormal() bool
- func (w *Window) Maximise()
- func (w *Window) MessageDialog(dialogOptions frontend.MessageDialogOptions)
- func (w *Window) Minimise()
- func (w *Window) OpenFileDialog(dialogOptions frontend.OpenDialogOptions, multipleFiles int, ...)
- func (w *Window) Quit()
- func (w *Window) Run(url string)
- func (w *Window) SetApplicationMenu(inmenu *menu.Menu)
- func (w *Window) SetBackgroundColour(r uint8, g uint8, b uint8, a uint8)
- func (w *Window) SetDecorated(frameless bool)
- func (w *Window) SetDefaultSize(width int, height int)
- func (w *Window) SetKeepAbove(top bool)
- func (w *Window) SetMaxSize(maxWidth int, maxHeight int)
- func (w *Window) SetMinSize(minWidth int, minHeight int)
- func (w *Window) SetPosition(x int, y int)
- func (w *Window) SetResizable(resizable bool)
- func (w *Window) SetSize(width int, height int)
- func (w *Window) SetTitle(title string)
- func (w *Window) SetWindowIcon(icon []byte)
- func (w *Window) Show()
- func (w *Window) Size() (int, int)
- func (w *Window) StartDrag()
- func (w *Window) StartResize(edge uintptr)
- func (w *Window) ToggleMaximise()
- func (w *Window) UnFullscreen()
- func (w *Window) UnMaximise()
- func (w *Window) UnMinimise()
Constants ¶
View Source
const ( GTK_FILE_CHOOSER_ACTION_OPEN C.GtkFileChooserAction = C.GTK_FILE_CHOOSER_ACTION_OPEN GTK_FILE_CHOOSER_ACTION_SAVE C.GtkFileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SAVE GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER C.GtkFileChooserAction = C.GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER )
Variables ¶
This section is empty.
Functions ¶
func GtkMenuItemWithLabel ¶
Types ¶
type Calloc ¶
type Calloc struct {
// contains filtered or unexported fields
}
Calloc handles alloc/dealloc of C data
type EventNotify ¶
type EventNotify struct { Name string `json:"name"` Data []interface{} `json:"data"` }
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶
func (*Frontend) BrowserOpenURL ¶
BrowserOpenURL Use the default browser to open the url
func (*Frontend) ClipboardGetText ¶
func (*Frontend) ClipboardSetText ¶
func (*Frontend) MenuSetApplicationMenu ¶
func (*Frontend) MenuUpdateApplicationMenu ¶
func (f *Frontend) MenuUpdateApplicationMenu()
func (*Frontend) MessageDialog ¶
func (f *Frontend) MessageDialog(dialogOptions frontend.MessageDialogOptions) (string, error)
func (*Frontend) OpenDirectoryDialog ¶
func (f *Frontend) OpenDirectoryDialog(dialogOptions frontend.OpenDialogOptions) (string, error)
func (*Frontend) OpenFileDialog ¶
func (f *Frontend) OpenFileDialog(dialogOptions frontend.OpenDialogOptions) (result string, err error)
func (*Frontend) OpenMultipleFilesDialog ¶
func (f *Frontend) OpenMultipleFilesDialog(dialogOptions frontend.OpenDialogOptions) ([]string, error)
func (*Frontend) RunMainLoop ¶
func (f *Frontend) RunMainLoop()
func (*Frontend) SaveFileDialog ¶
func (f *Frontend) SaveFileDialog(dialogOptions frontend.SaveDialogOptions) (string, error)
func (*Frontend) ScreenGetAll ¶
func (*Frontend) WindowCenter ¶
func (f *Frontend) WindowCenter()
func (*Frontend) WindowClose ¶
func (f *Frontend) WindowClose()
func (*Frontend) WindowFullscreen ¶
func (f *Frontend) WindowFullscreen()
func (*Frontend) WindowGetPosition ¶
func (*Frontend) WindowGetSize ¶
func (*Frontend) WindowHide ¶
func (f *Frontend) WindowHide()
func (*Frontend) WindowIsFullscreen ¶
func (*Frontend) WindowIsMaximised ¶
func (*Frontend) WindowIsMinimised ¶
func (*Frontend) WindowIsNormal ¶
func (*Frontend) WindowMaximise ¶
func (f *Frontend) WindowMaximise()
func (*Frontend) WindowMinimise ¶
func (f *Frontend) WindowMinimise()
func (*Frontend) WindowPrint ¶
func (f *Frontend) WindowPrint()
func (*Frontend) WindowReload ¶
func (f *Frontend) WindowReload()
func (*Frontend) WindowReloadApp ¶
func (f *Frontend) WindowReloadApp()
func (*Frontend) WindowSetAlwaysOnTop ¶
func (*Frontend) WindowSetBackgroundColour ¶
func (*Frontend) WindowSetDarkTheme ¶
func (f *Frontend) WindowSetDarkTheme()
func (*Frontend) WindowSetLightTheme ¶
func (f *Frontend) WindowSetLightTheme()
func (*Frontend) WindowSetMaxSize ¶
func (*Frontend) WindowSetMinSize ¶
func (*Frontend) WindowSetPosition ¶
func (*Frontend) WindowSetSize ¶
func (*Frontend) WindowSetSystemDefaultTheme ¶
func (f *Frontend) WindowSetSystemDefaultTheme()
func (*Frontend) WindowSetTitle ¶
func (*Frontend) WindowShow ¶
func (f *Frontend) WindowShow()
func (*Frontend) WindowToggleMaximise ¶
func (f *Frontend) WindowToggleMaximise()
func (*Frontend) WindowUnfullscreen ¶
func (f *Frontend) WindowUnfullscreen()
func (*Frontend) WindowUnmaximise ¶
func (f *Frontend) WindowUnmaximise()
func (*Frontend) WindowUnminimise ¶
func (f *Frontend) WindowUnminimise()
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) Fullscreen ¶
func (w *Window) Fullscreen()
func (*Window) GetPosition ¶
func (*Window) IsFullScreen ¶
func (*Window) IsMaximised ¶
func (*Window) IsMinimised ¶
func (*Window) MessageDialog ¶
func (w *Window) MessageDialog(dialogOptions frontend.MessageDialogOptions)
func (*Window) OpenFileDialog ¶
func (w *Window) OpenFileDialog(dialogOptions frontend.OpenDialogOptions, multipleFiles int, action C.GtkFileChooserAction)
func (*Window) SetApplicationMenu ¶
func (*Window) SetBackgroundColour ¶
func (*Window) SetDecorated ¶
func (*Window) SetDefaultSize ¶
func (*Window) SetKeepAbove ¶
func (*Window) SetMaxSize ¶
func (*Window) SetMinSize ¶
func (*Window) SetPosition ¶
func (*Window) SetResizable ¶
func (*Window) SetWindowIcon ¶
func (*Window) StartResize ¶
func (*Window) ToggleMaximise ¶
func (w *Window) ToggleMaximise()
func (*Window) UnFullscreen ¶
func (w *Window) UnFullscreen()
func (*Window) UnMaximise ¶
func (w *Window) UnMaximise()
func (*Window) UnMinimise ¶
func (w *Window) UnMinimise()
Click to show internal directories.
Click to hide internal directories.