MCPcopy Create free account
hub / github.com/cogentcore/core / Position

Method Position

core/widget.go:76–76  ·  view source on GitHub ↗

Position uses the final sizes to set relative positions within layouts according to alignment settings, and Grow elements to their actual Alloc size per Styles settings and widget-specific behavior.

()

Source from the content-addressed store, hash-verified

74 // according to alignment settings, and Grow elements to their actual
75 // Alloc size per Styles settings and widget-specific behavior.
76 Position()
77
78 // ApplyScenePos computes scene-based absolute positions and final BBox
79 // bounding boxes for rendering, based on relative positions from

Callers 12

ProcessFilesFunction · 0.65
recordPrefMethod · 0.65
PositionMethod · 0.65
PositionMethod · 0.65
layoutSceneMethod · 0.65
setNameMethod · 0.65
positionPartsMethod · 0.65
positionChildrenMethod · 0.65
PositionMethod · 0.65
positionStackedMethod · 0.65
FilepathFunction · 0.65
PositionMethod · 0.65

Implementers 6

WidgetBasecore/widget.go
_cogentcore_org_core_core_Layouteryaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Treeryaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Valueyaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_core_Widgetyaegicore/symbols/cogentcore_org-core-
_cogentcore_org_core_filetree_Fileryaegicore/symbols/cogentcore_org-core-

Calls

no outgoing calls

Tested by

no test coverage detected