Bounds
Table of contents
Describe bounds of a rectangle
type Bounds struct {
Top, Right, Bottom, Left SizeUnit
}
Member | Type | Description |
---|---|---|
Top | SizeUnit |
Top bound width |
Right | SizeUnit |
Right bound width |
Bottom | SizeUnit |
Bottom bound width |
Left | SizeUnit |
Left bound width |
Related global functions
func DefaultBounds() Bounds
Return bounds with top, right, bottom and left fields set to Auto
func GetMargin(view View, subviewID ...string) Bounds
Returns the subview margin. If the second argument (subviewID) is not specified or is an empty string then a margin of the first argument (view) is returned
func GetPadding(view View, subviewID ...string) Bounds
Returns the subview padding. If the second argument (subviewID) is not specified or is an empty string then a padding of the first argument (view) is returned