gschem

gschem_pango.c File Reference

#include <config.h>
#include "gschem.h"
#include <math.h>
#include <pango/pangocairo.h>
#include <gschem_pango.h>
Include dependency graph for gschem_pango.c:

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 Documentation

#define MAGIC_OVERBAR_POS_CONSTANT   0.8

Definition at line 33 of file gschem_pango.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
PROP_0 
PROP_CR 

Definition at line 47 of file gschem_pango.c.


Function Documentation

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]

Definition at line 91 of file gschem_pango.c.

Here is the call graph for this function:

static void gschem_pango_renderer_draw_rectangle ( PangoRenderer *  renderer,
PangoRenderPart  part,
int  x,
int  y,
int  width,
int  height 
) [static]

Definition at line 144 of file gschem_pango.c.

Here is the call graph for this function:

static void gschem_pango_renderer_draw_error_underline ( PangoRenderer *  renderer,
int  x,
int  y,
int  width,
int  height 
) [static]

Definition at line 163 of file gschem_pango.c.

Here is the call graph for this function:

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]

Definition at line 267 of file gschem_pango.c.

Here is the call graph for this function:

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.

Parameters:
[in]cra cairo renderer
Returns:
a newly created #PangoRenderer. Free with g_object_unref().

Definition at line 308 of file gschem_pango.c.

void gschem_pango_show_layout ( cairo_t *  cr,
PangoLayout *  pl 
)

Definition at line 314 of file gschem_pango.c.

Here is the call graph for this function:

static PangoAttribute* gschem_pango_attr_overbar_copy ( const PangoAttribute *  attr) [static]

Definition at line 340 of file gschem_pango.c.

Here is the call graph for this function:

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

Parameters:
[in]overbarif the region should be drawn with an overbar
Returns:
a new #PangoAttribute

Definition at line 370 of file gschem_pango.c.

Here is the call graph for this function:


Variable Documentation

PangoAttrType gschem_pango_attr_overbar_type [static]

Definition at line 45 of file gschem_pango.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines