Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ev-form-field-accessible.h File Reference
#include <gtk/gtk-a11y.h>
#include "ev-page-accessible.h"
#include "ev-form-field.h"
+ Include dependency graph for ev-form-field-accessible.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _EvFormFieldAccessible
 
struct  _EvFormFieldAccessibleClass
 

Macros

#define EV_TYPE_FORM_FIELD_ACCESSIBLE   (ev_form_field_accessible_get_type ())
 
#define EV_FORM_FIELD_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_FORM_FIELD_ACCESSIBLE, EvFormFieldAccessible))
 
#define EV_IS_FORM_FIELD_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_FORM_FIELD_ACCESSIBLE))
 

Typedefs

typedef struct
_EvFormFieldAccessible 
EvFormFieldAccessible
 
typedef struct
_EvFormFieldAccessibleClass 
EvFormFieldAccessibleClass
 
typedef struct
_EvFormFieldAccessiblePrivate 
EvFormFieldAccessiblePrivate
 

Functions

GType ev_form_field_accessible_get_type (void)
 
EvFormFieldAccessibleev_form_field_accessible_new (EvPageAccessible *page, EvFormField *form_field, EvRectangle *area)
 
EvFormFieldev_form_field_accessible_get_field (EvFormFieldAccessible *accessible)
 
void ev_form_field_accessible_update_state (EvFormFieldAccessible *accessible)
 

Macro Definition Documentation

#define EV_FORM_FIELD_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_FORM_FIELD_ACCESSIBLE, EvFormFieldAccessible))

Definition at line 34 of file ev-form-field-accessible.h.

#define EV_IS_FORM_FIELD_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_FORM_FIELD_ACCESSIBLE))

Definition at line 35 of file ev-form-field-accessible.h.

#define EV_TYPE_FORM_FIELD_ACCESSIBLE   (ev_form_field_accessible_get_type ())

Definition at line 33 of file ev-form-field-accessible.h.

Typedef Documentation

Definition at line 37 of file ev-form-field-accessible.h.

Function Documentation

EvFormField* ev_form_field_accessible_get_field ( EvFormFieldAccessible accessible)

Definition at line 393 of file ev-form-field-accessible.c.

394 {
395  return accessible->priv->form_field;
396 }

+ Here is the caller graph for this function:

GType ev_form_field_accessible_get_type ( void  )
EvFormFieldAccessible* ev_form_field_accessible_new ( EvPageAccessible page,
EvFormField form_field,
EvRectangle area 
)

Definition at line 376 of file ev-form-field-accessible.c.

379 {
380  EvFormFieldAccessible *atk_form_field;
381 
382  atk_form_field = g_object_new (EV_TYPE_FORM_FIELD_ACCESSIBLE, NULL);
383  atk_form_field->priv->page = page;
384  atk_form_field->priv->form_field = g_object_ref (form_field);
385  atk_form_field->priv->area = *area;
386  atk_form_field->priv->saved_states = atk_state_set_new ();
387  ev_form_field_accessible_update_state (atk_form_field);
388 
389  return EV_FORM_FIELD_ACCESSIBLE (atk_form_field);
390 }

+ Here is the caller graph for this function:

void ev_form_field_accessible_update_state ( EvFormFieldAccessible accessible)

Definition at line 314 of file ev-form-field-accessible.c.

315 {
316  AtkObject *atk_object;
317  AtkStateSet *states;
318  AtkStateSet *changed_states;
319  gint i;
320 
321  atk_object = ATK_OBJECT (accessible);
322  states = ev_form_field_accessible_ref_state_set (atk_object);
323  changed_states = atk_state_set_xor_sets (accessible->priv->saved_states, states);
324  if (changed_states && !atk_state_set_is_empty (accessible->priv->saved_states)) {
325  for (i = 0; i < ATK_STATE_LAST_DEFINED; i++) {
326  if (atk_state_set_contains_state (changed_states, i))
327  atk_object_notify_state_change (atk_object, i, atk_state_set_contains_state (states, i));
328  }
329  }
330 
331  g_object_unref (accessible->priv->saved_states);
332 
333  atk_state_set_clear_states (changed_states);
334  accessible->priv->saved_states = atk_state_set_or_sets (changed_states, states);
335 
336  g_object_unref (changed_states);
337  g_object_unref (states);
338 }

+ Here is the caller graph for this function: