Back to index

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

Go to the source code of this file.

Classes

struct  _NuxBaseWindowAccessible
struct  _NuxBaseWindowAccessibleClass

Defines

#define NUX_TYPE_BASE_WINDOW_ACCESSIBLE   (nux_base_window_accessible_get_type ())
#define NUX_BASE_WINDOW_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessible))
#define NUX_BASE_WINDOW_ACCESSIBLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessibleClass))
#define NUX_IS_BASE_WINDOW_ACCESSIBLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE))
#define NUX_IS_BASE_WINDOW_ACCESSIBLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_BASE_WINDOW_ACCESSIBLE))
#define NUX_BASE_WINDOW_ACCESSIBLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessibleClass))

Typedefs

typedef struct _NuxBaseWindowAccessible
typedef struct _NuxBaseWindowAccessibleClass
typedef struct _NuxBaseWindowAccessiblePrivate

Functions

GType nux_base_window_accessible_get_type (void)
AtkObject * nux_base_window_accessible_new (nux::Object *object)
void nux_base_window_accessible_check_active (NuxBaseWindowAccessible *self, nux::BaseWindow *active_window)

Class Documentation

struct _NuxBaseWindowAccessible

Definition at line 42 of file nux-base-window-accessible.h.

Class Members
NuxViewAccessible parent
NuxBaseWindowAccessiblePrivate * priv
struct _NuxBaseWindowAccessibleClass

Definition at line 50 of file nux-base-window-accessible.h.

Class Members
NuxViewAccessibleClass parent_class

Define Documentation

#define NUX_BASE_WINDOW_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessible))

Definition at line 32 of file nux-base-window-accessible.h.

#define NUX_BASE_WINDOW_ACCESSIBLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessibleClass))

Definition at line 33 of file nux-base-window-accessible.h.

#define NUX_BASE_WINDOW_ACCESSIBLE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE, NuxBaseWindowAccessibleClass))

Definition at line 36 of file nux-base-window-accessible.h.

#define NUX_IS_BASE_WINDOW_ACCESSIBLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NUX_TYPE_BASE_WINDOW_ACCESSIBLE))

Definition at line 34 of file nux-base-window-accessible.h.

#define NUX_IS_BASE_WINDOW_ACCESSIBLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), NUX_TYPE_BASE_WINDOW_ACCESSIBLE))

Definition at line 35 of file nux-base-window-accessible.h.

Definition at line 31 of file nux-base-window-accessible.h.


Typedef Documentation

typedef struct _NuxBaseWindowAccessible

Definition at line 38 of file nux-base-window-accessible.h.

Definition at line 39 of file nux-base-window-accessible.h.

Definition at line 40 of file nux-base-window-accessible.h.


Function Documentation

void nux_base_window_accessible_check_active ( NuxBaseWindowAccessible *  self,
nux::BaseWindow *  active_window 
)

Definition at line 173 of file nux-base-window-accessible.cpp.

{
  const gchar* signal_name;
  gboolean is_active;
  nux::Object* nux_object = NULL;
  nux::BaseWindow* bwindow = NULL;

  g_return_if_fail(NUX_IS_BASE_WINDOW_ACCESSIBLE(self));

  nux_object = nux_object_accessible_get_object(NUX_OBJECT_ACCESSIBLE(self));
  bwindow = dynamic_cast<nux::BaseWindow*>(nux_object);
  if (bwindow == NULL) /* defunct */
    return;

  is_active = (bwindow == active_window);

  if (self->priv->active != is_active)
  {
    self->priv->active = is_active;

    if (is_active)
      signal_name = "activate";
    else
      signal_name = "deactivate";

    atk_object_notify_state_change(ATK_OBJECT(self),
                                   ATK_STATE_ACTIVE, is_active);
    g_signal_emit_by_name(self, signal_name, 0);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

AtkObject* nux_base_window_accessible_new ( nux::Object *  object)

Definition at line 102 of file nux-base-window-accessible.cpp.

{
  AtkObject* accessible = NULL;

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

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

  atk_object_initialize(accessible, object);

  return accessible;
}

Here is the caller graph for this function: