Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type DropDown ¶
type DropDown struct { Selected int // contains filtered or unexported fields }
func NewDropDown ¶
type Float64 ¶
type Float64 struct {
*Text
}
func NewFloat64 ¶
type FocusBorderStyle ¶
FocusBorderStyle implements styling of a focused widget.
func FocusBorder ¶
func FocusBorder(th *material.Theme, focused bool) FocusBorderStyle
FocusBorder creates a focus border for a focused widget.
func (FocusBorderStyle) Layout ¶
func (focus FocusBorderStyle) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions
Layout adds a focus border and styling.
type List ¶
type List struct { // PropertyHeight is the height of a single property. All properties have // the same dimensions. The width depends of the horizontal space available // for the list PropertyHeight unit.Dp // HandleBarWidth is the width of the handlebar used to resize the columns. HandleBarWidth unit.Dp // HandleBarHeight is the width of the handlebar. HandleBarHeight unit.Dp // contains filtered or unexported fields }
A List holds and presents a vertical, scrollable list of properties. A List is divided into into 2 columns: property names on the left and widgets for property values on the right. These 2 sections can be resized thanks to a divider, which can be dragged.
type Stringer ¶
Stringer is the interface implemented by objects that can converted themselves to and from string.
type Text ¶
type Text struct { Editable bool // contains filtered or unexported fields }
Text is a widget that holds, displays and edits a property shown converted to its textual representation. It's edited using a standard gio editor or laid out as a label when not editable.
type Widget ¶
type Widget interface { // Layout lays out the property widget using gtx which is the // property-specific context, and pgtx which is the parent context (useful // for properties that require more space during edition). Layout(th *material.Theme, pgtx, gtx layout.Context) D }
Widget shows the value of a property and handles user actions to edit it.