McRogueFace/src
John McCardle 99f301e3a0 Add position tuple support and pos property to UI elements
closes #83, closes #84

- Issue #83: Add position tuple support to constructors
  - Frame and Sprite now accept both (x, y) and ((x, y)) forms
  - Also accept Vector objects as position arguments
  - Caption and Entity already supported tuple/Vector forms
  - Uses PyVector::from_arg for flexible position parsing

- Issue #84: Add pos property to Frame and Sprite
  - Added pos getter that returns a Vector
  - Added pos setter that accepts Vector or tuple
  - Provides consistency with Caption and Entity which already had pos properties
  - All UI elements now have a uniform way to get/set positions as Vectors

Both features improve API consistency and make it easier to work with positions.
2025-07-05 16:25:32 -04:00
..
scripts Final day of changes for 7DRL 2025 - Crypt of Sokoban game code 2025-03-12 22:42:26 -04:00
ActionCode.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
Animation.cpp Standardize sprite_index property and add scale_x/scale_y to UISprite 2025-07-05 16:18:10 -04:00
Animation.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
CommandLineParser.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
CommandLineParser.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
Common.h Refactor: Python 3.12, build libtcod & SFML from source. Cmake build. Directory cleanup 2024-02-24 22:48:39 -05:00
GameEngine.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
GameEngine.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
HeadlessRenderer.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
HeadlessRenderer.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
IndexTexture.cpp Refactor: Python 3.12, build libtcod & SFML from source. Cmake build. Directory cleanup 2024-02-24 22:48:39 -05:00
IndexTexture.h Refactor: Python 3.12, build libtcod & SFML from source. Cmake build. Directory cleanup 2024-02-24 22:48:39 -05:00
main.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
McRFPy_API.cpp Fix critical issues: script loading, entity types, and color properties 2025-07-05 15:50:09 -04:00
McRFPy_API.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
McRFPy_Automation.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
McRFPy_Automation.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
McRogueFaceConfig.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyAnimation.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyAnimation.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyCallable.cpp Squashed commit of the following: [raii_pyobjects] 2024-03-15 22:20:37 -04:00
PyCallable.h Squashed commit of the following: [raii_pyobjects] 2024-03-15 22:20:37 -04:00
PyColor.cpp Fix critical issues: script loading, entity types, and color properties 2025-07-05 15:50:09 -04:00
PyColor.h Iterators, other Python C API improvements 2025-05-31 09:11:51 -04:00
PyFont.cpp Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
PyFont.h Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
PyObjectUtils.h Iterators, other Python C API improvements 2025-05-31 09:11:51 -04:00
PyRAII.h Iterators, other Python C API improvements 2025-05-31 09:11:51 -04:00
PyScene.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyScene.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyTexture.cpp Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
PyTexture.h Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
PyVector.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
PyVector.h Iterators, other Python C API improvements 2025-05-31 09:11:51 -04:00
Resources.cpp Adding text functionality to Caption (why was that missing???) 2024-03-07 12:35:07 -05:00
Resources.h Adding text functionality to Caption (why was that missing???) 2024-03-07 12:35:07 -05:00
Scene.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
Scene.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
Timer.cpp Segfault fixes. Switching scenes broke some assumptions. All PyObject calls from userspace now handle (discard) exceptions and return values. 2024-03-08 12:09:09 -05:00
Timer.h Whoops, some issues with deleting timers. 2024-03-07 09:49:24 -05:00
UI.h Squashed commit of the following: [break_up_ui_h] 2024-04-20 10:32:04 -04:00
UIBase.h Squashed commit of the following: [break_up_ui_h] 2024-04-20 10:32:04 -04:00
UICaption.cpp Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
UICaption.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
UICollection.cpp Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
UICollection.h Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
UIDrawable.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
UIDrawable.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
UIEntity.cpp Standardize sprite_index property and add scale_x/scale_y to UISprite 2025-07-05 16:18:10 -04:00
UIEntity.h Fix critical issues: script loading, entity types, and color properties 2025-07-05 15:50:09 -04:00
UIFrame.cpp Add position tuple support and pos property to UI elements 2025-07-05 16:25:32 -04:00
UIFrame.h Add position tuple support and pos property to UI elements 2025-07-05 16:25:32 -04:00
UIGrid.cpp Fix critical issues: script loading, entity types, and color properties 2025-07-05 15:50:09 -04:00
UIGrid.h Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
UIGridPoint.cpp Squashed commit of the following: [reprs_and_member_names] 2024-04-20 18:33:18 -04:00
UIGridPoint.h Fix multiple low priority issues 2025-07-05 16:09:52 -04:00
UISprite.cpp Add position tuple support and pos property to UI elements 2025-07-05 16:25:32 -04:00
UISprite.h Add position tuple support and pos property to UI elements 2025-07-05 16:25:32 -04:00
UITestScene.cpp Squashed commit of the following: [interpreter_mode] 2025-07-05 12:04:20 -04:00
UITestScene.h Refactor: remove "s" prefix from "sRender" method ( -> "render") Closes #44 2024-04-20 14:16:14 -04:00