EinaDockTab

EinaDockTab — Tab management

Synopsis

                    EinaDockTab;
                    EinaDockTabClass;
gboolean            eina_dock_tab_equal                 (EinaDockTab *a,
                                                         EinaDockTab *b);
const gchar *       eina_dock_tab_get_id                (EinaDockTab *self);
GtkWidget *         eina_dock_tab_get_label             (EinaDockTab *self);
gboolean            eina_dock_tab_get_primary           (EinaDockTab *self);
GtkWidget *         eina_dock_tab_get_widget            (EinaDockTab *self);
EinaDockTab *       eina_dock_tab_new                   (const gchar *id,
                                                         GtkWidget *widget,
                                                         GtkWidget *label,
                                                         gboolean primary);
void                eina_dock_tab_set_primary           (EinaDockTab *self,
                                                         gboolean primary);

Object Hierarchy

  GObject
   +----EinaDockTab

Properties

  "id"                       gchar*                : Read / Write / Construct Only
  "label"                    GtkWidget*            : Read / Write / Construct Only
  "primary"                  gboolean              : Read / Write
  "widget"                   GtkWidget*            : Read / Write / Construct Only

Description

EinaDockTab represents in an abstract way a EinaDock tab. It is not a GtkWidget but a GObject, functions like eina_dock_tab_get_widget() or eina_dock_tab_get_label() are the way to get internal widgets.

Details

EinaDockTab

typedef struct _EinaDockTab EinaDockTab;

EinaDockTabClass

typedef struct {
	GObjectClass parent_class;
} EinaDockTabClass;

eina_dock_tab_equal ()

gboolean            eina_dock_tab_equal                 (EinaDockTab *a,
                                                         EinaDockTab *b);

Compares two EinaDockTab for equally, this means id and widget are equal

a :

An EinaDockTab. [transfer none]

b :

An EinaDockTab. [transfer none]

Returns :

The equality of a and b

eina_dock_tab_get_id ()

const gchar *       eina_dock_tab_get_id                (EinaDockTab *self);

Gets the value of EinaDockTab:id property

self :

An EinaDockTab

Returns :

The Unique ID

eina_dock_tab_get_label ()

GtkWidget *         eina_dock_tab_get_label             (EinaDockTab *self);

Gets the value of EinaDockTab:label property

self :

An EinaDockTab

Returns :

The label widget. [transfer none]

eina_dock_tab_get_primary ()

gboolean            eina_dock_tab_get_primary           (EinaDockTab *self);

Gets the value of EinaDockTab:primary property

self :

An EinaDockTab

Returns :

Whatever self is primary or not

eina_dock_tab_get_widget ()

GtkWidget *         eina_dock_tab_get_widget            (EinaDockTab *self);

Gets the value of EinaDockTab:widget property

self :

An EinaDockTab

Returns :

The main widget. [transfer none]

eina_dock_tab_new ()

EinaDockTab *       eina_dock_tab_new                   (const gchar *id,
                                                         GtkWidget *widget,
                                                         GtkWidget *label,
                                                         gboolean primary);

Creates a new EinaDockTab

id :

Unique ID for the tab. NOT checked ATM

widget :

Main widget for the tab. [transfer none]

label :

Label widget for the tab. [transfer none]

primary :

Whatever is primary or not

Returns :

The tab. [type Eina.DockTab][transfer full]

eina_dock_tab_set_primary ()

void                eina_dock_tab_set_primary           (EinaDockTab *self,
                                                         gboolean primary);

Sets the value of EinaDockTab:primary

self :

An EinaDockTab

primary :

Value for EinaDockTab:primary property

Property Details

The "id" property

  "id"                       gchar*                : Read / Write / Construct Only

Unique ID for docktab

Default value: NULL


The "label" property

  "label"                    GtkWidget*            : Read / Write / Construct Only

Label widget for docktab


The "primary" property

  "primary"                  gboolean              : Read / Write

Whatever the tab is primary or not

Default value: FALSE


The "widget" property

  "widget"                   GtkWidget*            : Read / Write / Construct Only

Main widget for docktab