Back to index

unity  6.0.0
Classes | Defines | Functions
nux-text-entry-accessible.cpp File Reference
#include <glib/gi18n.h>
#include "nux-text-entry-accessible.h"
#include "unitya11y.h"
#include <Nux/TextEntry.h>

Go to the source code of this file.


struct  _NuxTextEntryAccessiblePrivate




static void nux_text_entry_accessible_class_init (NuxTextEntryAccessibleClass *klass)
 SECTION:nux-text_entry-accessible : NuxTextEntryAccessible : Implementation of the ATK interfaces for #TextEntry : nux::TextEntry.
static void nux_text_entry_accessible_init (NuxTextEntryAccessible *self)
static void nux_text_entry_accessible_initialize (AtkObject *accessible, gpointer data)
static AtkStateSet * nux_text_entry_accessible_ref_state_set (AtkObject *obj)
 G_DEFINE_TYPE (NuxTextEntryAccessible, nux_text_entry_accessible, NUX_TYPE_VIEW_ACCESSIBLE)
AtkObject * nux_text_entry_accessible_new (nux::Object *object)

Class Documentation

struct _NuxTextEntryAccessiblePrivate

Definition at line 55 of file nux-text-entry-accessible.cpp.

Define Documentation


Definition at line 51 of file nux-text-entry-accessible.cpp.

Function Documentation

G_DEFINE_TYPE ( NuxTextEntryAccessible  ,
nux_text_entry_accessible  ,
static void nux_text_entry_accessible_class_init ( NuxTextEntryAccessibleClass *  klass) [static]

SECTION:nux-text_entry-accessible : NuxTextEntryAccessible : Implementation of the ATK interfaces for #TextEntry : nux::TextEntry.

NuxTextEntryAccessible implements the required ATK interfaces for

StaticCairoText, mainly exposing the text as his name, as this

object is mainly used as a label

Definition at line 61 of file nux-text-entry-accessible.cpp.

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

  /* AtkObject */
  atk_class->ref_state_set = nux_text_entry_accessible_ref_state_set;
  atk_class->initialize = nux_text_entry_accessible_initialize;

  g_type_class_add_private(gobject_class, sizeof(NuxTextEntryAccessiblePrivate));

Here is the call graph for this function:

static void nux_text_entry_accessible_init ( NuxTextEntryAccessible *  self) [static]

Definition at line 74 of file nux-text-entry-accessible.cpp.

  NuxTextEntryAccessiblePrivate* priv =

  self->priv = priv;
static void nux_text_entry_accessible_initialize ( AtkObject *  accessible,
gpointer  data 
) [static]

Definition at line 98 of file nux-text-entry-accessible.cpp.

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

  atk_object_set_role(accessible, ATK_ROLE_ENTRY);

Here is the caller graph for this function:

AtkObject* nux_text_entry_accessible_new ( nux::Object *  object)

Definition at line 83 of file nux-text-entry-accessible.cpp.

  AtkObject* accessible = NULL;

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

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

  atk_object_initialize(accessible, object);

  return accessible;

Here is the caller graph for this function:

static AtkStateSet * nux_text_entry_accessible_ref_state_set ( AtkObject *  obj) [static]

Definition at line 107 of file nux-text-entry-accessible.cpp.

  AtkStateSet* state_set = NULL;
  nux::Object* nux_object = NULL;

  g_return_val_if_fail(NUX_IS_TEXT_ENTRY_ACCESSIBLE(obj), NULL);

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

  nux_object = nux_object_accessible_get_object(NUX_OBJECT_ACCESSIBLE(obj));
  if (nux_object == NULL) /* defunct */
    return state_set;

  /* Text entry is editable by default */
  atk_state_set_add_state(state_set, ATK_STATE_EDITABLE);

  return state_set;

Here is the call graph for this function:

Here is the caller graph for this function: