X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.i;h=74ed301060fa72c36158c717a7fd1b93f98164b5;hb=d4853f108c1d22c344c1cb9a8a8b7cdc46648983;hp=1ff7d357e4543041329dc0b0a9ea3cc87c90aeef;hpb=3827c1a76e27865a9e2cc9da43c42399ea354e18;p=chaz%2Fopenbox diff --git a/src/openbox.i b/src/openbox.i index 1ff7d357..74ed3010 100644 --- a/src/openbox.i +++ b/src/openbox.i @@ -23,21 +23,44 @@ 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_key) ob::python_bind_key; +%rename(unbind_key) ob::python_unbind_key; +%rename(bind_mouse) ob::python_bind_mouse; +%rename(unbind_mouse) ob::python_unbind_mouse; +%rename(unbind_all) ob::python_unbind_all; %ignore ob::OBScreen::clients; %{