X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fopenbox.i;h=d4b83575e31bdc49d8e21ab32f5aa8571e195f82;hb=98c4b4cfe58c712e70575d8d8b00e7a261a2e729;hp=1ff7d357e4543041329dc0b0a9ea3cc87c90aeef;hpb=3827c1a76e27865a9e2cc9da43c42399ea354e18;p=chaz%2Fopenbox diff --git a/src/openbox.i b/src/openbox.i index 1ff7d357..d4b83575 100644 --- a/src/openbox.i +++ b/src/openbox.i @@ -23,21 +23,42 @@ ob::Openbox *Openbox_instance() { return ob::Openbox::instance; } %}; -// stuff for registering callbacks! - +// stuff for scripting callbacks! %inline %{ enum ActionType { Action_ButtonPress, Action_ButtonRelease, + Action_Click, + Action_DoubleClick, Action_EnterWindow, Action_LeaveWindow, Action_KeyPress, Action_MouseMotion }; + enum WidgetType { + Type_Frame, + Type_Titlebar, + Type_Handle, + Type_Plate, + Type_Label, + Type_MaximizeButton, + Type_CloseButton, + Type_IconifyButton, + Type_StickyButton, + Type_LeftGrip, + Type_RightGrip, + Type_Client, + Type_Root + }; %} %ignore ob::python_callback; %rename(register) ob::python_register; +%rename(preregister) ob::python_preregister; %rename(unregister) ob::python_unregister; +%rename(unregister_all) ob::python_unregister_all; +%rename(bind) ob::python_bind; +%rename(unbind) ob::python_unbind; +%rename(unbind_all) ob::python_unbind_all; %ignore ob::OBScreen::clients; %{