Documentation ¶
Index ¶
- Constants
- func ColorTextMaterial(gtx layout.Context, c color.NRGBA) op.CallOp
- type Activatable
- type BackedBit
- func (bit *BackedBit[T]) Changed() bool
- func (bit *BackedBit[T]) Focused() bool
- func (bit *BackedBit[T]) Get() bool
- func (bit *BackedBit[T]) Hovered() bool
- func (bit *BackedBit[T]) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
- func (bit *BackedBit[T]) Pressed() bool
- func (bit *BackedBit[T]) Set(b bool)
- func (bit *BackedBit[T]) Update(gtx layout.Context) bool
- type Bool
- type Boolean
- type ChangeEvent
- type Click
- type Clickable
- func (b *Clickable) Click(btn pointer.Buttons)
- func (b *Clickable) Clicked(gtx layout.Context) (Click, bool)
- func (b *Clickable) Hovered() bool
- func (b *Clickable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
- func (b *Clickable) Pressed(btn pointer.Buttons) bool
- func (b *Clickable) Update(gtx layout.Context) []Click
- type Editor
- type FlameGraph
- type FlamegraphFrame
- type FlamegraphSample
- type FloatDuration
- type GIF
- type Histogram
- type HistogramConfig
- type Image
- type Label
- type List
- type PrimaryActivatable
- func (b *PrimaryActivatable) Click()
- func (b *PrimaryActivatable) Clicked(gtx layout.Context) bool
- func (b *PrimaryActivatable) Focus()
- func (b *PrimaryActivatable) Focused() bool
- func (b *PrimaryActivatable) Hovered() bool
- func (b *PrimaryActivatable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
- func (b *PrimaryActivatable) Pressed() bool
- type PrimaryClickable
- type Scrollbar
- type Selectable
- type SubmitEvent
Constants ¶
View Source
const DefaultHistogramBins = 100
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Activatable ¶ added in v0.3.0
type Activatable struct { Clickable // contains filtered or unexported fields }
Clickable represents a clickable area.
func (*Activatable) Focus ¶ added in v0.3.0
func (b *Activatable) Focus()
Focus requests the input focus for the element.
func (*Activatable) Focused ¶ added in v0.3.0
func (b *Activatable) Focused() bool
Focused reports whether b has focus.
func (*Activatable) Layout ¶ added in v0.3.0
func (b *Activatable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
Layout and update the button state.
type BackedBit ¶ added in v0.2.0
type BackedBit[T uint8 | uint16 | uint32 | uint64] struct { Bits *T Bit int // contains filtered or unexported fields }
type Bool ¶
type Bool struct { Value bool // contains filtered or unexported fields }
type ChangeEvent ¶
type ChangeEvent = widget.ChangeEvent
type Clickable ¶
type Clickable struct {
// contains filtered or unexported fields
}
Clickable represents a clickable area.
func (*Clickable) Clicked ¶
Clicked reports whether there are pending clicks as would be reported by Clicks. If so, Clicked removes the earliest click.
type FlameGraph ¶ added in v0.4.0
type FlameGraph struct {
Samples []FlamegraphFrame
}
func (*FlameGraph) AddSample ¶ added in v0.4.0
func (fg *FlameGraph) AddSample(sample FlamegraphSample, root string)
func (*FlameGraph) Compute ¶ added in v0.4.0
func (fg *FlameGraph) Compute()
type FlamegraphFrame ¶ added in v0.4.0
type FlamegraphFrame struct { Name string Duration time.Duration Children []FlamegraphFrame }
type FlamegraphSample ¶ added in v0.4.0
type FlamegraphSample []FlamegraphFrame
type FloatDuration ¶ added in v0.3.0
type FloatDuration float64
func (FloatDuration) Ceil ¶ added in v0.3.0
func (d FloatDuration) Ceil() time.Duration
func (FloatDuration) Floor ¶ added in v0.3.0
func (d FloatDuration) Floor() time.Duration
type Histogram ¶ added in v0.3.0
type Histogram struct { // The config that was passed to NewHistogram Config *HistogramConfig Start FloatDuration Bins []int BinWidth FloatDuration Overflow FloatDuration MaxValue time.Duration MaxBinValue int }
func NewHistogram ¶ added in v0.3.0
func NewHistogram(cfg *HistogramConfig, values []time.Duration) *Histogram
func (*Histogram) BucketRange ¶ added in v0.3.0
func (hist *Histogram) BucketRange(i int) (start, end FloatDuration)
func (*Histogram) HasOverflow ¶ added in v0.3.0
type HistogramConfig ¶ added in v0.3.0
type HistogramConfig struct {
Start, End FloatDuration
RejectOutliers bool
Bins int
}
type PrimaryActivatable ¶ added in v0.3.0
type PrimaryActivatable struct {
Activatable
}
PrimaryActivatable is like Activatable but ignores all press and click events for buttons other than the primary one.
func (*PrimaryActivatable) Click ¶ added in v0.3.0
func (b *PrimaryActivatable) Click()
func (*PrimaryActivatable) Clicked ¶ added in v0.3.0
func (b *PrimaryActivatable) Clicked(gtx layout.Context) bool
func (*PrimaryActivatable) Focus ¶ added in v0.3.0
func (b *PrimaryActivatable) Focus()
func (*PrimaryActivatable) Focused ¶ added in v0.3.0
func (b *PrimaryActivatable) Focused() bool
func (*PrimaryActivatable) Hovered ¶ added in v0.3.0
func (b *PrimaryActivatable) Hovered() bool
func (*PrimaryActivatable) Layout ¶ added in v0.3.0
func (b *PrimaryActivatable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
func (*PrimaryActivatable) Pressed ¶ added in v0.3.0
func (b *PrimaryActivatable) Pressed() bool
type PrimaryClickable ¶
type PrimaryClickable struct {
Clickable
}
PrimaryClickable is like Clickable but ignores all press and click events for buttons other than the primary one.
func (*PrimaryClickable) Click ¶
func (b *PrimaryClickable) Click()
func (*PrimaryClickable) Hovered ¶
func (b *PrimaryClickable) Hovered() bool
func (*PrimaryClickable) Layout ¶
func (b *PrimaryClickable) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
func (*PrimaryClickable) Pressed ¶
func (b *PrimaryClickable) Pressed() bool
type Selectable ¶ added in v0.3.0
type Selectable = widget.Selectable
type SubmitEvent ¶
type SubmitEvent = widget.SubmitEvent
Click to show internal directories.
Click to hide internal directories.