refactor: Rename click property to on_click (closes #139)
Breaking change: callback property standardized to on_* pattern. - `drawable.click` → `drawable.on_click` Updated all C++ bindings (8 files) and Python test usages. Note: src/scripts changes tracked separately (in .gitignore). This establishes the naming pattern for future callbacks: on_click, on_enter, on_exit, on_move, on_key, etc. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e9b5a8301d
commit
52a655399e
12 changed files with 20 additions and 20 deletions
|
|
@ -273,8 +273,8 @@ PyGetSetDef UICaption::getsetters[] = {
|
|||
//{"children", (getter)PyUIFrame_get_children, NULL, "UICollection of objects on top of this one", NULL},
|
||||
{"text", (getter)UICaption::get_text, (setter)UICaption::set_text, "The text displayed", NULL},
|
||||
{"font_size", (getter)UICaption::get_float_member, (setter)UICaption::set_float_member, "Font size (integer) in points", (void*)5},
|
||||
{"click", (getter)UIDrawable::get_click, (setter)UIDrawable::set_click,
|
||||
MCRF_PROPERTY(click,
|
||||
{"on_click", (getter)UIDrawable::get_click, (setter)UIDrawable::set_click,
|
||||
MCRF_PROPERTY(on_click,
|
||||
"Callable executed when object is clicked. "
|
||||
"Function receives (x, y) coordinates of click."
|
||||
), (void*)PyObjectsEnum::UICAPTION},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue