gschem
|
#include <config.h>
#include "gschem.h"
#include <math.h>
#include <pango/pangocairo.h>
#include <gschem_pango.h>
Go to the source code of this file.
Data Structures | |
struct | _GschemPangoRendererPrivate |
Defines | |
#define | MAGIC_OVERBAR_POS_CONSTANT 0.8 |
Enumerations | |
enum | { PROP_0, PROP_CR } |
Functions | |
static void | gschem_pango_renderer_finalize (GObject *object) |
static GObject * | gschem_pango_renderer_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_params) |
static cairo_t * | get_cairo_context (GschemPangoRenderer *gschem_renderer, PangoRenderPart part) |
static void | gschem_pango_renderer_draw_glyphs (PangoRenderer *renderer, PangoFont *font, PangoGlyphString *glyphs, int x, int y) |
static void | gschem_pango_renderer_draw_rectangle (PangoRenderer *renderer, PangoRenderPart part, int x, int y, int width, int height) |
static void | gschem_pango_renderer_draw_error_underline (PangoRenderer *renderer, int x, int y, int width, int height) |
static void | gschem_pango_renderer_part_changed (PangoRenderer *renderer, PangoRenderPart part) |
static void | gschem_pango_renderer_begin (PangoRenderer *renderer) |
static void | gschem_pango_renderer_end (PangoRenderer *renderer) |
static void | gschem_pango_renderer_prepare_run (PangoRenderer *renderer, PangoLayoutRun *run) |
static void | gschem_pango_renderer_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) |
static void | gschem_pango_renderer_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) |
static void | gschem_pango_renderer_init (GschemPangoRenderer *renderer) |
static void | gschem_pango_renderer_class_init (GschemPangoRendererClass *klass) |
PangoRenderer * | gschem_pango_renderer_new (cairo_t *cr) |
Create a new PangoRenderer. | |
void | gschem_pango_show_layout (cairo_t *cr, PangoLayout *pl) |
static PangoAttribute * | gschem_pango_attr_overbar_copy (const PangoAttribute *attr) |
static void | gschem_pango_attr_overbar_destroy (PangoAttribute *attr) |
static gboolean | gschem_pango_attr_overbar_compare (const PangoAttribute *attr1, const PangoAttribute *attr2) |
PangoAttribute * | gschem_pango_attr_overbar_new (gboolean overbar) |
Variables | |
static PangoAttrType | gschem_pango_attr_overbar_type |
#define MAGIC_OVERBAR_POS_CONSTANT 0.8 |
Definition at line 33 of file gschem_pango.c.
anonymous enum |
Definition at line 47 of file gschem_pango.c.
static void gschem_pango_renderer_finalize | ( | GObject * | object | ) | [static] |
Definition at line 55 of file gschem_pango.c.
static GObject* gschem_pango_renderer_constructor | ( | GType | type, |
guint | n_construct_properties, | ||
GObjectConstructParam * | construct_params | ||
) | [static] |
Definition at line 61 of file gschem_pango.c.
static cairo_t* get_cairo_context | ( | GschemPangoRenderer * | gschem_renderer, |
PangoRenderPart | part | ||
) | [static] |
Definition at line 82 of file gschem_pango.c.
static void gschem_pango_renderer_draw_glyphs | ( | PangoRenderer * | renderer, |
PangoFont * | font, | ||
PangoGlyphString * | glyphs, | ||
int | x, | ||
int | y | ||
) | [static] |
static void gschem_pango_renderer_draw_rectangle | ( | PangoRenderer * | renderer, |
PangoRenderPart | part, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) | [static] |
static void gschem_pango_renderer_draw_error_underline | ( | PangoRenderer * | renderer, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) | [static] |
static void gschem_pango_renderer_part_changed | ( | PangoRenderer * | renderer, |
PangoRenderPart | part | ||
) | [static] |
Definition at line 180 of file gschem_pango.c.
static void gschem_pango_renderer_begin | ( | PangoRenderer * | renderer | ) | [static] |
Definition at line 186 of file gschem_pango.c.
static void gschem_pango_renderer_end | ( | PangoRenderer * | renderer | ) | [static] |
Definition at line 191 of file gschem_pango.c.
static void gschem_pango_renderer_prepare_run | ( | PangoRenderer * | renderer, |
PangoLayoutRun * | run | ||
) | [static] |
Definition at line 196 of file gschem_pango.c.
static void gschem_pango_renderer_set_property | ( | GObject * | object, |
guint | prop_id, | ||
const GValue * | value, | ||
GParamSpec * | pspec | ||
) | [static] |
Definition at line 227 of file gschem_pango.c.
static void gschem_pango_renderer_get_property | ( | GObject * | object, |
guint | prop_id, | ||
GValue * | value, | ||
GParamSpec * | pspec | ||
) | [static] |
Definition at line 243 of file gschem_pango.c.
static void gschem_pango_renderer_init | ( | GschemPangoRenderer * | renderer | ) | [static] |
Definition at line 259 of file gschem_pango.c.
static void gschem_pango_renderer_class_init | ( | GschemPangoRendererClass * | klass | ) | [static] |
PangoRenderer* gschem_pango_renderer_new | ( | cairo_t * | cr | ) |
Create a new #PangoRenderer. Normally you can use the results of gschem_pango_renderer_get_default() rather than creating a new renderer.
[in] | cr | a cairo renderer |
Definition at line 308 of file gschem_pango.c.
void gschem_pango_show_layout | ( | cairo_t * | cr, |
PangoLayout * | pl | ||
) |
static PangoAttribute* gschem_pango_attr_overbar_copy | ( | const PangoAttribute * | attr | ) | [static] |
static void gschem_pango_attr_overbar_destroy | ( | PangoAttribute * | attr | ) | [static] |
Definition at line 348 of file gschem_pango.c.
static gboolean gschem_pango_attr_overbar_compare | ( | const PangoAttribute * | attr1, |
const PangoAttribute * | attr2 | ||
) | [static] |
Definition at line 354 of file gschem_pango.c.
PangoAttribute* gschem_pango_attr_overbar_new | ( | gboolean | overbar | ) |
Creates a new attribute flagging a region as being drawn with overbar or not
[in] | overbar | if the region should be drawn with an overbar |
Definition at line 370 of file gschem_pango.c.
PangoAttrType gschem_pango_attr_overbar_type [static] |
Definition at line 45 of file gschem_pango.c.