1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 actions.h for the Openbox window manager
4 Copyright (c) 2007 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
21 #include "parser/parse.h"
24 typedef struct _ObActionsDefinition ObActionsDefinition
;
25 typedef struct _ObActionsAnyData ObActionsAnyData
;
26 typedef struct _ObActionsGlobalData ObActionsGlobalData
;
27 typedef struct _ObActionsClientData ObActionsClientData
;
28 typedef struct _ObActionsSelectorData ObActionsSelectorData
;
33 OB_ACTION_INTERACTING
,
34 OB_NUM_ACTIONS_INTERACTIVE_STATES
35 } ObActionsInteractiveState
;
37 typedef gpointer (*ObActionsDataSetupFunc
)();
38 typedef void (*ObActionsDataParseFunc
)(gpointer action_data
,
40 xmlDocPtr doc
, xmlNodePtr node
);
41 typedef void (*ObActionsDataFreeFunc
)(gpointer action_data
);
42 typedef void (*ObActionsRunFunc
)(ObActionsAnyData
*data
,
43 gpointer action_data
);
48 06:10 (@dana) hm i think there are 3 types of actions
49 06:10 (@dana) global actions, window actions, and selector actions
50 06:11 (@dana) eg show menu/exit, raise/focus, and cycling/directional/expose
53 struct _ObActionsAnyData
{
60 ObActionsInteractiveState interactive
;
63 struct _ObActionsGlobalData
{
67 struct _ObActionsClientData
{
71 ObFrameContext context
;
74 struct _ObActionsSelectorData
{
80 void actions_startup(gboolean reconfigure
);
81 void actions_shutdown(gboolean reconfigure
);
83 gboolean
actions_register(const gchar
*name
,
85 ObActionsDataSetupFunc setup
,
86 ObActionsDataParseFunc parse
,
87 ObActionsDataFreeFunc free
,
88 ObActionsRunFunc run
);