Documentation
¶
Index ¶
- func LogHint(reason string)
- type ClipItem
- type ClipStack
- type Docs
- type InMemoryPreferences
- func (p *InMemoryPreferences) AddChangeListener(listener func())
- func (p *InMemoryPreferences) ChangeListenersCopy() []func()
- func (p *InMemoryPreferences) ReadValues(fn func(map[string]any))
- func (p *InMemoryPreferences) RemoveValue(key string)
- func (p *InMemoryPreferences) SetValue(key string, value any)
- func (p *InMemoryPreferences) Value(key string) (any, bool)
- func (p *InMemoryPreferences) WriteValues(fn func(map[string]any))
- type OverlayStack
- func (s *OverlayStack) Add(overlay core.CanvasObject)
- func (s *OverlayStack) List() []core.CanvasObject
- func (s *OverlayStack) ListFocusManagers() []*app.FocusManager
- func (s *OverlayStack) Remove(overlay core.CanvasObject)
- func (s *OverlayStack) Top() core.CanvasObject
- func (s *OverlayStack) TopFocusManager() *app.FocusManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClipItem ¶
type ClipItem struct {
// contains filtered or unexported fields
}
ClipItem represents a single clip in a clip stack, denoted by a size and position.
type ClipStack ¶
type ClipStack struct {
// contains filtered or unexported fields
}
ClipStack keeps track of the areas that should be clipped when drawing a canvas. If no clips are present then adding one will be added as-is. Subsequent items pushed will be completely within the previous clip.
type Docs ¶
Docs is an internal implementation of the document features of the Storage interface. It is based on top of the current `file` repository and is rooted at RootDocURI.
func (*Docs) Create ¶
func (d *Docs) Create(name string) (bellui.URIWriteCloser, error)
Create will create a new document ready for writing, you must write something and close the returned writer for the create process to complete. If the document for this app with that name already exists a storage.ErrAlreadyExists error will be returned.
func (*Docs) List ¶
List returns all documents that have been saved by the current application. Remember to use `app.NewWithID` so that your storage is unique.
func (*Docs) Open ¶
func (d *Docs) Open(name string) (bellui.URIReadCloser, error)
Open will grant access to the contents of the named file. If an error occurs it is returned instead.
type InMemoryPreferences ¶
type InMemoryPreferences struct {
// contains filtered or unexported fields
}
InMemoryPreferences provides an implementation of the bellui.Preferences API that is stored in memory.
func NewInMemoryPreferences ¶
func NewInMemoryPreferences() *InMemoryPreferences
NewInMemoryPreferences creates a new preferences implementation stored in memory
func (*InMemoryPreferences) AddChangeListener ¶
func (p *InMemoryPreferences) AddChangeListener(listener func())
AddChangeListener allows code to be notified when some preferences change. This will fire on any update. The passed 'listener' should not try to write values.
func (*InMemoryPreferences) ChangeListenersCopy ¶
func (p *InMemoryPreferences) ChangeListenersCopy() []func()
ChangeListenersCopy returns a thread-safe copy of the registered change listeners. Used internally during cloud provider transitions.
func (*InMemoryPreferences) ReadValues ¶
func (p *InMemoryPreferences) ReadValues(fn func(map[string]any))
ReadValues provides read access to the underlying value map - for internal use only... You should not retain a reference to the map nor write to the values in the callback function
func (*InMemoryPreferences) RemoveValue ¶
func (p *InMemoryPreferences) RemoveValue(key string)
RemoveValue deletes a value on the given key
func (*InMemoryPreferences) SetValue ¶
func (p *InMemoryPreferences) SetValue(key string, value any)
SetValue saves a value for the given key.
func (*InMemoryPreferences) Value ¶
func (p *InMemoryPreferences) Value(key string) (any, bool)
Value looks up a value for the given key.
func (*InMemoryPreferences) WriteValues ¶
func (p *InMemoryPreferences) WriteValues(fn func(map[string]any))
WriteValues provides write access to the underlying value map - for internal use only... You should not retain a reference to the map passed to the callback function
type OverlayStack ¶
type OverlayStack struct {
OnChange func()
Canvas core.Canvas
// contains filtered or unexported fields
}
OverlayStack allows stacking overlays on top of each other. Removing an overlay will also remove all overlays above it. All methods are safe for concurrent use.
func (*OverlayStack) Add ¶
func (s *OverlayStack) Add(overlay core.CanvasObject)
Add puts an overlay on the stack.
func (*OverlayStack) List ¶
func (s *OverlayStack) List() []core.CanvasObject
List returns all overlays on the stack from bottom to top.
func (*OverlayStack) ListFocusManagers ¶
func (s *OverlayStack) ListFocusManagers() []*app.FocusManager
ListFocusManagers returns all focus managers on the stack from bottom to top.
func (*OverlayStack) Remove ¶
func (s *OverlayStack) Remove(overlay core.CanvasObject)
Remove deletes an overlay and all overlays above it from the stack.
func (*OverlayStack) Top ¶
func (s *OverlayStack) Top() core.CanvasObject
Top returns the top-most overlay of the stack.
func (*OverlayStack) TopFocusManager ¶
func (s *OverlayStack) TopFocusManager() *app.FocusManager
TopFocusManager returns the app.FocusManager assigned to the top-most overlay of the stack that takes part in focus routing. Focus-transparent overlays (see widget.OverlayContainer.FocusTransparent) are skipped, so the layer beneath them keeps keyboard focus; nil is returned when no overlay participates, letting the canvas fall back to its menu/content manager.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package accessibility builds the platform-neutral semantic tree that screen-reader backends expose to assistive technologies (pre-rebrand tracker #484).
|
Package accessibility builds the platform-neutral semantic tree that screen-reader backends expose to assistive technologies (pre-rebrand tracker #484). |
|
Package async provides unbounded channel and queue structures that are designed for caching unlimited number of a concrete type.
|
Package async provides unbounded channel and queue structures that are designed for caching unlimited number of a concrete type. |
|
Package build contains information about they type of build currently running.
|
Package build contains information about they type of build currently running. |
|
Package clipboard provides pure-Go codecs for platform clipboard payloads: the Windows CF_HTML ("HTML Format") header block and device-independent bitmaps (CF_DIB).
|
Package clipboard provides pure-Go codecs for platform clipboard payloads: the Windows CF_HTML ("HTML Format") header block and device-independent bitmaps (CF_DIB). |
|
glfw
Package glfw provides a full Bellui desktop driver that uses the system OpenGL libraries.
|
Package glfw provides a full Bellui desktop driver that uses the system OpenGL libraries. |
|
mobile/app
Package app lets you write portable all-Go apps for Android and iOS.
|
Package app lets you write portable all-Go apps for Android and iOS. |
|
mobile/event/composition
Package composition defines the IME composition (preedit) event used by the mobile driver to carry input-method composition state from the native platform layer to the focused widget.
|
Package composition defines the IME composition (preedit) event used by the mobile driver to carry input-method composition state from the native platform layer to the focused widget. |
|
mobile/event/config
Package config defines the event that reports an in-place configuration change to the mobile driver.
|
Package config defines the event that reports an in-place configuration change to the mobile driver. |
|
mobile/event/key
Package key defines an event for physical keyboard keys.
|
Package key defines an event for physical keyboard keys. |
|
mobile/event/lifecycle
Package lifecycle defines an event for an app's lifecycle.
|
Package lifecycle defines an event for an app's lifecycle. |
|
mobile/event/paint
Package paint defines an event for the app being ready to paint.
|
Package paint defines an event for the app being ready to paint. |
|
mobile/event/size
Package size defines an event for the dimensions, physical resolution and orientation of the app's window.
|
Package size defines an event for the dimensions, physical resolution and orientation of the app's window. |
|
mobile/event/textedit
Package textedit defines the committed text-edit event used by the mobile driver to carry a native IME/keyboard edit — a range replacement — from the platform layer to the focused editor through the text-input mirror seam (pre-rebrand tracker #771).
|
Package textedit defines the committed text-edit event used by the mobile driver to carry a native IME/keyboard edit — a range replacement — from the platform layer to the focused editor through the text-input mirror seam (pre-rebrand tracker #771). |
|
mobile/event/touch
Package touch defines an event for touch input.
|
Package touch defines an event for touch input. |
|
mobile/event/undoredo
Package undoredo defines the native undo/redo invocation event used by the mobile driver to carry a platform-initiated undo or redo — the iPad soft keyboard's undo/redo bar keys, the three-finger swipe gestures or shake-to-undo, all of which drive the first responder's NSUndoManager — from the platform layer to the focused editor (pre-rebrand tracker #1134).
|
Package undoredo defines the native undo/redo invocation event used by the mobile driver to carry a platform-initiated undo or redo — the iPad soft keyboard's undo/redo bar keys, the three-finger swipe gestures or shake-to-undo, all of which drive the first responder's NSUndoManager — from the platform layer to the focused editor (pre-rebrand tracker #1134). |
|
mobile/gl
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0.
|
Package gl implements Go bindings for OpenGL ES 2.0 and ES 3.0. |
|
mobile/mobileinit
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
|
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps. |
|
Package gpu defines the backend-neutral painter interfaces used by the drivers.
|
Package gpu defines the backend-neutral painter interfaces used by the drivers. |
|
Package gsportal is a pure-Go client for the freedesktop org.freedesktop.portal.GlobalShortcuts D-Bus portal — the only way to register system-wide hotkeys under Wayland, where there is no client key-grab API by design.
|
Package gsportal is a pure-Go client for the freedesktop org.freedesktop.portal.GlobalShortcuts D-Bus portal — the only way to register system-wide hotkeys under Wayland, where there is no client key-grab API by design. |
|
Package memcanvas holds the in-memory, windowless canvas that both the software driver (github.com/belluikit/bellui/driver/software) and the test harness (github.com/belluikit/bellui/test) hand out.
|
Package memcanvas holds the in-memory, windowless canvas that both the software driver (github.com/belluikit/bellui/driver/software) and the test harness (github.com/belluikit/bellui/test) hand out. |
|
webgpu
Package webgpu will host the WebGPU implementation of the backend-neutral gpu.Painter interface (WebGPU migration, pre-rebrand issue #198, Phase 2 / pre-rebrand tracker #201).
|
Package webgpu will host the WebGPU implementation of the backend-neutral gpu.Painter interface (WebGPU migration, pre-rebrand issue #198, Phase 2 / pre-rebrand tracker #201). |
|
preferences
|
|
|
Package rasterx implements a rasterizer in go.
|
Package rasterx implements a rasterizer in go. |
|
settings
|
|
|
Package textbuf provides the editable text storage backing the lazy single-segment editing path of widget.Entry / widget.RichText (pre-rebrand tracker #381).
|
Package textbuf provides the editable text storage backing the lazy single-segment editing path of widget.Entry / widget.RichText (pre-rebrand tracker #381). |
|
Package textinput defines the neutral text-input mirror seam shared by every platform's native text-editing / IME integration (pre-rebrand tracker #768, epic pre-rebrand tracker #490).
|
Package textinput defines the neutral text-input mirror seam shared by every platform's native text-editing / IME integration (pre-rebrand tracker #768, epic pre-rebrand tracker #490). |
|
Package thread provides low-level goroutine identification primitives with zero dependencies on the bellui package, allowing both the root bellui package and internal packages to import it without circular dependencies.
|
Package thread provides low-level goroutine identification primitives with zero dependencies on the bellui package, allowing both the root bellui package and internal packages to import it without circular dependencies. |
|
Package uidir holds an ambient, per-goroutine user-interface direction override.
|
Package uidir holds an ambient, per-goroutine user-interface direction override. |