51 #define EV_TYPE_HYPERLINK (ev_hyperlink_get_type ())
52 #define EV_HYPERLINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_HYPERLINK, EvHyperlink))
123 for (i = 0; i < n_areas; i++) {
127 c_x = rect->
x1 + (rect->
x2 - rect->
x1) / 2.;
128 c_y = rect->
y1 + (rect->
y2 - rect->
y1) / 2.;
129 if (c_x >= impl_priv->
area.
x1 && c_x <= impl_priv->area.x2 &&
130 c_y >= impl_priv->
area.
y1 && c_y <= impl_priv->area.y2) {
158 if (start_index == -1)
171 for (i = start_index + 1; i < n_areas; i++) {
175 c_x = rect->
x1 + (rect->
x2 - rect->
x1) / 2.;
176 c_y = rect->
y1 + (rect->
y2 - rect->
y1) / 2.;
177 if (c_x < impl_priv->area.x1 || c_x > impl_priv->
area.
x2 ||
178 c_y < impl_priv->area.y1 || c_y > impl_priv->
area.
y2) {
190 AtkHyperlinkClass *atk_link_class = ATK_HYPERLINK_CLASS (klass);
215 ev_link_accessible_get_name (AtkObject *atk_object)
227 priv->
name = atk_text_get_text (ATK_TEXT (atk_object_get_parent (atk_object)), start_index, end_index);
237 return ATK_OBJECT (priv->
page);
243 AtkStateSet *state_set;
244 AtkStateSet *copy_set;
245 AtkStateSet *page_accessible_state_set;
252 state_set = ATK_OBJECT_CLASS (ev_link_accessible_parent_class)->ref_state_set (atk_object);
253 atk_state_set_clear_states (state_set);
255 page_accessible_state_set = atk_object_ref_state_set (ATK_OBJECT (self->priv->page));
256 copy_set = atk_state_set_or_sets (state_set, page_accessible_state_set);
261 atk_state_set_remove_state (copy_set, ATK_STATE_SHOWING);
265 atk_state_set_remove_state (copy_set, ATK_STATE_FOCUSED);
267 g_object_unref (state_set);
268 g_object_unref (page_accessible_state_set);
281 G_OBJECT_CLASS (ev_link_accessible_parent_class)->finalize (
object);
287 GObjectClass *object_class = G_OBJECT_CLASS (klass);
288 AtkObjectClass *atk_class = ATK_OBJECT_CLASS (klass);
295 atk_class->get_name = ev_link_accessible_get_name;
302 atk_object_set_role (ATK_OBJECT (link), ATK_ROLE_LINK);
308 static AtkHyperlink *
364 return i == 0 ?
"activate" : NULL;
382 AtkCoordType coord_type)
395 *width = atk_rect.
x2 - atk_rect.
x1;
396 *height = atk_rect.
y2 - atk_rect.
y1;
434 atk_link->
priv->
link = g_object_ref (link);