X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmisc.h;h=f55feed94e47799bb0fbdc6c6361e5f58dfbd672;hb=56b01b73a808ccf51991a0aeb5362d5eb6bbfaaa;hp=5f84a98a2ec597d0fbc29d4104ecb15b1168fbf3;hpb=276b2be581c6cb138b439537761ff2ca42201805;p=chaz%2Fopenbox diff --git a/openbox/misc.h b/openbox/misc.h index 5f84a98a..f55feed9 100644 --- a/openbox/misc.h +++ b/openbox/misc.h @@ -1,9 +1,29 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + misc.h for the Openbox window manager + Copyright (c) 2003-2007 Dana Jansens + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + #ifndef __ob__misc_h #define __ob__misc_h typedef enum { + OB_CURSOR_NONE, OB_CURSOR_POINTER, + OB_CURSOR_BUSYPOINTER, OB_CURSOR_BUSY, OB_CURSOR_MOVE, OB_CURSOR_NORTH, @@ -61,4 +81,25 @@ typedef enum OB_CORNER_BOTTOMRIGHT } ObCorner; +typedef enum { + OB_MOUSE_ACTION_PRESS, + OB_MOUSE_ACTION_RELEASE, + OB_MOUSE_ACTION_CLICK, + OB_MOUSE_ACTION_DOUBLE_CLICK, + OB_MOUSE_ACTION_MOTION, + OB_NUM_MOUSE_ACTIONS +} ObMouseAction; + +typedef enum { + OB_USER_ACTION_NONE, /* being fired from inside another action and such */ + OB_USER_ACTION_KEYBOARD_KEY, + OB_USER_ACTION_MOUSE_PRESS, + OB_USER_ACTION_MOUSE_RELEASE, + OB_USER_ACTION_MOUSE_CLICK, + OB_USER_ACTION_MOUSE_DOUBLE_CLICK, + OB_USER_ACTION_MOUSE_MOTION, + OB_USER_ACTION_MENU_SELECTION, + OB_NUM_USER_ACTIONS +} ObUserAction; + #endif