internal

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HintsEnabled added in v1.4.0

func HintsEnabled() bool

HintsEnabled returns false to indicate that hints are not currently switched on. To enable please rebuild with "-tags hints" parameters.

func LogHint

func LogHint(reason string)

LogHint reports a developer hint that should be followed to improve their app. This does nothing unless the "hints" build flag is used.

func ScaleInt added in v1.2.0

func ScaleInt(c fyne.Canvas, v int) int

ScaleInt converts a fyne coordinate in the given canvas to a screen coordinate

func UnscaleInt added in v1.2.0

func UnscaleInt(c fyne.Canvas, v int) int

UnscaleInt converts a screen coordinate for a given canvas to a fyne coordinate

Types

type ClipItem added in v1.4.3

type ClipItem struct {
	// contains filtered or unexported fields
}

ClipItem represents a single clip in a clip stack, denoted by a size and position.

func (*ClipItem) Intersect added in v1.4.3

func (i *ClipItem) Intersect(p fyne.Position, s fyne.Size) *ClipItem

Intersect returns a new clip item that is the intersection of the requested parameters and this clip.

func (*ClipItem) Rect added in v1.4.3

func (i *ClipItem) Rect() (fyne.Position, fyne.Size)

Rect returns the position and size parameters of the clip.

type ClipStack added in v1.4.3

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.

func (*ClipStack) Length added in v1.4.3

func (c *ClipStack) Length() int

Length returns the number of items in this clip stack. 0 means no clip.

func (*ClipStack) Pop added in v1.4.3

func (c *ClipStack) Pop() *ClipItem

Pop removes the current top clip and returns it.

func (*ClipStack) Push added in v1.4.3

func (c *ClipStack) Push(p fyne.Position, s fyne.Size) *ClipItem

Push a new clip onto this stack at position and size specified. The returned clip item is the result of calculating the intersection of the requested clip and it's parent.

func (*ClipStack) Top added in v1.4.3

func (c *ClipStack) Top() *ClipItem

Top returns the current clip item - it will always be within the bounds of any parent clips.

type InMemoryPreferences added in v1.2.0

type InMemoryPreferences struct {
	OnChange func()
	// contains filtered or unexported fields
}

InMemoryPreferences provides an implementation of the fyne.Preferences API that is stored in memory.

func NewInMemoryPreferences added in v1.2.0

func NewInMemoryPreferences() *InMemoryPreferences

NewInMemoryPreferences creates a new preferences implementation stored in memory

func (*InMemoryPreferences) Bool added in v1.2.0

func (p *InMemoryPreferences) Bool(key string) bool

Bool looks up a boolean value for the key

func (*InMemoryPreferences) BoolWithFallback added in v1.2.0

func (p *InMemoryPreferences) BoolWithFallback(key string, fallback bool) bool

BoolWithFallback looks up a boolean value and returns the given fallback if not found

func (*InMemoryPreferences) Float added in v1.2.0

func (p *InMemoryPreferences) Float(key string) float64

Float looks up a float64 value for the key

func (*InMemoryPreferences) FloatWithFallback added in v1.2.0

func (p *InMemoryPreferences) FloatWithFallback(key string, fallback float64) float64

FloatWithFallback looks up a float64 value and returns the given fallback if not found

func (*InMemoryPreferences) Int added in v1.2.0

func (p *InMemoryPreferences) Int(key string) int

Int looks up an integer value for the key

func (*InMemoryPreferences) IntWithFallback added in v1.2.0

func (p *InMemoryPreferences) IntWithFallback(key string, fallback int) int

IntWithFallback looks up an integer value and returns the given fallback if not found

func (*InMemoryPreferences) RemoveValue added in v1.2.4

func (p *InMemoryPreferences) RemoveValue(key string)

RemoveValue deletes a value on the given key

func (*InMemoryPreferences) SetBool added in v1.2.0

func (p *InMemoryPreferences) SetBool(key string, value bool)

SetBool saves a boolean value for the given key

func (*InMemoryPreferences) SetFloat added in v1.2.0

func (p *InMemoryPreferences) SetFloat(key string, value float64)

SetFloat saves a float64 value for the given key

func (*InMemoryPreferences) SetInt added in v1.2.0

func (p *InMemoryPreferences) SetInt(key string, value int)

SetInt saves an integer value for the given key

func (*InMemoryPreferences) SetString added in v1.2.0

func (p *InMemoryPreferences) SetString(key string, value string)

SetString saves a string value for the given key

func (*InMemoryPreferences) String added in v1.2.0

func (p *InMemoryPreferences) String(key string) string

String looks up a string value for the key

func (*InMemoryPreferences) StringWithFallback added in v1.2.0

func (p *InMemoryPreferences) StringWithFallback(key, fallback string) string

StringWithFallback looks up a string value and returns the given fallback if not found

func (*InMemoryPreferences) Values added in v1.2.0

func (p *InMemoryPreferences) Values() map[string]interface{}

Values provides access to the underlying value map - for internal use only...

type OverlayStack added in v1.3.0

type OverlayStack struct {
	OnChange func()
	Canvas   fyne.Canvas
	// contains filtered or unexported fields
}

OverlayStack implements fyne.OverlayStack

func (*OverlayStack) Add added in v1.3.0

func (s *OverlayStack) Add(overlay fyne.CanvasObject)

Add puts an overlay on the stack.

Implements: fyne.OverlayStack

func (*OverlayStack) List added in v1.3.0

func (s *OverlayStack) List() []fyne.CanvasObject

List returns all overlays on the stack from bottom to top.

Implements: fyne.OverlayStack

func (*OverlayStack) Remove added in v1.3.0

func (s *OverlayStack) Remove(overlay fyne.CanvasObject)

Remove deletes an overlay and all overlays above it from the stack.

Implements: fyne.OverlayStack

func (*OverlayStack) Top added in v1.3.0

func (s *OverlayStack) Top() fyne.CanvasObject

Top returns the top-most overlay of the stack.

Implements: fyne.OverlayStack

func (*OverlayStack) TopFocusManager added in v1.4.0

func (s *OverlayStack) TopFocusManager() *app.FocusManager

TopFocusManager returns the app.FocusManager assigned to the top-most overlay of the stack.

Directories

Path Synopsis
glfw
Package glfw provides a full Fyne desktop driver that uses the system OpenGL libraries.
Package glfw provides a full Fyne desktop driver that uses the system OpenGL libraries.
gl
Package gl provides a full Fyne render implementation using system OpenGL libraries.
Package gl provides a full Fyne render implementation using system OpenGL libraries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL