Back to index

unity  6.0.0
Classes | Defines | Functions
nux-object-accessible.cpp File Reference
#include "nux-object-accessible.h"
#include <sigc++/connection.h>

Go to the source code of this file.


struct  _NuxObjectAccessiblePrivate




static void nux_object_accessible_class_init (NuxObjectAccessibleClass *klass)
 SECTION:nux-object-accessible : NuxObjectAccessible : Implementation of the ATK interfaces for #nux::Object : nux::Object.
static void nux_object_accessible_init (NuxObjectAccessible *object_accessible)
static void nux_object_accessible_finalize (GObject *object)
static void nux_object_accessible_initialize (AtkObject *accessible, gpointer data)
static AtkStateSet * nux_object_accessible_ref_state_set (AtkObject *accessible)
static void on_object_destroy_cb (nux::Object *base_object, NuxObjectAccessible *object_accessible)
AtkObject * nux_object_accessible_new (nux::Object *object)
nux::Object * nux_object_accessible_get_object (NuxObjectAccessible *self)

Class Documentation

struct _NuxObjectAccessiblePrivate

Definition at line 55 of file nux-object-accessible.cpp.

Class Members
Object * object
connection on_destroyed_connection

Define Documentation


Definition at line 50 of file nux-object-accessible.cpp.

Function Documentation

static void nux_object_accessible_class_init ( NuxObjectAccessibleClass *  klass) [static]

SECTION:nux-object-accessible : NuxObjectAccessible : Implementation of the ATK interfaces for #nux::Object : nux::Object.

NuxObjectAccessible implements the required ATK interfaces of

nux::Object, exposing the common elements on each basic individual element (position, extents, etc)

Definition at line 62 of file nux-object-accessible.cpp.

  GObjectClass* gobject_class = G_OBJECT_CLASS(klass);
  AtkObjectClass* atk_class = ATK_OBJECT_CLASS(klass);

  gobject_class->finalize = nux_object_accessible_finalize;

  /* AtkObject */
  atk_class->initialize = nux_object_accessible_initialize;
  atk_class->ref_state_set = nux_object_accessible_ref_state_set;

  g_type_class_add_private(gobject_class, sizeof(NuxObjectAccessiblePrivate));

Here is the call graph for this function:

static void nux_object_accessible_finalize ( GObject *  object) [static]

Definition at line 99 of file nux-object-accessible.cpp.

  NuxObjectAccessible* self = NUX_OBJECT_ACCESSIBLE(object);



Here is the caller graph for this function:

nux::Object* nux_object_accessible_get_object ( NuxObjectAccessible *  self)


Returns the nux::Object this object is providing accessibility support.

Note that there isn't a _set method. This is because setting that should only be done during initilization, and it doesn't make sense to change that during the life of the object.

Definition at line 140 of file nux-object-accessible.cpp.

  return self->priv->object;
static void nux_object_accessible_init ( NuxObjectAccessible *  object_accessible) [static]

Definition at line 77 of file nux-object-accessible.cpp.

  object_accessible->priv = NUX_OBJECT_ACCESSIBLE_GET_PRIVATE(object_accessible);

  object_accessible->priv->object = NULL;
static void nux_object_accessible_initialize ( AtkObject *  accessible,
gpointer  data 
) [static]

Definition at line 110 of file nux-object-accessible.cpp.

  NuxObjectAccessible* self = NULL;
  nux::Object* object = NULL;

  ATK_OBJECT_CLASS(nux_object_accessible_parent_class)->initialize(accessible, data);

  self = NUX_OBJECT_ACCESSIBLE(accessible);
  object = (nux::Object*) data;

  self->priv->object = object;

  self->priv->on_destroyed_connection =
    object->OnDestroyed.connect(sigc::bind(sigc::ptr_fun(on_object_destroy_cb), self));

  accessible->role = ATK_ROLE_UNKNOWN;

Here is the call graph for this function:

Here is the caller graph for this function:

AtkObject* nux_object_accessible_new ( nux::Object *  object)

Definition at line 85 of file nux-object-accessible.cpp.

  AtkObject* accessible = NULL;

  g_return_val_if_fail(dynamic_cast<nux::Object*>(object), NULL);

  accessible = ATK_OBJECT(g_object_new(NUX_TYPE_OBJECT_ACCESSIBLE, NULL));

  atk_object_initialize(accessible, object);

  return accessible;

Here is the caller graph for this function:

static AtkStateSet * nux_object_accessible_ref_state_set ( AtkObject *  accessible) [static]

Definition at line 146 of file nux-object-accessible.cpp.

  AtkStateSet* state_set = NULL;

  g_return_val_if_fail(NUX_IS_OBJECT_ACCESSIBLE(obj), NULL);

  state_set = ATK_OBJECT_CLASS(nux_object_accessible_parent_class)->ref_state_set(obj);

  if (NUX_OBJECT_ACCESSIBLE(obj)->priv->object == NULL)
    atk_state_set_add_state(state_set, ATK_STATE_DEFUNCT);

  return state_set;

Here is the caller graph for this function:

static void on_object_destroy_cb ( nux::Object *  base_object,
NuxObjectAccessible *  object_accessible 
) [static]

Definition at line 162 of file nux-object-accessible.cpp.

  object_accessible->priv->object = NULL;
  atk_object_notify_state_change(ATK_OBJECT(object_accessible), ATK_STATE_DEFUNCT,

Here is the caller graph for this function: