Back to index

unity  6.0.0
Classes | Defines | Typedefs | Functions
nux-object-accessible.h File Reference
#include <atk/atk.h>
#include <Nux/Nux.h>
#include <NuxCore/Object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _NuxObjectAccessible
struct  _NuxObjectAccessibleClass

Defines

#define NUX_TYPE_OBJECT_ACCESSIBLE   (nux_object_accessible_get_type ())
#define NUX_OBJECT_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessible))
#define NUX_OBJECT_ACCESSIBLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))
#define NUX_IS_OBJECT_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_OBJECT_ACCESSIBLE))
#define NUX_IS_OBJECT_ACCESSIBLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_OBJECT_ACCESSIBLE))
#define NUX_OBJECT_ACCESSIBLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))

Typedefs

typedef struct _NuxObjectAccessible
typedef struct _NuxObjectAccessibleClass
typedef struct _NuxObjectAccessiblePrivate

Functions

GType nux_object_accessible_get_type (void)
AtkObject * nux_object_accessible_new (nux::Object *object)
nux::Object * nux_object_accessible_get_object (NuxObjectAccessible *self)
 nux_object_accessible_get_object:

Class Documentation

struct _NuxObjectAccessible

Definition at line 40 of file nux-object-accessible.h.

Class Members
AtkObject parent
NuxObjectAccessiblePrivate * priv
struct _NuxObjectAccessibleClass

Definition at line 48 of file nux-object-accessible.h.

Class Members
AtkObjectClass parent_class

Define Documentation

#define NUX_IS_OBJECT_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_OBJECT_ACCESSIBLE))

Definition at line 32 of file nux-object-accessible.h.

#define NUX_IS_OBJECT_ACCESSIBLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_OBJECT_ACCESSIBLE))

Definition at line 33 of file nux-object-accessible.h.

#define NUX_OBJECT_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessible))

Definition at line 30 of file nux-object-accessible.h.

#define NUX_OBJECT_ACCESSIBLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))

Definition at line 31 of file nux-object-accessible.h.

#define NUX_OBJECT_ACCESSIBLE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_OBJECT_ACCESSIBLE, NuxObjectAccessibleClass))

Definition at line 34 of file nux-object-accessible.h.

Definition at line 29 of file nux-object-accessible.h.


Typedef Documentation

typedef struct _NuxObjectAccessible

Definition at line 36 of file nux-object-accessible.h.

typedef struct _NuxObjectAccessibleClass

Definition at line 37 of file nux-object-accessible.h.

Definition at line 38 of file nux-object-accessible.h.


Function Documentation

nux::Object* nux_object_accessible_get_object ( NuxObjectAccessible *  self)

nux_object_accessible_get_object:

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;
}
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: