-
-
Notifications
You must be signed in to change notification settings - Fork 2
More Rules. #97
Copy link
Copy link
Open
Labels
C-layoutrelates to the cuicui_layout crate specificallyrelates to the cuicui_layout crate specificallyT-enhancementNew feature or requestNew feature or request
Description
Activity
Metadata
Metadata
Assignees
Labels
C-layoutrelates to the cuicui_layout crate specificallyrelates to the cuicui_layout crate specificallyT-enhancementNew feature or requestNew feature or request
cuicui_layoutis a bureaucracy and thrives onRules. An utopia of Rules if you will…I suggest three new rules. Those are missing pieces that
lumexalready has:Rule::Content(f32): Similar toLeafRule::Content, but generalized to containers.{Rule,LeafRule}::AspectRatio(f32): Get the size of this axis relative to the other, such that the aspect ration is preserved{Rule,LeafRule}::ContentAspectRatio: Get the size relative to the other, such as the aspect ratio is preserved. But the aspect ratio is inherited from the content.ScreenRootto useContentrule, since now we can use it for container nodes