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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGLDriver ¶
NewGLDriver sets up a new Driver instance implemented using the GLFW Go library and OpenGL bindings.
Types ¶
type MenuBar ¶ added in v1.3.0
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 ¶ added in v1.3.0
NewMenuBar creates a menu bar populated with items from the passed main menu structure.
func (*MenuBar) CreateRenderer ¶ added in v1.3.0
func (b *MenuBar) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a new renderer for the menu bar.
Implements: fyne.Widget
func (*MenuBar) Hide ¶ added in v1.3.0
func (b *MenuBar) Hide()
Hide hides the menu bar.
Implements: fyne.Widget
func (*MenuBar) IsActive ¶ added in v1.4.0
IsActive returns whether the menu bar is active or not. An active menu bar shows the current selected menu and should have the focus.
func (*MenuBar) MinSize ¶ added in v1.3.0
MinSize returns the minimal size of the menu bar.
Implements: fyne.Widget
func (*MenuBar) Move ¶ added in v1.3.0
Move sets the position of the widget relative to its parent.
Implements: fyne.Widget
func (*MenuBar) Refresh ¶ added in v1.3.0
func (b *MenuBar) Refresh()
Refresh triggers a redraw of the menu bar.
Implements: fyne.Widget