refactor: move position property to UIDrawable base class (UIFrame)
- Add position member to UIDrawable base class - Add common position getters/setters (x, y, pos) to base class - Update UIFrame to use base class position instead of box position - Synchronize box position with base class position for rendering - Update all UIFrame methods to use base position consistently - Add comprehensive test coverage for UIFrame position handling This is part 1 of moving position to the base class. Other derived classes (UICaption, UISprite, UIGrid) will be updated in subsequent commits.
This commit is contained in:
parent
419f7d716a
commit
c4b4f12758
4 changed files with 238 additions and 20 deletions
BIN
base_position_uiframe_test.png
Normal file
BIN
base_position_uiframe_test.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Loading…
Add table
Add a link
Reference in a new issue