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 _GNU_SOURCE |
Definition at line 22 of file metacity-mag.c.
| #define _XOPEN_SOURCE 600 |
Definition at line 23 of file metacity-mag.c.
| 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] |
Definition at line 45 of file metacity-mag.c.
References height_factor, interp_mode, last_grab_height, last_grab_width, last_grab_x, last_grab_y, NULL, and width_factor.
Referenced by grab_area_at_mouse(), and regrab_idle().
| static void grab_area_at_mouse | ( | GtkWidget * | invisible, | |
| int | x_root, | |||
| int | y_root | |||
| ) | [static] |
Definition at line 109 of file metacity-mag.c.
References display_window, get_pixbuf(), image_resized(), last_grab_height, last_grab_width, last_grab_x, last_grab_y, and NULL.
Referenced by mouse_release().
| 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 | |||
| ) |
| static void mouse_motion | ( | GtkWidget * | invisible, | |
| GdkEventMotion * | event, | |||
| gpointer | data | |||
| ) | [static] |
| 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] |
Definition at line 77 of file metacity-mag.c.
References FALSE, get_pixbuf(), height_factor, last_grab_allocation, last_grab_height, last_grab_width, regrab_idle_id, and width_factor.
Referenced by image_resized().
| 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().
GtkWidget* display_window = NULL [static] |
GtkWidget* grab_widget = NULL [static] |
double height_factor = 4.0 [static] |
GdkInterpType interp_mode = GDK_INTERP_NEAREST [static] |
GtkAllocation last_grab_allocation [static] |
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] |
int last_grab_y = 0 [static] |
guint regrab_idle_id = 0 [static] |
double width_factor = 4.0 [static] |
1.5.5