Version 14 (modified by mira, 16 years ago) (diff) |
---|
Analysis
Overview
The frames margins are the blank fields with specific width surrounding the frame. Margins could be left, right, top or bottom. They are used to separate components from one another. Margins determine on what distance should the halo menu stand from its referring frame. They could also be used to arrange the text in underneath frames (it goes around the frames margin) so it is easier to read.
Task requirements
- The frame should have properties defining its margins width.
- There should be HUD for margins (could be communal with paddings`s HUD)
- The Halo should not be in the margin.
Task result
The result of this task is source code.
Implementation idea
- Add Insets marginsInsets property to the Frame.
- Create HUD for margins (could be communal with paddings`s HUD)
Related
- trunk/sophie2-platform/doc/spec-diagrams/FrameBounds.png
- FRAME_INSETS_R0
- FRAME_BORDERS_R0
- FRAME_PADDING_R0
- FRAME_BOUNDS_R0
How to demo
- Create a frame with concrete margins and see that the Halo is adjusting to their width.
- Use the HUD to change the margins and check that they are set correctly.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)