#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <cairo.h>
#include "mb_types.h"
#include "mb_shapes.h"
Go to the source code of this file.
Classes | |
struct | _sh_text |
Defines | |
#define | ASSERT(x) |
#define | OK 0 |
#define | ERR -1 |
#define | TXF_SCALE_DIRTY 0x1 |
Typedefs | |
typedef struct _sh_text | sh_text_t |
Functions | |
static void | sh_text_free (shape_t *shape) |
shape_t * | rdman_shape_text_new (redraw_man_t *rdman, const char *txt, co_aix x, co_aix y, co_aix font_size, cairo_font_face_t *face) |
void | sh_text_set_text (shape_t *shape, const char *txt) |
static int | get_extents (sh_text_t *text, cairo_text_extents_t *extents) |
void | sh_text_transform (shape_t *shape) |
static void | draw_text (sh_text_t *text, cairo_t *cr) |
void | sh_text_draw (shape_t *shape, cairo_t *cr) |
#define ASSERT | ( | x | ) |
Definition at line 9 of file shape_text.c.
#define ERR -1 |
Definition at line 11 of file shape_text.c.
#define OK 0 |
Definition at line 10 of file shape_text.c.
#define TXF_SCALE_DIRTY 0x1 |
Definition at line 25 of file shape_text.c.
static void draw_text | ( | sh_text_t * | text, | |
cairo_t * | cr | |||
) | [static] |
Definition at line 143 of file shape_text.c.
static int get_extents | ( | sh_text_t * | text, | |
cairo_text_extents_t * | extents | |||
) | [static] |
Definition at line 74 of file shape_text.c.
static void sh_text_free | ( | shape_t * | shape | ) | [static] |
Definition at line 27 of file shape_text.c.