#include "ut_compiler.h"
#include <gtk/gtk.h>
#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, cairo_t *cr, GtkWidget *widget, const GdkRectangle *background_area, const GdkRectangle *cell_area, GtkCellRendererState flags) |
static void | abi_cell_renderer_font_instance_init (AbiCellRendererFont *self) |
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, cairo_rectangle_int_t *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 ABI_CELL_RENDERER_FONT | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), ABI_TYPE_CELL_RENDERER_FONT, AbiCellRendererFont)) |
Referenced by abi_cell_renderer_font_new(), and abi_cell_renderer_font_render().
#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 ()) |
Referenced by abi_cell_renderer_font_new().
#define PREVIEW_TEXT "AaBb" |
Referenced by abi_cell_renderer_font_render().
typedef struct _AbiCellRendererFont AbiCellRendererFont |
typedef struct _AbiCellRendererFontClass AbiCellRendererFontClass |
anonymous enum |
static void abi_cell_renderer_font_class_init | ( | AbiCellRendererFontClass * | klass | ) | [static] |
References abi_cell_renderer_font_parent_class, and cell_renderer_font_signals.
GType abi_cell_renderer_font_get_type | ( | void | ) |
References type.
static void abi_cell_renderer_font_instance_init | ( | AbiCellRendererFont * | self | ) | [static] |
GtkCellRenderer* abi_cell_renderer_font_new | ( | GtkWidget * | parent | ) |
References ABI_CELL_RENDERER_FONT, and ABI_TYPE_CELL_RENDERER_FONT.
Referenced by abi_font_combo_new().
void abi_cell_renderer_font_render | ( | GtkCellRenderer * | cell, | |
cairo_t * | cr, | |||
GtkWidget * | widget, | |||
const GdkRectangle * | background_area, | |||
const GdkRectangle * | cell_area, | |||
GtkCellRendererState | flags | |||
) |
static void abi_font_combo_class_init | ( | AbiFontComboClass * | klass | ) | [static] |
References abi_font_combo_parent_class, and font_combo_signals.
static void abi_font_combo_dispose | ( | GObject * | instance | ) | [static] |
References ABI_FONT_COMBO, and abi_font_combo_parent_class.
static void abi_font_combo_finalize | ( | GObject * | instance | ) | [static] |
References abi_font_combo_parent_class.
GType abi_font_combo_get_type | ( | void | ) |
References type.
static void abi_font_combo_init | ( | AbiFontCombo * | self | ) | [static] |
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 | ) |
References abi_cell_renderer_font_new(), ABI_TYPE_FONT_COMBO, FONT, NUM_COLS, renderer_popup_closed_cb(), renderer_popup_opened_cb(), and renderer_prelight_cb().
Referenced by EV_UnixToolbar::synthesize().
void abi_font_combo_set_fonts | ( | AbiFontCombo * | self, | |
const gchar ** | fonts | |||
) |
Use this for updating the whole combo.
self | ||
fonts | NULL-terminated array of fonts. |
References FONT, gchar, and NUM_COLS.
Referenced by 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, | |
cairo_rectangle_int_t * | 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().
GtkCellRendererTextClass* abi_cell_renderer_font_parent_class = NULL [static] |
Referenced by abi_cell_renderer_font_class_init(), and abi_cell_renderer_font_render().
GtkComboBoxClass* abi_font_combo_parent_class = NULL [static] |
Referenced by abi_font_combo_class_init(), abi_font_combo_dispose(), and abi_font_combo_finalize().
guint cell_renderer_font_signals[RENDERER_LAST_SIGNAL] = { 0 } [static] |
Referenced by abi_cell_renderer_font_class_init(), and abi_cell_renderer_font_render().
guint font_combo_signals[LAST_SIGNAL] = { 0 } [static] |