Documentation ¶
Index ¶
- Constants
- Variables
- func Cross(a Axis, pt *image.Point) *int
- func Main(a Axis, pt *image.Point) *int
- type Alignment
- type Axis
- type Constraints
- type Context
- type Dimensions
- type Direction
- type Flex
- type FlexChild
- type Inset
- type List
- type ListElement
- type PixelInset
- type Position
- type SmallGrid
- type Spacer
- type Spacing
- type Stack
- type Widget
Constants ¶
View Source
const ( SpaceEnd Spacing = layout.SpaceEnd SpaceStart = layout.SpaceStart SpaceSides = layout.SpaceSides SpaceAround = layout.SpaceAround SpaceBetween = layout.SpaceBetween SpaceEvenly = layout.SpaceEvenly )
Variables ¶
View Source
var Exact = layout.Exact
View Source
var Expanded = layout.Expanded
View Source
var Flexed = layout.Flexed
View Source
var NewContext = layout.NewContext
View Source
var Rigid = layout.Rigid
View Source
var Stacked = layout.Stacked
View Source
var UniformInset = layout.UniformInset
Functions ¶
Types ¶
type Constraints ¶
type Constraints = layout.Constraints
func Normalize ¶
func Normalize(c Constraints) Constraints
type Dimensions ¶
type Dimensions = layout.Dimensions
type ListElement ¶
type ListElement = layout.ListElement
type PixelInset ¶
type PixelInset struct {
Top, Bottom, Left, Right int
}
PixelInset is like Inset, but using pixel coordinates instead of dp.
func (PixelInset) Layout ¶
func (in PixelInset) Layout(gtx Context, w Widget) Dimensions
Click to show internal directories.
Click to hide internal directories.