Documentation ¶
Overview ¶
Package glfw provides a full Fyne desktop driver that uses the system OpenGL libraries. This supports Windows, Mac OS X and Linux using the gl and glfw packages from go-gl.
Index ¶
Constants ¶
View Source
const ( CursorMode glfw.InputMode = glfw.CursorMode StickyKeysMode glfw.InputMode = glfw.StickyKeysMode StickyMouseButtonsMode glfw.InputMode = glfw.StickyMouseButtonsMode LockKeyMods glfw.InputMode = glfw.LockKeyMods RawMouseMotion glfw.InputMode = glfw.RawMouseMotion )
Input modes.
View Source
const ( CursorNormal int = glfw.CursorNormal CursorHidden int = glfw.CursorHidden CursorDisabled int = glfw.CursorDisabled )
Cursor mode values.
Variables ¶
This section is empty.
Functions ¶
func GetGlfwTime ¶
func GetGlfwTime() float64
func NewGLDriver ¶
func NewGLDriver() fyne.Driver
NewGLDriver sets up a new Driver instance implemented using the GLFW Go library and OpenGL bindings.
Types ¶
type MenuBar ¶
type MenuBar struct { widget.Base Items []fyne.CanvasObject // contains filtered or unexported fields }
MenuBar is a widget for displaying a fyne.MainMenu in a bar.
func NewMenuBar ¶
func NewMenuBar(mainMenu *fyne.MainMenu, canvas fyne.Canvas) *MenuBar
NewMenuBar creates a menu bar populated with items from the passed main menu structure.
func (*MenuBar) CreateRenderer ¶
func (b *MenuBar) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the menu bar.
Implements: fyne.Widget
Source Files ¶
- animation.go
- canvas.go
- clipboard.go
- device.go
- device_desktop.go
- driver.go
- driver_desktop.go
- driver_notwayland.go
- driver_notwindows.go
- glfw_core.go
- key.go
- loop.go
- loop_desktop.go
- menu.go
- menu_bar.go
- menu_bar_item.go
- menu_other.go
- scale.go
- scroll_speed_default.go
- window.go
- window_desktop.go
- window_notwindows.go
- window_xdg.go
Click to show internal directories.
Click to hide internal directories.