Documentation
¶
Index ¶
Constants ¶
View Source
const ( // NoHint is passed as a hint value when one or both dimensions have no suggested value. NoHint = -1 // DefaultMax is the default value that should be used for a maximum dimension if the // block has no real preference and can be expanded beyond its preferred size. This is // intentionally not something like math.MaxFloat32 to allow basic math operations an // opportunity to succeed when laying out components. It is perfectly acceptable to use // a larger value than this, however, if that makes sense for your specific component. DefaultMax = 10000 )
Variables ¶
View Source
var ( // NoHintSize is a convenience for passing to layouts when you don't have any particular // size constraints in mind. Should be treated as read-only. NoHintSize = geom.Size{Width: NoHint, Height: NoHint} )
Functions ¶
Types ¶
type Layout ¶
type Layout interface { Sizer // Layout is called to layout the target and its children. Layout() }
The Layout interface should be implemented by objects that provide layout services.
Click to show internal directories.
Click to hide internal directories.