ev_UnixFontCombo.cpp File Reference

#include <string.h>
#include "ut_assert.h"
#include "ev_UnixFontCombo.h"

Classes

struct  _AbiCellRendererFont
struct  _AbiCellRendererFontClass

Defines

#define PREVIEW_TEXT   "AaBb"
#define ABI_TYPE_CELL_RENDERER_FONT   (abi_cell_renderer_font_get_type ())
#define ABI_CELL_RENDERER_FONT(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFont))
#define ABI_CELL_RENDERER_FONT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFontClass))
#define ABI_IS_CELL_RENDERER_FONT(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ABI_TYPE_CELL_RENDERER_FONT))
#define ABI_IS_CELL_RENDERER_FONT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), ABI_TYPE_CELL_RENDERER_FONT))
#define ABI_CELL_RENDERER_FONT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFontClass))

Typedefs

typedef struct _AbiCellRendererFont AbiCellRendererFont
typedef struct
_AbiCellRendererFontClass 
AbiCellRendererFontClass

Enumerations

enum  { FONT, NUM_COLS }
enum  { RENDERER_POPUP_OPENED, RENDERER_PRELIGHT, RENDERER_POPUP_CLOSED, RENDERER_LAST_SIGNAL }
enum  { POPUP_OPENED, PRELIGHT, POPUP_CLOSED, LAST_SIGNAL }

Functions

GType abi_cell_renderer_font_get_type (void)
void abi_cell_renderer_font_render (GtkCellRenderer *cell, GdkDrawable *window, GtkWidget *widget, GdkRectangle *background_area, GdkRectangle *cell_area, GdkRectangle *expose_area, GtkCellRendererState flags)
static void abi_cell_renderer_font_instance_init (AbiCellRendererFont *self)
static void abi_cell_renderer_font_instance_destroy (GtkObject *instance)
static void abi_cell_renderer_font_class_init (AbiCellRendererFontClass *klass)
GtkCellRenderer * abi_cell_renderer_font_new (GtkWidget *parent)
static void renderer_popup_opened_cb (AbiFontCombo *self, GdkRectangle *position, GtkCellRenderer *)
static void renderer_prelight_cb (AbiFontCombo *self, const gchar *text, GtkCellRenderer *)
static void renderer_popup_closed_cb (AbiFontCombo *self, GtkCellRenderer *)
static void abi_font_combo_init (AbiFontCombo *self)
static void abi_font_combo_dispose (GObject *instance)
static void abi_font_combo_finalize (GObject *instance)
static void abi_font_combo_class_init (AbiFontComboClass *klass)
GType abi_font_combo_get_type (void)
GtkWidget * abi_font_combo_new (void)
void abi_font_combo_insert_font (AbiFontCombo *self, const gchar *font, gboolean select)
void abi_font_combo_set_fonts (AbiFontCombo *self, const gchar **fonts)

Variables

static guint cell_renderer_font_signals [RENDERER_LAST_SIGNAL] = { 0 }
static GtkCellRendererTextClass * abi_cell_renderer_font_parent_class = NULL
static guint font_combo_signals [LAST_SIGNAL] = { 0 }
static GtkComboBoxClass * abi_font_combo_parent_class = NULL

Define Documentation

#define ABI_CELL_RENDERER_FONT ( obj   )     (G_TYPE_CHECK_INSTANCE_CAST ((obj), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFont))

#define ABI_CELL_RENDERER_FONT_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_CAST ((klass), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFontClass))

#define ABI_CELL_RENDERER_FONT_GET_CLASS ( obj   )     (G_TYPE_INSTANCE_GET_CLASS ((obj), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFontClass))

#define ABI_IS_CELL_RENDERER_FONT ( obj   )     (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ABI_TYPE_CELL_RENDERER_FONT))

#define ABI_IS_CELL_RENDERER_FONT_CLASS ( klass   )     (G_TYPE_CHECK_CLASS_TYPE ((klass), ABI_TYPE_CELL_RENDERER_FONT))

#define ABI_TYPE_CELL_RENDERER_FONT   (abi_cell_renderer_font_get_type ())

#define PREVIEW_TEXT   "AaBb"


Typedef Documentation


Enumeration Type Documentation

anonymous enum

Enumerator:
FONT 
NUM_COLS 

anonymous enum

Enumerator:
RENDERER_POPUP_OPENED 
RENDERER_PRELIGHT 
RENDERER_POPUP_CLOSED 
RENDERER_LAST_SIGNAL 

anonymous enum

Enumerator:
POPUP_OPENED 
PRELIGHT 
POPUP_CLOSED 
LAST_SIGNAL 


Function Documentation

static void abi_cell_renderer_font_class_init ( AbiCellRendererFontClass klass  )  [static]

GType abi_cell_renderer_font_get_type ( void   ) 

static void abi_cell_renderer_font_instance_destroy ( GtkObject *  instance  )  [static]

static void abi_cell_renderer_font_instance_init ( AbiCellRendererFont self  )  [static]

GtkCellRenderer* abi_cell_renderer_font_new ( GtkWidget *  parent  ) 

void abi_cell_renderer_font_render ( GtkCellRenderer *  cell,
GdkDrawable *  window,
GtkWidget *  widget,
GdkRectangle *  background_area,
GdkRectangle *  cell_area,
GdkRectangle *  expose_area,
GtkCellRendererState  flags 
)

static void abi_font_combo_class_init ( AbiFontComboClass klass  )  [static]

static void abi_font_combo_dispose ( GObject *  instance  )  [static]

static void abi_font_combo_finalize ( GObject *  instance  )  [static]

GType abi_font_combo_get_type ( void   ) 

static void abi_font_combo_init ( AbiFontCombo self  )  [static]

Referenced by abi_font_combo_get_type().

void abi_font_combo_insert_font ( AbiFontCombo self,
const gchar *  font,
gboolean  select 
)

References FONT.

Referenced by combo_box_set_active_text().

GtkWidget* abi_font_combo_new ( void   ) 

void abi_font_combo_set_fonts ( AbiFontCombo self,
const gchar **  fonts 
)

Use this for updating the whole combo.

Parameters:
self 
fonts NULL-terminated array of fonts.

References FONT, and gchar.

Referenced by EV_UnixToolbar::repopulateStyles(), and EV_UnixToolbar::synthesize().

static void renderer_popup_closed_cb ( AbiFontCombo self,
GtkCellRenderer *   
) [static]

References font_combo_signals, and POPUP_CLOSED.

Referenced by abi_font_combo_new().

static void renderer_popup_opened_cb ( AbiFontCombo self,
GdkRectangle *  position,
GtkCellRenderer *   
) [static]

References font_combo_signals, and POPUP_OPENED.

Referenced by abi_font_combo_new().

static void renderer_prelight_cb ( AbiFontCombo self,
const gchar *  text,
GtkCellRenderer *   
) [static]

References font_combo_signals, and PRELIGHT.

Referenced by abi_font_combo_new().


Variable Documentation

GtkCellRendererTextClass* abi_cell_renderer_font_parent_class = NULL [static]

GtkComboBoxClass* abi_font_combo_parent_class = NULL [static]

guint cell_renderer_font_signals[RENDERER_LAST_SIGNAL] = { 0 } [static]

guint font_combo_signals[LAST_SIGNAL] = { 0 } [static]


Generated on Thu Nov 20 00:06:37 2008 for AbiWord by  doxygen 1.5.5