Main Page | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

magnifier-main.c File Reference

#include <string.h>
#include <stdlib.h>
#include <popt.h>
#include <sys/time.h>
#include <gdk/gdkwindow.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include <libbonobo.h>
#include "magnifier.h"
#include "magnifier-private.h"
#include "zoom-region.h"
#include "GNOME_Magnifier.h"

Go to the source code of this file.

Data Structures

struct  MagnifierOptions

Defines

#define ENV_STRING_MAX_SIZE   128

Functions

static void init_rect_bounds (GNOME_Magnifier_RectBounds *bounds, long x1, long y1, long x2, long y2)
static int magnifier_main_test_image (gpointer data)
static int magnifier_main_pan_image (gpointer data)
static int magnifier_main_refresh_all (gpointer data)
int main (int argc, char **argv)

Variables

GNOME_Magnifier_ZoomRegion zoom_region
static MagnifierOptions global_options
poptOption magnifier_options []
static int screen_width
static int screen_height
static int last_x = 0
static int last_y = 0


Define Documentation

#define ENV_STRING_MAX_SIZE   128
 

Definition at line 36 of file magnifier-main.c.


Function Documentation

static void init_rect_bounds GNOME_Magnifier_RectBounds bounds,
long  x1,
long  y1,
long  x2,
long  y2
[static]
 

Definition at line 136 of file magnifier-main.c.

References GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, and GNOME_Magnifier_RectBounds_type::y2.

Referenced by main().

static int magnifier_main_test_image gpointer  data  )  [static]
 

Definition at line 148 of file magnifier-main.c.

References CORBA_sequence_CORBA_Object::_buffer, CORBA_sequence_CORBA_Object::_length, GNOME_Magnifier_Magnifier_getZoomRegions(), GNOME_Magnifier_ZoomRegion_getProperties(), GNOME_Magnifier_ZoomRegion_setROI(), MagnifierOptions::horizontal_split, IS_MAGNIFIER, screen_height, screen_width, MagnifierOptions::timing_delta_x, MagnifierOptions::timing_delta_y, MagnifierOptions::timing_iterations, GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, MagnifierOptions::zoom_factor, and zoom_region.

Referenced by main().

static int magnifier_main_pan_image gpointer  data  )  [static]
 

Definition at line 236 of file magnifier-main.c.

References CORBA_sequence_CORBA_Object::_buffer, CORBA_sequence_CORBA_Object::_length, GNOME_Magnifier_Magnifier_getZoomRegions(), GNOME_Magnifier_ZoomRegion_setROI(), IS_MAGNIFIER, last_x, last_y, magnifier_get_root(), MagnifierOptions::mouse_follow, GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, and zoom_region.

Referenced by main().

static int magnifier_main_refresh_all gpointer  data  )  [static]
 

Definition at line 297 of file magnifier-main.c.

References CORBA_sequence_CORBA_Object::_buffer, CORBA_sequence_CORBA_Object::_length, Bonobo_PropertyBag_getValue(), GNOME_Magnifier_Magnifier_getProperties(), GNOME_Magnifier_Magnifier_getZoomRegions(), GNOME_Magnifier_ZoomRegion_markDirty(), IS_MAGNIFIER, GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, and GNOME_Magnifier_RectBounds_type::y2.

Referenced by main().

int main int  argc,
char **  argv
 

slight hack, we set $DISPLAY if --target-display is set. this is because I don't think GTK+ works well with across multiple servers yet.

Definition at line 344 of file magnifier-main.c.

References CORBA_sequence_CORBA_Object::_buffer, CORBA_sequence_CORBA_Object::_length, MagnifierOptions::border_color, MagnifierOptions::border_width, MagnifierOptions::cursor_color, MagnifierOptions::cursor_scale_factor, MagnifierOptions::cursor_set, MagnifierOptions::cursor_size, MagnifierOptions::fullscreen, GNOME_Magnifier_Magnifier_addZoomRegion(), GNOME_Magnifier_Magnifier_createZoomRegion(), GNOME_Magnifier_Magnifier_getProperties(), GNOME_Magnifier_Magnifier_getZoomRegions(), GNOME_Magnifier_RectBounds__alloc, GNOME_Magnifier_ZoomRegion_getProperties(), GNOME_Magnifier_ZoomRegion_SCROLL_FASTEST, GNOME_Magnifier_ZoomRegion_SCROLL_SMOOTHEST, GNOME_Magnifier_ZoomRegion_setROI(), MagnifierOptions::horizontal_split, MagnifierOptions::ignore_damage, init_rect_bounds(), MagnifierOptions::invert_image, MagnifierOptions::is_override_redirect, magnifier_main_pan_image(), magnifier_main_refresh_all(), magnifier_main_test_image(), magnifier_new(), magnifier_options, magnifier_source_has_damage_extension(), MagnifierOptions::mouse_poll_time, MagnifierOptions::refresh_time, screen_height, screen_width, MagnifierOptions::smooth_scroll, MagnifierOptions::smoothing_type, MagnifierOptions::source_display, MagnifierOptions::target_display, TC_GNOME_Magnifier_RectBounds, MagnifierOptions::test_pattern, MagnifierOptions::timing_iterations, MagnifierOptions::timing_output, MagnifierOptions::timing_pan_rate, MagnifierOptions::vertical_split, GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, MagnifierOptions::zoom_factor, and zoom_region.


Variable Documentation

GNOME_Magnifier_ZoomRegion zoom_region
 

Definition at line 38 of file magnifier-main.c.

Referenced by gdk_timing_idle(), impl_magnifier_create_zoom_region(), impl_zoom_region_dispose(), impl_zoom_region_get_mag_factor(), impl_zoom_region_get_properties(), impl_zoom_region_get_roi(), impl_zoom_region_mark_dirty(), impl_zoom_region_move_resize(), impl_zoom_region_set_mag_factor(), impl_zoom_region_set_roi(), magnifier_main_pan_image(), magnifier_main_test_image(), magnifier_unref_zoom_region(), magnifier_zoom_regions_mark_dirty(), magnifier_zoom_regions_save(), main(), zoom_region_dispose(), zoom_region_expose_handler(), zoom_region_finalize(), zoom_region_get_property(), zoom_region_pan_test(), zoom_region_process_pending(), zoom_region_process_updates(), zoom_region_set_property(), zoom_region_update_pointer_idle(), and zoom_region_update_pointer_timeout().

MagnifierOptions global_options [static]
 

Initial value:

 { ":0.0",
                                           ":0.0",
                                           "default",
                                           "none",
                                           2.0,
                                           0.0,
                                           0.0,
                                           500,
                                           50,
                                           0,
                                           0.0F,
                                           0xFF000000,
                                           0,
                                           0,
                                           0,
                                           0,
                                           0,   
                                           0,
                                           0,
                                           0,
                                           10,
                                           10,
                                           0,
                                           1,
                                           0,
                                           0,
                                           0,
                                           0,
                                           0
                                         }

Definition at line 72 of file magnifier-main.c.

struct poptOption magnifier_options[]
 

Definition at line 103 of file magnifier-main.c.

Referenced by main().

int screen_width [static]
 

Definition at line 145 of file magnifier-main.c.

Referenced by magnifier_main_test_image(), and main().

int screen_height [static]
 

Definition at line 145 of file magnifier-main.c.

Referenced by magnifier_main_test_image(), main(), and zoom_region_pan_test().

int last_x = 0 [static]
 

Definition at line 233 of file magnifier-main.c.

Referenced by magnifier_main_pan_image().

int last_y = 0 [static]
 

Definition at line 233 of file magnifier-main.c.

Referenced by magnifier_main_pan_image().


Generated on Mon May 15 16:14:02 2006 for gnome-mag by  doxygen 1.4.4