Back to index

bamf  0.2.120
Classes | Defines | Typedefs | Functions
bamf-tab.h File Reference
#include <libbamf/bamf-view.h>
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BamfTab
struct  _BamfTabClass

Defines

#define BAMF_TYPE_TAB   (bamf_tab_get_type ())
#define BAMF_TAB(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))
#define BAMF_TAB_CONST(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab const))
#define BAMF_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))
#define BAMF_IS_TAB(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))
#define BAMF_IS_TAB_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))
#define BAMF_TAB_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))

Typedefs

typedef struct _BamfTab
typedef struct _BamfTabClass
typedef struct _BamfTabPrivate

Functions

GType bamf_tab_get_type (void) G_GNUC_CONST
gchar * bamf_tab_get_id (BamfTab *self)
gchar * bamf_tab_get_preview (BamfTab *self)
void bamf_tab_set_preview (BamfTab *self, gchar *uri)
gchar * bamf_tab_get_uri (BamfTab *self)
void bamf_tab_set_uri (BamfTab *self, gchar *uri)
void bamf_tab_show (BamfTab *self)
BamfTab * bamf_tab_new (gchar *id, gchar *uri)

Class Documentation

struct _BamfTab

Definition at line 45 of file bamf-tab.h.

Class Members
BamfView parent
BamfTabPrivate * priv

Define Documentation

#define BAMF_IS_TAB (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_TAB))

Definition at line 37 of file bamf-tab.h.

#define BAMF_IS_TAB_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_TAB))

Definition at line 38 of file bamf-tab.h.

#define BAMF_TAB (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab))

Definition at line 34 of file bamf-tab.h.

#define BAMF_TAB_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_TAB, BamfTabClass))

Definition at line 36 of file bamf-tab.h.

#define BAMF_TAB_CONST (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_TAB, BamfTab const))

Definition at line 35 of file bamf-tab.h.

#define BAMF_TAB_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_TAB, BamfTabClass))

Definition at line 39 of file bamf-tab.h.

#define BAMF_TYPE_TAB   (bamf_tab_get_type ())

Definition at line 33 of file bamf-tab.h.


Typedef Documentation

typedef struct _BamfTab

Definition at line 41 of file bamf-tab.h.

typedef struct _BamfTabClass

Definition at line 42 of file bamf-tab.h.

typedef struct _BamfTabPrivate

Definition at line 43 of file bamf-tab.h.


Function Documentation

gchar* bamf_tab_get_id ( BamfTab *  self)

Definition at line 58 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (tab), NULL);
  
  return tab->priv->id;
}

Here is the caller graph for this function:

gchar* bamf_tab_get_preview ( BamfTab *  self)

Definition at line 66 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (tab), NULL);
  
  return tab->priv->preview_uri;
}
GType bamf_tab_get_type ( void  )
gchar* bamf_tab_get_uri ( BamfTab *  self)

Definition at line 82 of file bamf-tab.c.

{
  g_return_val_if_fail (BAMF_IS_TAB (tab), NULL);
  
  return tab->priv->uri;
}

Here is the caller graph for this function:

BamfTab* bamf_tab_new ( gchar *  id,
gchar *  uri 
)

Definition at line 218 of file bamf-tab.c.

{
  return g_object_new (BAMF_TYPE_TAB, NULL);
}

Here is the caller graph for this function:

void bamf_tab_set_preview ( BamfTab *  self,
gchar *  uri 
)

Definition at line 74 of file bamf-tab.c.

{
  g_return_if_fail (BAMF_IS_TAB (tab));
  
  tab->priv->preview_uri = uri;
}

Here is the caller graph for this function:

void bamf_tab_set_uri ( BamfTab *  self,
gchar *  uri 
)

Definition at line 90 of file bamf-tab.c.

{
  gchar *old;

  g_return_if_fail (BAMF_IS_TAB (tab));
  
  old = tab->priv->uri;
  tab->priv->uri = uri;

  g_signal_emit (tab, tab_signals[URI_CHANGED], 0, old, uri);  
}

Here is the caller graph for this function:

void bamf_tab_show ( BamfTab *  self)

Definition at line 102 of file bamf-tab.c.

{
  if (BAMF_TAB_GET_CLASS (self)->show)
    BAMF_TAB_GET_CLASS (self)->show (self);
  else
    g_warning ("Default tab class implementation cannot perform show!\n");
}