#include <config.h>
#include "ev-image-accessible.h"
#include "ev-view-private.h"
Go to the source code of this file.
|
static void | ev_image_accessible_component_iface_init (AtkComponentIface *iface) |
|
static void | ev_image_accessible_image_iface_init (AtkImageIface *iface) |
|
| G_DEFINE_TYPE_WITH_CODE (EvImageAccessible, ev_image_accessible, ATK_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(ATK_TYPE_IMAGE, ev_image_accessible_image_iface_init)) |
|
static void | ev_image_accessible_get_extents (AtkComponent *atk_component, gint *x, gint *y, gint *width, gint *height, AtkCoordType coord_type) |
|
static const gchar * | ev_image_accessible_get_image_description (AtkImage *image) |
|
static const gchar * | ev_image_accessible_get_image_locale (AtkImage *atk_image) |
|
static void | ev_image_accessible_get_image_size (AtkImage *atk_image, int *width, int *height) |
|
static void | ev_image_accessible_get_image_position (AtkImage *atk_image, gint *x, gint *y, AtkCoordType coord_type) |
|
static AtkStateSet * | ev_image_accessible_ref_state_set (AtkObject *atk_object) |
|
static AtkObject * | ev_image_accessible_get_parent (AtkObject *atk_object) |
|
static void | ev_image_accessible_finalize (GObject *object) |
|
static void | ev_image_accessible_class_init (EvImageAccessibleClass *klass) |
|
static void | ev_image_accessible_init (EvImageAccessible *image) |
|
EvImageAccessible * | ev_image_accessible_new (EvPageAccessible *page, EvImage *image, EvRectangle *area) |
|
Definition at line 166 of file ev-image-accessible.c.
168 GObjectClass *object_class = G_OBJECT_CLASS (klass);
169 AtkObjectClass *atk_class = ATK_OBJECT_CLASS (klass);
static void ev_image_accessible_component_iface_init |
( |
AtkComponentIface * |
iface) | |
|
|
static |
static void ev_image_accessible_finalize |
( |
GObject * |
object) | |
|
|
static |
Definition at line 156 of file ev-image-accessible.c.
160 g_object_unref (priv->
image);
162 G_OBJECT_CLASS (ev_image_accessible_parent_class)->finalize (
object);
static void ev_image_accessible_get_extents |
( |
AtkComponent * |
atk_component, |
|
|
gint * |
x, |
|
|
gint * |
y, |
|
|
gint * |
width, |
|
|
gint * |
height, |
|
|
AtkCoordType |
coord_type |
|
) |
| |
|
static |
Definition at line 56 of file ev-image-accessible.c.
65 ev_image_accessible_get_atk_rect (ATK_OBJECT (atk_component), coord_type, &atk_rect);
68 *width = atk_rect.
x2 - atk_rect.
x1;
69 *height = atk_rect.
y2 - atk_rect.
y1;
static const gchar* ev_image_accessible_get_image_description |
( |
AtkImage * |
image) | |
|
|
static |
static const gchar* ev_image_accessible_get_image_locale |
( |
AtkImage * |
atk_image) | |
|
|
static |
static void ev_image_accessible_get_image_position |
( |
AtkImage * |
atk_image, |
|
|
gint * |
x, |
|
|
gint * |
y, |
|
|
AtkCoordType |
coord_type |
|
) |
| |
|
static |
Definition at line 105 of file ev-image-accessible.c.
112 ev_image_accessible_get_atk_rect (ATK_OBJECT (atk_image), ATK_XY_WINDOW, &atk_rect);
static void ev_image_accessible_get_image_size |
( |
AtkImage * |
atk_image, |
|
|
int * |
width, |
|
|
int * |
height |
|
) |
| |
|
static |
Definition at line 93 of file ev-image-accessible.c.
99 ev_image_accessible_get_atk_rect (ATK_OBJECT (atk_image), ATK_XY_WINDOW, &atk_rect);
100 *width = atk_rect.
x2 - atk_rect.
x1;
101 *height = atk_rect.
y2 - atk_rect.
y1;
static AtkObject* ev_image_accessible_get_parent |
( |
AtkObject * |
atk_object) | |
|
|
static |
static void ev_image_accessible_image_iface_init |
( |
AtkImageIface * |
iface) | |
|
|
static |
static AtkStateSet* ev_image_accessible_ref_state_set |
( |
AtkObject * |
atk_object) | |
|
|
static |
Definition at line 118 of file ev-image-accessible.c.
120 AtkStateSet *state_set;
121 AtkStateSet *copy_set;
122 AtkStateSet *page_accessible_state_set;
128 state_set = ATK_OBJECT_CLASS (ev_image_accessible_parent_class)->ref_state_set (atk_object);
129 atk_state_set_clear_states (state_set);
131 page_accessible_state_set = atk_object_ref_state_set (ATK_OBJECT (self->priv->page));
132 copy_set = atk_state_set_or_sets (state_set, page_accessible_state_set);
133 atk_state_set_remove_state (copy_set, ATK_STATE_FOCUSABLE);
134 atk_state_set_remove_state (copy_set, ATK_STATE_FOCUSED);
139 atk_state_set_remove_state (copy_set, ATK_STATE_SHOWING);
141 g_object_unref (state_set);
142 g_object_unref (page_accessible_state_set);