# zoom-region.h File Reference

`#include <bonobo/bonobo-object.h>`
`#include "GNOME_Magnifier.h"`

Go to the source code of this file.

## Data Structures
struct | ZoomRegion
struct | ZoomRegionClass
## Defines
#define | ZOOM_REGION_TYPE (zoom_region_get_type ())
#define | ZOOM_REGION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ZOOM_REGION_TYPE, ZoomRegion))
#define | ZOOM_REGION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ZOOM_REGION_TYPE, ZoomRegionClass))
#define | IS_ZOOM_REGION(o) (G_TYPE_CHECK__INSTANCE_TYPE ((o), ZOOM_REGION_TYPE))
#define | IS_ZOOM_REGION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ZOOM_REGION_TYPE))
#define | ZOOM_REGION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ZOOM_REGION_TYPE, ZoomRegionClass))
## Typedefs
typedef GList *(* | CoalesceFunc )(GList *, int)
typedef struct _ZoomRegionPrivate | ZoomRegionPrivate
## Functions
GType | zoom_region_get_type (void)
ZoomRegion * | zoom_region_new (void)
gboolean | impl_dbus_zoom_region_set_mag_factor (ZoomRegion *zoom_region, const gdouble mag_factor_x, const gdouble mag_factor_y)
GArray * | impl_dbus_zoom_region_get_mag_factor (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_roi (ZoomRegion *zoom_region, const gint32 **roi)
gboolean | impl_dbus_zoom_region_update_pointer (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_mark_dirty (ZoomRegion *zoom_region, gint32 **bounds)
GArray * | impl_dbus_zoom_region_get_roi (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_move_resize (ZoomRegion *zoom_region, const gint32 **viewport)
gboolean | impl_dbus_zoom_region_dispose (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_pointer_pos (ZoomRegion *zoom_region, gint32 mouse_x, gint32 mouse_y)
gboolean | impl_dbus_zoom_region_set_contrast (ZoomRegion *zoom_region, gdouble R, gdouble G, gdouble B)
GArray * | impl_dbus_zoom_region_get_contrast (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_brightness (ZoomRegion *zoom_region, gdouble R, gdouble G, gdouble B)
GArray * | impl_dbus_zoom_region_get_brightness (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_managed (ZoomRegion *zoom_region, gboolean managed)
gboolean | impl_dbus_zoom_region_get_managed (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_poll_mouse (ZoomRegion *zoom_region, gboolean poll_mouse)
gboolean | impl_dbus_zoom_region_get_poll_mouse (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_draw_cursor (ZoomRegion *zoom_region, gboolean draw_cursor)
gboolean | impl_dbus_zoom_region_get_draw_cursor (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_invert (ZoomRegion *zoom_region, gboolean invert)
gboolean | impl_dbus_zoom_region_get_invert (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_smoothscroll (ZoomRegion *zoom_region, gshort smoothscroll)
gshort | impl_dbus_zoom_region_get_smoothscroll (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_colorblind (ZoomRegion *zoom_region, gshort colorblind)
gshort | impl_dbus_zoom_region_get_colorblind (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_smoothing (ZoomRegion *zoom_region, gchar *smoothing)
gchar * | impl_dbus_zoom_region_get_smoothing (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_testpattern (ZoomRegion *zoom_region, gboolean test)
gboolean | impl_dbus_zoom_region_get_testpattern (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_bordersizes (ZoomRegion *zoom_region, gint32 **bordersizes)
GArray * | impl_dbus_zoom_region_get_bordersizes (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_bordercolor (ZoomRegion *zoom_region, guint32 bordercolor)
guint32 | impl_dbus_zoom_region_get_bordercolor (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_xalign (ZoomRegion *zoom_region, gint32 align)
gint32 | impl_dbus_zoom_region_get_xalign (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_yalign (ZoomRegion *zoom_region, gint32 align)
gint32 | impl_dbus_zoom_region_get_yalign (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_viewport (ZoomRegion *zoom_region, gint32 **viewport)
GArray * | impl_dbus_zoom_region_get_viewport (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_timing_test (ZoomRegion *zoom_region, gint32 timing_iterations)
gint32 | impl_dbus_zoom_region_get_timing_test (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_timing_output (ZoomRegion *zoom_region, gboolean timing_output)
gboolean | impl_dbus_zoom_region_get_timing_output (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_timing_pan_rate (ZoomRegion *zoom_region, gint32 timing_pan_rate)
gint32 | impl_dbus_zoom_region_get_timing_pan_rate (ZoomRegion *zoom_region)
gboolean | impl_dbus_zoom_region_set_exit_magnifier (ZoomRegion *zoom_region, gboolean exit_magnifier)
gboolean | impl_dbus_zoom_region_get_exit_magnifier (ZoomRegion *zoom_region)

## Define Documentation

#define ZOOM_REGION_TYPE (zoom_region_get_type ())

Definition at line 34 of file zoom-region.h.

Referenced by zoom_region_new().

#define ZOOM_REGION | ( | o |  | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), ZOOM_REGION_TYPE, ZoomRegion))

Definition at line 35 of file zoom-region.h.

Referenced by impl_zoom_region_dispose(), impl_zoom_region_get_brightness(), impl_zoom_region_get_contrast(), 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_brightness(), impl_zoom_region_set_contrast(), impl_zoom_region_set_mag_factor(), impl_zoom_region_set_pointer_pos(), impl_zoom_region_set_roi(), impl_zoom_region_update_pointer(), and zoom_region_dispose().

#define ZOOM_REGION_CLASS | ( | k |  | ) | (G_TYPE_CHECK_CLASS_CAST((k), ZOOM_REGION_TYPE, ZoomRegionClass))

Definition at line 36 of file zoom-region.h.

#define IS_ZOOM_REGION | ( | o |  | ) | (G_TYPE_CHECK__INSTANCE_TYPE ((o), ZOOM_REGION_TYPE))

Definition at line 37 of file zoom-region.h.

#define IS_ZOOM_REGION_CLASS | ( | k |  | ) | (G_TYPE_CHECK_CLASS_TYPE ((k), ZOOM_REGION_TYPE))

Definition at line 38 of file zoom-region.h.

#define ZOOM_REGION_GET_CLASS | ( | o |  | ) | (G_TYPE_INSTANCE_GET_CLASS ((o), ZOOM_REGION_TYPE, ZoomRegionClass))

Definition at line 39 of file zoom-region.h.

Referenced by zoom_region_new().

## Typedef Documentation

typedef GList*(* CoalesceFunc)(GList *, int)

Definition at line 41 of file zoom-region.h.

typedef struct _ZoomRegionPrivate ZoomRegionPrivate

Definition at line 43 of file zoom-region.h.

## Function Documentation

GType zoom_region_get_type | ( | void |  | ) |

Referenced by zoom_region_new().

ZoomRegion* zoom_region_new | ( | void |  | ) |

Definition at line 4348 of file zoom-region.c.

References ZoomRegionClass::connection, dbus_glib_impl_dbus_zoom_region_object_info, ZoomRegion::object_path, ZOOM_REGION_GET_CLASS, zoom_region_get_type(), zoom_region_number, and ZOOM_REGION_TYPE.

Referenced by impl_dbus_magnifier_create_zoom_region(), and impl_magnifier_create_zoom_region().

gboolean impl_dbus_zoom_region_set_mag_factor | ( | ZoomRegion * | zoom_region,
|  | const gdouble | mag_factor_x,
|  | const gdouble | mag_factor_y |
| ) |  |  |

Definition at line 3522 of file zoom-region.c.

References Bonobo_PropertyBag_getValue(), GNOME_Magnifier_Magnifier_getProperties(), _ZoomRegionPrivate::parent, ZoomRegion::priv, _ZoomRegionPrivate::source_area, ZoomRegion::xscale, ZoomRegion::yscale, zoom_region_sync(), and zoom_region_update_scale().

Referenced by impl_dbus_magnifier_create_zoom_region().

GArray* impl_dbus_zoom_region_get_mag_factor | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3559 of file zoom-region.c.

References ZoomRegion::xscale, and ZoomRegion::yscale.

gboolean impl_dbus_zoom_region_set_roi | ( | ZoomRegion * | zoom_region,
|  | const gint32 ** | roi |
| ) |  |  |

Definition at line 3572 of file zoom-region.c.

References _set_bounds(), DBG, ZoomRegion::exit_magnifier, pending_idle_handler, processing_updates, ZoomRegion::roi, ZoomRegion::timing_output, ZoomRegion::timing_pan_rate, timing_report(), timing_test, GNOME_Magnifier_RectBounds_type::x1, RectBounds::x1, GNOME_Magnifier_RectBounds_type::x2, RectBounds::x2, GNOME_Magnifier_RectBounds_type::y1, RectBounds::y1, GNOME_Magnifier_RectBounds_type::y2, RectBounds::y2, zoom_region_align(), zoom_region_pan_test(), and zoom_region_process_pending().

Referenced by impl_dbus_magnifier_create_zoom_region().

gboolean impl_dbus_zoom_region_update_pointer | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3653 of file zoom-region.c.

References zoom_region_update_cursor().

gboolean impl_dbus_zoom_region_mark_dirty | ( | ZoomRegion * | zoom_region,
|  | gint32 ** | bounds |
| ) |  |  |

Definition at line 3665 of file zoom-region.c.

References DEBUG_RECT, GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, zoom_region_clip_to_source(), zoom_region_queue_update(), zoom_region_rect_from_bounds(), and zoom_region_update_pointer().

GArray* impl_dbus_zoom_region_get_roi | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3689 of file zoom-region.c.

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

gboolean impl_dbus_zoom_region_move_resize | ( | ZoomRegion * | zoom_region,
|  | const gint32 ** | viewport |
| ) |  |  |

Definition at line 3704 of file zoom-region.c.

References GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, and zoom_region_set_viewport().

Referenced by impl_dbus_magnifier_create_zoom_region().

gboolean impl_dbus_zoom_region_dispose | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3514 of file zoom-region.c.

References zoom_region_do_dispose().

Referenced by magnifier_dbus_unref_zoom_region().

gboolean impl_dbus_zoom_region_set_pointer_pos | ( | ZoomRegion * | zoom_region,
|  | gint32 | mouse_x,
|  | gint32 | mouse_y |
| ) |  |  |

Definition at line 3721 of file zoom-region.c.

References DBG, ZoomRegion::priv, _ZoomRegionPrivate::w, zoom_region_clip_to_source(), and zoom_region_set_cursor_pos().

gboolean impl_dbus_zoom_region_set_contrast | ( | ZoomRegion * | zoom_region,
|  | gdouble | R,
|  | gdouble | G,
|  | gdouble | B |
| ) |  |  |

Definition at line 3759 of file zoom-region.c.

References CLAMP_B_C, ZoomRegion::contrast_b, ZoomRegion::contrast_g, ZoomRegion::contrast_r, DBG, and zoom_region_update_current().

GArray* impl_dbus_zoom_region_get_contrast | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3784 of file zoom-region.c.

References ZoomRegion::contrast_b, ZoomRegion::contrast_g, and ZoomRegion::contrast_r.

gboolean impl_dbus_zoom_region_set_brightness | ( | ZoomRegion * | zoom_region,
|  | gdouble | R,
|  | gdouble | G,
|  | gdouble | B |
| ) |  |  |

Definition at line 3798 of file zoom-region.c.

References ZoomRegion::bright_b, ZoomRegion::bright_g, ZoomRegion::bright_r, CLAMP_B_C, DBG, and zoom_region_update_current().

GArray* impl_dbus_zoom_region_get_brightness | ( | ZoomRegion * | zoom_region | ) |

Definition at line 3823 of file zoom-region.c.

References ZoomRegion::bright_b, ZoomRegion::bright_g, and ZoomRegion::bright_r.

gboolean impl_dbus_zoom_region_set_managed | ( | ZoomRegion * | zoom_region,
|  | gboolean | managed |
| ) |  |  |

Definition at line 2554 of file zoom-region.c.

References ZoomRegion::is_managed.

gboolean impl_dbus_zoom_region_get_managed | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2562 of file zoom-region.c.

References ZoomRegion::is_managed.

gboolean impl_dbus_zoom_region_set_poll_mouse | ( | ZoomRegion * | zoom_region,
|  | gboolean | poll_mouse |
| ) |  |  |

Definition at line 2568 of file zoom-region.c.

References ZoomRegion::poll_mouse, ZoomRegion::priv, _ZoomRegionPrivate::update_pointer_id, and zoom_region_update_pointer_timeout().

gboolean impl_dbus_zoom_region_get_poll_mouse | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2588 of file zoom-region.c.

References ZoomRegion::poll_mouse.

gboolean impl_dbus_zoom_region_set_draw_cursor | ( | ZoomRegion * | zoom_region,
|  | gboolean | draw_cursor |
| ) |  |  |

Definition at line 2594 of file zoom-region.c.

References ZoomRegion::draw_cursor, and zoom_region_unpaint_cursor().

gboolean impl_dbus_zoom_region_get_draw_cursor | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2605 of file zoom-region.c.

References ZoomRegion::draw_cursor.

gboolean impl_dbus_zoom_region_set_invert | ( | ZoomRegion * | zoom_region,
|  | gboolean | invert |
| ) |  |  |

Definition at line 2611 of file zoom-region.c.

References ZoomRegion::invert, and zoom_region_update_current().

gboolean impl_dbus_zoom_region_get_invert | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2620 of file zoom-region.c.

References ZoomRegion::invert.

gboolean impl_dbus_zoom_region_set_smoothscroll | ( | ZoomRegion * | zoom_region,
|  | gshort | smoothscroll |
| ) |  |  |

Definition at line 2626 of file zoom-region.c.

References ZoomRegion::smooth_scroll_policy.

gshort impl_dbus_zoom_region_get_smoothscroll | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2634 of file zoom-region.c.

References ZoomRegion::smooth_scroll_policy.

gboolean impl_dbus_zoom_region_set_colorblind | ( | ZoomRegion * | zoom_region,
|  | gshort | colorblind |
| ) |  |  |

Definition at line 2640 of file zoom-region.c.

References ZoomRegion::color_blind_filter, and zoom_region_update_current().

gshort impl_dbus_zoom_region_get_colorblind | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2649 of file zoom-region.c.

References ZoomRegion::color_blind_filter.

gboolean impl_dbus_zoom_region_set_smoothing | ( | ZoomRegion * | zoom_region,
|  | gchar * | smoothing |
| ) |  |  |

Definition at line 2655 of file zoom-region.c.

References _ZoomRegionPrivate::gdk_interp_type, ZoomRegion::priv, ZoomRegion::smoothing, and zoom_region_update_current().

gchar* impl_dbus_zoom_region_get_smoothing | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2669 of file zoom-region.c.

References ZoomRegion::smoothing.

gboolean impl_dbus_zoom_region_set_testpattern | ( | ZoomRegion * | zoom_region,
|  | gboolean | test |
| ) |  |  |

Definition at line 2675 of file zoom-region.c.

References ZoomRegion::priv, _ZoomRegionPrivate::source_drawable, _ZoomRegionPrivate::test, and zoom_region_update_current().

gboolean impl_dbus_zoom_region_get_testpattern | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2688 of file zoom-region.c.

References ZoomRegion::priv, and _ZoomRegionPrivate::test.

gboolean impl_dbus_zoom_region_set_bordersizes | ( | ZoomRegion * | zoom_region,
|  | gint32 ** | bordersizes |
| ) |  |  |

Definition at line 2694 of file zoom-region.c.

References ZoomRegion::border_size_bottom, ZoomRegion::border_size_left, ZoomRegion::border_size_right, ZoomRegion::border_size_top, and zoom_region_update_borders().

GArray* impl_dbus_zoom_region_get_bordersizes | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2706 of file zoom-region.c.

References ZoomRegion::border_size_bottom, ZoomRegion::border_size_left, ZoomRegion::border_size_right, and ZoomRegion::border_size_top.

gboolean impl_dbus_zoom_region_set_bordercolor | ( | ZoomRegion * | zoom_region,
|  | guint32 | bordercolor |
| ) |  |  |

Definition at line 2721 of file zoom-region.c.

References ZoomRegion::border_color, and zoom_region_paint_border().

guint32 impl_dbus_zoom_region_get_bordercolor | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2730 of file zoom-region.c.

References ZoomRegion::border_color.

gboolean impl_dbus_zoom_region_set_xalign | ( | ZoomRegion * | zoom_region,
|  | gint32 | align |
| ) |  |  |

Definition at line 2736 of file zoom-region.c.

References ZoomRegion::x_align_policy, and zoom_region_align().

gint32 impl_dbus_zoom_region_get_xalign | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2745 of file zoom-region.c.

References ZoomRegion::x_align_policy.

gboolean impl_dbus_zoom_region_set_yalign | ( | ZoomRegion * | zoom_region,
|  | gint32 | align |
| ) |  |  |

Definition at line 2751 of file zoom-region.c.

References ZoomRegion::y_align_policy, and zoom_region_align().

gint32 impl_dbus_zoom_region_get_yalign | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2760 of file zoom-region.c.

References ZoomRegion::y_align_policy.

gboolean impl_dbus_zoom_region_set_viewport | ( | ZoomRegion * | zoom_region,
|  | gint32 ** | viewport |
| ) |  |  |

Definition at line 2766 of file zoom-region.c.

References GNOME_Magnifier_RectBounds_type::x1, GNOME_Magnifier_RectBounds_type::x2, GNOME_Magnifier_RectBounds_type::y1, GNOME_Magnifier_RectBounds_type::y2, and zoom_region_set_viewport().

GArray* impl_dbus_zoom_region_get_viewport | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2783 of file zoom-region.c.

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

gboolean impl_dbus_zoom_region_set_timing_test | ( | ZoomRegion * | zoom_region,
|  | gint32 | timing_iterations |
| ) |  |  |

Definition at line 2798 of file zoom-region.c.

References ZoomRegion::timing_iterations, and timing_test.

gint32 impl_dbus_zoom_region_get_timing_test | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2807 of file zoom-region.c.

References ZoomRegion::timing_iterations.

gboolean impl_dbus_zoom_region_set_timing_output | ( | ZoomRegion * | zoom_region,
|  | gboolean | timing_output |
| ) |  |  |

Definition at line 2813 of file zoom-region.c.

References ZoomRegion::timing_output.

gboolean impl_dbus_zoom_region_get_timing_output | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2821 of file zoom-region.c.

References ZoomRegion::timing_output.

gboolean impl_dbus_zoom_region_set_timing_pan_rate | ( | ZoomRegion * | zoom_region,
|  | gint32 | timing_pan_rate |
| ) |  |  |

Definition at line 2827 of file zoom-region.c.

References ZoomRegion::timing_pan_rate, and timing_test.

gint32 impl_dbus_zoom_region_get_timing_pan_rate | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2836 of file zoom-region.c.

References ZoomRegion::timing_pan_rate.

gboolean impl_dbus_zoom_region_set_exit_magnifier | ( | ZoomRegion * | zoom_region,
|  | gboolean | exit_magnifier |
| ) |  |  |

Definition at line 2842 of file zoom-region.c.

References ZoomRegion::exit_magnifier.

gboolean impl_dbus_zoom_region_get_exit_magnifier | ( | ZoomRegion * | zoom_region | ) |

Definition at line 2850 of file zoom-region.c.

References ZoomRegion::exit_magnifier.