common.h File Reference

Go to the source code of this file.

Data Structures

struct  _MetaButtonLayout

Defines

#define MAX_BUTTONS_PER_CORNER   META_BUTTON_FUNCTION_LAST
#define META_ICON_WIDTH   32
#define META_ICON_HEIGHT   32
#define META_MINI_ICON_WIDTH   16
#define META_MINI_ICON_HEIGHT   16
#define META_DEFAULT_ICON_NAME   "window"
#define META_PRIORITY_PREFS_NOTIFY   (G_PRIORITY_DEFAULT_IDLE + 10)
#define META_PRIORITY_WORK_AREA_HINT   (G_PRIORITY_DEFAULT_IDLE + 15)
#define POINT_IN_RECT(xcoord, ycoord, rect)

Typedefs

typedef struct _MetaResizePopup MetaResizePopup
typedef struct _MetaWindowMenu MetaWindowMenu
typedef void(* MetaWindowMenuFunc )(MetaWindowMenu *menu, Display *xdisplay, Window client_xwindow, guint32 timestamp, MetaMenuOp op, int workspace, gpointer data)
typedef struct _MetaButtonLayout MetaButtonLayout

Enumerations

enum  MetaFrameFlags {
  META_FRAME_ALLOWS_DELETE = 1 << 0, META_FRAME_ALLOWS_MENU = 1 << 1, META_FRAME_ALLOWS_MINIMIZE = 1 << 2, META_FRAME_ALLOWS_MAXIMIZE = 1 << 3,
  META_FRAME_ALLOWS_VERTICAL_RESIZE = 1 << 4, META_FRAME_ALLOWS_HORIZONTAL_RESIZE = 1 << 5, META_FRAME_HAS_FOCUS = 1 << 6, META_FRAME_SHADED = 1 << 7,
  META_FRAME_STUCK = 1 << 8, META_FRAME_MAXIMIZED = 1 << 9, META_FRAME_ALLOWS_SHADE = 1 << 10, META_FRAME_ALLOWS_MOVE = 1 << 11,
  META_FRAME_FULLSCREEN = 1 << 12, META_FRAME_IS_FLASHING = 1 << 13, META_FRAME_ABOVE = 1 << 14
}
enum  MetaMenuOp {
  META_MENU_OP_DELETE = 1 << 0, META_MENU_OP_MINIMIZE = 1 << 1, META_MENU_OP_UNMAXIMIZE = 1 << 2, META_MENU_OP_MAXIMIZE = 1 << 3,
  META_MENU_OP_UNSHADE = 1 << 4, META_MENU_OP_SHADE = 1 << 5, META_MENU_OP_UNSTICK = 1 << 6, META_MENU_OP_STICK = 1 << 7,
  META_MENU_OP_WORKSPACES = 1 << 8, META_MENU_OP_MOVE = 1 << 9, META_MENU_OP_RESIZE = 1 << 10, META_MENU_OP_ABOVE = 1 << 11,
  META_MENU_OP_UNABOVE = 1 << 12, META_MENU_OP_MOVE_LEFT = 1 << 13, META_MENU_OP_MOVE_RIGHT = 1 << 14, META_MENU_OP_MOVE_UP = 1 << 15,
  META_MENU_OP_MOVE_DOWN = 1 << 16, META_MENU_OP_RECOVER = 1 << 17
}
enum  MetaGrabOp {
  META_GRAB_OP_NONE, META_GRAB_OP_MOVING, META_GRAB_OP_RESIZING_SE, META_GRAB_OP_RESIZING_S,
  META_GRAB_OP_RESIZING_SW, META_GRAB_OP_RESIZING_N, META_GRAB_OP_RESIZING_NE, META_GRAB_OP_RESIZING_NW,
  META_GRAB_OP_RESIZING_W, META_GRAB_OP_RESIZING_E, META_GRAB_OP_KEYBOARD_MOVING, META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN,
  META_GRAB_OP_KEYBOARD_RESIZING_S, META_GRAB_OP_KEYBOARD_RESIZING_N, META_GRAB_OP_KEYBOARD_RESIZING_W, META_GRAB_OP_KEYBOARD_RESIZING_E,
  META_GRAB_OP_KEYBOARD_RESIZING_SE, META_GRAB_OP_KEYBOARD_RESIZING_NE, META_GRAB_OP_KEYBOARD_RESIZING_SW, META_GRAB_OP_KEYBOARD_RESIZING_NW,
  META_GRAB_OP_KEYBOARD_TABBING_NORMAL, META_GRAB_OP_KEYBOARD_TABBING_DOCK, META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL, META_GRAB_OP_KEYBOARD_ESCAPING_DOCK,
  META_GRAB_OP_KEYBOARD_ESCAPING_GROUP, META_GRAB_OP_KEYBOARD_TABBING_GROUP, META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING, META_GRAB_OP_CLICKING_MINIMIZE,
  META_GRAB_OP_CLICKING_MAXIMIZE, META_GRAB_OP_CLICKING_UNMAXIMIZE, META_GRAB_OP_CLICKING_DELETE, META_GRAB_OP_CLICKING_MENU,
  META_GRAB_OP_CLICKING_SHADE, META_GRAB_OP_CLICKING_UNSHADE, META_GRAB_OP_CLICKING_ABOVE, META_GRAB_OP_CLICKING_UNABOVE,
  META_GRAB_OP_CLICKING_STICK, META_GRAB_OP_CLICKING_UNSTICK
}
enum  MetaCursor {
  META_CURSOR_DEFAULT, META_CURSOR_NORTH_RESIZE, META_CURSOR_SOUTH_RESIZE, META_CURSOR_WEST_RESIZE,
  META_CURSOR_EAST_RESIZE, META_CURSOR_SE_RESIZE, META_CURSOR_SW_RESIZE, META_CURSOR_NE_RESIZE,
  META_CURSOR_NW_RESIZE, META_CURSOR_MOVE_OR_RESIZE_WINDOW, META_CURSOR_BUSY
}
enum  MetaFocusMode { META_FOCUS_MODE_CLICK, META_FOCUS_MODE_SLOPPY, META_FOCUS_MODE_MOUSE }
enum  MetaFocusNewWindows { META_FOCUS_NEW_WINDOWS_SMART, META_FOCUS_NEW_WINDOWS_STRICT }
enum  MetaActionTitlebar {
  META_ACTION_TITLEBAR_TOGGLE_SHADE, META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE, META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY, META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY,
  META_ACTION_TITLEBAR_MINIMIZE, META_ACTION_TITLEBAR_NONE, META_ACTION_TITLEBAR_LOWER, META_ACTION_TITLEBAR_MENU,
  META_ACTION_TITLEBAR_LAST
}
enum  MetaFrameType {
  META_FRAME_TYPE_NORMAL, META_FRAME_TYPE_DIALOG, META_FRAME_TYPE_MODAL_DIALOG, META_FRAME_TYPE_UTILITY,
  META_FRAME_TYPE_MENU, META_FRAME_TYPE_BORDER, META_FRAME_TYPE_LAST
}
enum  MetaVirtualModifier {
  META_VIRTUAL_SHIFT_MASK = 1 << 5, META_VIRTUAL_CONTROL_MASK = 1 << 6, META_VIRTUAL_ALT_MASK = 1 << 7, META_VIRTUAL_META_MASK = 1 << 8,
  META_VIRTUAL_SUPER_MASK = 1 << 9, META_VIRTUAL_HYPER_MASK = 1 << 10, META_VIRTUAL_MOD2_MASK = 1 << 11, META_VIRTUAL_MOD3_MASK = 1 << 12,
  META_VIRTUAL_MOD4_MASK = 1 << 13, META_VIRTUAL_MOD5_MASK = 1 << 14
}
enum  MetaDirection {
  META_DIRECTION_LEFT = 1 << 0, META_DIRECTION_RIGHT = 1 << 1, META_DIRECTION_TOP = 1 << 2, META_DIRECTION_BOTTOM = 1 << 3,
  META_DIRECTION_UP = META_DIRECTION_TOP, META_DIRECTION_DOWN = META_DIRECTION_BOTTOM, META_DIRECTION_HORIZONTAL = META_DIRECTION_LEFT | META_DIRECTION_RIGHT, META_DIRECTION_VERTICAL = META_DIRECTION_UP | META_DIRECTION_DOWN,
  META_SIDE_LEFT = META_DIRECTION_LEFT, META_SIDE_RIGHT = META_DIRECTION_RIGHT, META_SIDE_TOP = META_DIRECTION_TOP, META_SIDE_BOTTOM = META_DIRECTION_BOTTOM
}
enum  MetaButtonFunction {
  META_BUTTON_FUNCTION_MENU, META_BUTTON_FUNCTION_MINIMIZE, META_BUTTON_FUNCTION_MAXIMIZE, META_BUTTON_FUNCTION_CLOSE,
  META_BUTTON_FUNCTION_SHADE, META_BUTTON_FUNCTION_ABOVE, META_BUTTON_FUNCTION_STICK, META_BUTTON_FUNCTION_UNSHADE,
  META_BUTTON_FUNCTION_UNABOVE, META_BUTTON_FUNCTION_UNSTICK, META_BUTTON_FUNCTION_LAST
}


Define Documentation

#define MAX_BUTTONS_PER_CORNER   META_BUTTON_FUNCTION_LAST

#define META_DEFAULT_ICON_NAME   "window"

#define META_ICON_HEIGHT   32

Definition at line 277 of file common.h.

Referenced by meta_window_update_icon_now(), and set_wm_icon_size_hint().

#define META_ICON_WIDTH   32

#define META_MINI_ICON_HEIGHT   16

Definition at line 279 of file common.h.

Referenced by meta_window_update_icon_now().

#define META_MINI_ICON_WIDTH   16

#define META_PRIORITY_PREFS_NOTIFY   (G_PRIORITY_DEFAULT_IDLE + 10)

Definition at line 283 of file common.h.

Referenced by queue_changed().

#define META_PRIORITY_WORK_AREA_HINT   (G_PRIORITY_DEFAULT_IDLE + 15)

Definition at line 284 of file common.h.

Referenced by meta_screen_queue_workarea_recalc().

#define POINT_IN_RECT ( xcoord,
ycoord,
rect   ) 

Value:

((xcoord) >= (rect).x &&                   \
  (xcoord) <  ((rect).x + (rect).width) &&  \
  (ycoord) >= (rect).y &&                   \
  (ycoord) <  ((rect).y + (rect).height))

Definition at line 286 of file common.h.

Referenced by get_control(), window_contains_point(), and window_raise_with_delay_callback().


Typedef Documentation

Definition at line 263 of file common.h.

Definition at line 32 of file common.h.

Definition at line 75 of file common.h.

typedef void(* MetaWindowMenuFunc)(MetaWindowMenu *menu, Display *xdisplay, Window client_xwindow, guint32 timestamp, MetaMenuOp op, int workspace, gpointer data)

Definition at line 77 of file common.h.


Enumeration Type Documentation

Enumerator:
META_ACTION_TITLEBAR_TOGGLE_SHADE 
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE 
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_HORIZONTALLY 
META_ACTION_TITLEBAR_TOGGLE_MAXIMIZE_VERTICALLY 
META_ACTION_TITLEBAR_MINIMIZE 
META_ACTION_TITLEBAR_NONE 
META_ACTION_TITLEBAR_LOWER 
META_ACTION_TITLEBAR_MENU 
META_ACTION_TITLEBAR_LAST 

Definition at line 173 of file common.h.

Enumerator:
META_BUTTON_FUNCTION_MENU 
META_BUTTON_FUNCTION_MINIMIZE 
META_BUTTON_FUNCTION_MAXIMIZE 
META_BUTTON_FUNCTION_CLOSE 
META_BUTTON_FUNCTION_SHADE 
META_BUTTON_FUNCTION_ABOVE 
META_BUTTON_FUNCTION_STICK 
META_BUTTON_FUNCTION_UNSHADE 
META_BUTTON_FUNCTION_UNABOVE 
META_BUTTON_FUNCTION_UNSTICK 
META_BUTTON_FUNCTION_LAST 

Definition at line 246 of file common.h.

enum MetaCursor

Enumerator:
META_CURSOR_DEFAULT 
META_CURSOR_NORTH_RESIZE 
META_CURSOR_SOUTH_RESIZE 
META_CURSOR_WEST_RESIZE 
META_CURSOR_EAST_RESIZE 
META_CURSOR_SE_RESIZE 
META_CURSOR_SW_RESIZE 
META_CURSOR_NE_RESIZE 
META_CURSOR_NW_RESIZE 
META_CURSOR_MOVE_OR_RESIZE_WINDOW 
META_CURSOR_BUSY 

Definition at line 144 of file common.h.

Enumerator:
META_DIRECTION_LEFT 
META_DIRECTION_RIGHT 
META_DIRECTION_TOP 
META_DIRECTION_BOTTOM 
META_DIRECTION_UP 
META_DIRECTION_DOWN 
META_DIRECTION_HORIZONTAL 
META_DIRECTION_VERTICAL 
META_SIDE_LEFT 
META_SIDE_RIGHT 
META_SIDE_TOP 
META_SIDE_BOTTOM 

Definition at line 220 of file common.h.

Enumerator:
META_FOCUS_MODE_CLICK 
META_FOCUS_MODE_SLOPPY 
META_FOCUS_MODE_MOUSE 

Definition at line 160 of file common.h.

Enumerator:
META_FOCUS_NEW_WINDOWS_SMART 
META_FOCUS_NEW_WINDOWS_STRICT 

Definition at line 167 of file common.h.

Enumerator:
META_FRAME_ALLOWS_DELETE 
META_FRAME_ALLOWS_MENU 
META_FRAME_ALLOWS_MINIMIZE 
META_FRAME_ALLOWS_MAXIMIZE 
META_FRAME_ALLOWS_VERTICAL_RESIZE 
META_FRAME_ALLOWS_HORIZONTAL_RESIZE 
META_FRAME_HAS_FOCUS 
META_FRAME_SHADED 
META_FRAME_STUCK 
META_FRAME_MAXIMIZED 
META_FRAME_ALLOWS_SHADE 
META_FRAME_ALLOWS_MOVE 
META_FRAME_FULLSCREEN 
META_FRAME_IS_FLASHING 
META_FRAME_ABOVE 

Definition at line 34 of file common.h.

Enumerator:
META_FRAME_TYPE_NORMAL 
META_FRAME_TYPE_DIALOG 
META_FRAME_TYPE_MODAL_DIALOG 
META_FRAME_TYPE_UTILITY 
META_FRAME_TYPE_MENU 
META_FRAME_TYPE_BORDER 
META_FRAME_TYPE_LAST 

Definition at line 186 of file common.h.

enum MetaGrabOp

Enumerator:
META_GRAB_OP_NONE 
META_GRAB_OP_MOVING 
META_GRAB_OP_RESIZING_SE 
META_GRAB_OP_RESIZING_S 
META_GRAB_OP_RESIZING_SW 
META_GRAB_OP_RESIZING_N 
META_GRAB_OP_RESIZING_NE 
META_GRAB_OP_RESIZING_NW 
META_GRAB_OP_RESIZING_W 
META_GRAB_OP_RESIZING_E 
META_GRAB_OP_KEYBOARD_MOVING 
META_GRAB_OP_KEYBOARD_RESIZING_UNKNOWN 
META_GRAB_OP_KEYBOARD_RESIZING_S 
META_GRAB_OP_KEYBOARD_RESIZING_N 
META_GRAB_OP_KEYBOARD_RESIZING_W 
META_GRAB_OP_KEYBOARD_RESIZING_E 
META_GRAB_OP_KEYBOARD_RESIZING_SE 
META_GRAB_OP_KEYBOARD_RESIZING_NE 
META_GRAB_OP_KEYBOARD_RESIZING_SW 
META_GRAB_OP_KEYBOARD_RESIZING_NW 
META_GRAB_OP_KEYBOARD_TABBING_NORMAL 
META_GRAB_OP_KEYBOARD_TABBING_DOCK 
META_GRAB_OP_KEYBOARD_ESCAPING_NORMAL 
META_GRAB_OP_KEYBOARD_ESCAPING_DOCK 
META_GRAB_OP_KEYBOARD_ESCAPING_GROUP 
META_GRAB_OP_KEYBOARD_TABBING_GROUP 
META_GRAB_OP_KEYBOARD_WORKSPACE_SWITCHING 
META_GRAB_OP_CLICKING_MINIMIZE 
META_GRAB_OP_CLICKING_MAXIMIZE 
META_GRAB_OP_CLICKING_UNMAXIMIZE 
META_GRAB_OP_CLICKING_DELETE 
META_GRAB_OP_CLICKING_MENU 
META_GRAB_OP_CLICKING_SHADE 
META_GRAB_OP_CLICKING_UNSHADE 
META_GRAB_OP_CLICKING_ABOVE 
META_GRAB_OP_CLICKING_UNABOVE 
META_GRAB_OP_CLICKING_STICK 
META_GRAB_OP_CLICKING_UNSTICK 

Definition at line 88 of file common.h.

enum MetaMenuOp

Enumerator:
META_MENU_OP_DELETE 
META_MENU_OP_MINIMIZE 
META_MENU_OP_UNMAXIMIZE 
META_MENU_OP_MAXIMIZE 
META_MENU_OP_UNSHADE 
META_MENU_OP_SHADE 
META_MENU_OP_UNSTICK 
META_MENU_OP_STICK 
META_MENU_OP_WORKSPACES 
META_MENU_OP_MOVE 
META_MENU_OP_RESIZE 
META_MENU_OP_ABOVE 
META_MENU_OP_UNABOVE 
META_MENU_OP_MOVE_LEFT 
META_MENU_OP_MOVE_RIGHT 
META_MENU_OP_MOVE_UP 
META_MENU_OP_MOVE_DOWN 
META_MENU_OP_RECOVER 

Definition at line 53 of file common.h.

Enumerator:
META_VIRTUAL_SHIFT_MASK 
META_VIRTUAL_CONTROL_MASK 
META_VIRTUAL_ALT_MASK 
META_VIRTUAL_META_MASK 
META_VIRTUAL_SUPER_MASK 
META_VIRTUAL_HYPER_MASK 
META_VIRTUAL_MOD2_MASK 
META_VIRTUAL_MOD3_MASK 
META_VIRTUAL_MOD4_MASK 
META_VIRTUAL_MOD5_MASK 

Definition at line 197 of file common.h.


Generated on Sat Aug 23 22:04:22 2008 for metacity by  doxygen 1.5.5