Flutter Linux Embedder
fl_socket_accessible.cc File Reference

Go to the source code of this file.

Classes

struct  _FlSocketAccessible
 

Functions

 G_DEFINE_TYPE (FlSocketAccessible, fl_socket_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE) static AtkObject *fl_socket_accessible_ref_child(AtkObject *object
 
static int fl_socket_accessible_get_n_children (AtkObject *object)
 
static void fl_socket_accessible_finalize (GObject *object)
 
static void fl_socket_accessible_initialize (AtkObject *object, gpointer data)
 
static void fl_socket_accessible_class_init (FlSocketAccessibleClass *klass)
 
static void fl_socket_accessible_init (FlSocketAccessible *self)
 
void fl_socket_accessible_embed (FlSocketAccessible *self, gchar *id)
 

Variables

int i
 

Function Documentation

◆ fl_socket_accessible_class_init()

static void fl_socket_accessible_class_init ( FlSocketAccessibleClass *  klass)
static

Definition at line 43 of file fl_socket_accessible.cc.

43  {
44  GObjectClass* object_class = G_OBJECT_CLASS(klass);
45  object_class->finalize = fl_socket_accessible_finalize;
46 
47  AtkObjectClass* atk_class = ATK_OBJECT_CLASS(klass);
48  atk_class->initialize = fl_socket_accessible_initialize;
49  atk_class->get_n_children = fl_socket_accessible_get_n_children;
50  atk_class->ref_child = fl_socket_accessible_ref_child;
51 }

References fl_socket_accessible_finalize(), fl_socket_accessible_get_n_children(), and fl_socket_accessible_initialize().

◆ fl_socket_accessible_embed()

void fl_socket_accessible_embed ( FlSocketAccessible *  self,
gchar *  id 
)

Definition at line 55 of file fl_socket_accessible.cc.

55  {
56  atk_socket_embed(ATK_SOCKET(self->accessible_socket), id);
57 }

Referenced by realize_cb().

◆ fl_socket_accessible_finalize()

static void fl_socket_accessible_finalize ( GObject *  object)
static

Definition at line 27 of file fl_socket_accessible.cc.

27  {
28  FlSocketAccessible* self = FL_SOCKET_ACCESSIBLE(object);
29 
30  g_clear_object(&self->accessible_socket);
31 
32  G_OBJECT_CLASS(fl_socket_accessible_parent_class)->finalize(object);
33 }

Referenced by fl_socket_accessible_class_init().

◆ fl_socket_accessible_get_n_children()

static int fl_socket_accessible_get_n_children ( AtkObject *  object)
static

Definition at line 23 of file fl_socket_accessible.cc.

23  {
24  return 1;
25 }

Referenced by fl_socket_accessible_class_init().

◆ fl_socket_accessible_init()

static void fl_socket_accessible_init ( FlSocketAccessible *  self)
static

Definition at line 53 of file fl_socket_accessible.cc.

53 {}

◆ fl_socket_accessible_initialize()

static void fl_socket_accessible_initialize ( AtkObject *  object,
gpointer  data 
)
static

Definition at line 35 of file fl_socket_accessible.cc.

35  {
36  FlSocketAccessible* self = FL_SOCKET_ACCESSIBLE(object);
37 
38  ATK_OBJECT_CLASS(fl_socket_accessible_parent_class)->initialize(object, data);
39 
40  self->accessible_socket = atk_socket_new();
41 }

Referenced by fl_socket_accessible_class_init().

◆ G_DEFINE_TYPE()

G_DEFINE_TYPE ( FlSocketAccessible  ,
fl_socket_accessible  ,
GTK_TYPE_CONTAINER_ACCESSIBLE   
)

Variable Documentation

◆ i

fl_socket_accessible_get_n_children
static int fl_socket_accessible_get_n_children(AtkObject *object)
Definition: fl_socket_accessible.cc:23
fl_socket_accessible_finalize
static void fl_socket_accessible_finalize(GObject *object)
Definition: fl_socket_accessible.cc:27
fl_socket_accessible_initialize
static void fl_socket_accessible_initialize(AtkObject *object, gpointer data)
Definition: fl_socket_accessible.cc:35