Frame
Table of contents
Location and size of a rectangle area
type Frame struct {
Height float64
Left float64
Top float64
Width float64
}
Member | Type | Description |
---|---|---|
Height | float64 |
Height of a rectangle area |
Left | float64 |
Left border |
Top | float64 |
Top border |
Width | float64 |
Width of a rectangle area |
Global related functions
func GetListItemFrame(view View, subviewID string, index int) Frame
Returns the location and size of the ListView
item in pixels. If the second argument (subviewID) is not specified or is an empty string then a value from the first argument (view) is returned
func GetViewFrame(view View, subviewID ...string) Frame
Returns the size and location of view's viewport. If the second argument (subviewID) is not specified or is an empty string then the value of the first argument (view) is returned
func GetViewScroll(view View, subviewID ...string) Frame
Returns view's current viewport scroll position. If the second argument (subviewID) is not specified or is an empty string then a value of the first argument (view) is returned