metacity-mag.c File Reference

Go to the source code of this file.

Defines

#define _GNU_SOURCE
#define _XOPEN_SOURCE   600

Functions

static GdkPixbuf * get_pixbuf (void)
static gboolean regrab_idle (GtkWidget *image)
static void image_resized (GtkWidget *image)
static void grab_area_at_mouse (GtkWidget *invisible, int x_root, int y_root)
static void shutdown_grab (void)
static void mouse_motion (GtkWidget *invisible, GdkEventMotion *event, gpointer data)
static gboolean mouse_release (GtkWidget *invisible, GdkEventButton *event, gpointer data)
static gboolean mouse_press (GtkWidget *invisible, GdkEventButton *event, gpointer data)
static gboolean key_press (GtkWidget *invisible, GdkEventKey *event, gpointer data)
static void begin_area_grab (void)
int main (int argc, char **argv)

Variables

static GtkWidget * grab_widget = NULL
static GtkWidget * display_window = NULL
static int last_grab_x = 0
static int last_grab_y = 0
static int last_grab_width = 150
static int last_grab_height = 150
static GtkAllocation last_grab_allocation
static double width_factor = 4.0
static double height_factor = 4.0
static GdkInterpType interp_mode = GDK_INTERP_NEAREST
static guint regrab_idle_id = 0


Define Documentation

#define _GNU_SOURCE

Definition at line 22 of file metacity-mag.c.

#define _XOPEN_SOURCE   600

Definition at line 23 of file metacity-mag.c.


Function Documentation

static void begin_area_grab ( void   )  [static]

Definition at line 235 of file metacity-mag.c.

References FALSE, grab_widget, key_press(), mouse_press(), and NULL.

Referenced by main().

static GdkPixbuf* get_pixbuf ( void   )  [static]

static void grab_area_at_mouse ( GtkWidget *  invisible,
int  x_root,
int  y_root 
) [static]

static void image_resized ( GtkWidget *  image  )  [static]

Definition at line 101 of file metacity-mag.c.

References NULL, regrab_idle(), and regrab_idle_id.

Referenced by grab_area_at_mouse().

static gboolean key_press ( GtkWidget *  invisible,
GdkEventKey *  event,
gpointer  data 
) [static]

Definition at line 189 of file metacity-mag.c.

References FALSE, mouse_press(), NULL, shutdown_grab(), and TRUE.

Referenced by begin_area_grab(), and mouse_press().

int main ( int  argc,
char **  argv 
)

Definition at line 276 of file metacity-mag.c.

References begin_area_grab().

static void mouse_motion ( GtkWidget *  invisible,
GdkEventMotion *  event,
gpointer  data 
) [static]

Definition at line 155 of file metacity-mag.c.

Referenced by mouse_press(), and mouse_release().

static gboolean mouse_press ( GtkWidget *  invisible,
GdkEventButton *  event,
gpointer  data 
) [static]

Definition at line 211 of file metacity-mag.c.

References FALSE, key_press(), mouse_motion(), mouse_release(), NULL, and TRUE.

Referenced by begin_area_grab(), and key_press().

static gboolean mouse_release ( GtkWidget *  invisible,
GdkEventButton *  event,
gpointer  data 
) [static]

Definition at line 163 of file metacity-mag.c.

References FALSE, grab_area_at_mouse(), mouse_motion(), NULL, shutdown_grab(), and TRUE.

Referenced by mouse_press().

static gboolean regrab_idle ( GtkWidget *  image  )  [static]

static void shutdown_grab ( void   )  [static]

Definition at line 147 of file metacity-mag.c.

References grab_widget.

Referenced by key_press(), and mouse_release().


Variable Documentation

GtkWidget* display_window = NULL [static]

Definition at line 33 of file metacity-mag.c.

Referenced by grab_area_at_mouse().

GtkWidget* grab_widget = NULL [static]

Definition at line 32 of file metacity-mag.c.

Referenced by begin_area_grab(), and shutdown_grab().

double height_factor = 4.0 [static]

Definition at line 40 of file metacity-mag.c.

Referenced by get_pixbuf(), and regrab_idle().

GdkInterpType interp_mode = GDK_INTERP_NEAREST [static]

Definition at line 41 of file metacity-mag.c.

Referenced by get_pixbuf().

GtkAllocation last_grab_allocation [static]

Definition at line 38 of file metacity-mag.c.

Referenced by regrab_idle().

int last_grab_height = 150 [static]

Definition at line 37 of file metacity-mag.c.

Referenced by get_pixbuf(), grab_area_at_mouse(), and regrab_idle().

int last_grab_width = 150 [static]

Definition at line 36 of file metacity-mag.c.

Referenced by get_pixbuf(), grab_area_at_mouse(), and regrab_idle().

int last_grab_x = 0 [static]

Definition at line 34 of file metacity-mag.c.

Referenced by get_pixbuf(), and grab_area_at_mouse().

int last_grab_y = 0 [static]

Definition at line 35 of file metacity-mag.c.

Referenced by get_pixbuf(), and grab_area_at_mouse().

guint regrab_idle_id = 0 [static]

Definition at line 42 of file metacity-mag.c.

Referenced by image_resized(), and regrab_idle().

double width_factor = 4.0 [static]

Definition at line 39 of file metacity-mag.c.

Referenced by get_pixbuf(), and regrab_idle().


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