GuppiTextBlock

Name

GuppiTextBlock -- 

Synopsis



#define     GUPPI_TEXT_BLOCK0               (obj)
#define     GUPPI_IS_TEXT_BLOCK0            (obj)
#define     g_return_unless_is_guppi_text_block(x)
#define     g_return_val_unless_is_guppi_text_block(x,y)
GuppiTextBlock* guppi_text_block_new        (void);
void        guppi_text_block_add            (GuppiTextBlock*,
                                             GuppiTextToken*);
void        guppi_text_block_clear          (GuppiTextBlock*);
gchar*      guppi_text_block_text           (GuppiTextBlock *text);
void        guppi_text_block_set_text       (GuppiTextBlock*,
                                             const gchar*);
GnomeFont*  guppi_text_block_font           (GuppiTextBlock *text);
void        guppi_text_block_set_font       (GuppiTextBlock *text,
                                             GnomeFont *font);
double      guppi_text_block_angle          (GuppiTextBlock *text);
void        guppi_text_block_set_angle      (GuppiTextBlock *text,
                                             double angle);
void        guppi_text_block_bbox           (GuppiTextBlock *text,
                                             ArtDRect *bbox);
double      guppi_text_block_width          (GuppiTextBlock *text);
double      guppi_text_block_height         (GuppiTextBlock *text);
double      guppi_text_block_max_width      (GuppiTextBlock *text);
void        guppi_text_block_set_max_width  (GuppiTextBlock *text,
                                             double);
void        (*text_word_fn)                 (const gchar *str,
                                             GnomeFont *font,
                                             double offset_x,
                                             double offset_y,
                                             gpointer user_data);
void        (*text_char_fn)                 (gint glyph,
                                             const GnomeFontFace *face,
                                             double affine[6],
                                             gpointer user_data);
void        guppi_text_block_foreach_word   (GuppiTextBlock *text,
                                             text_word_fn fn,
                                             gpointer user_data);
void        guppi_text_block_foreach_char   (GuppiTextBlock *text,
                                             text_char_fn fn,
                                             gpointer user_data);
void        guppi_text_block_print          (GuppiTextBlock *text,
                                             GuppiElementPrint *ep,
                                             double x0,
                                             double y0,
                                             GtkAnchorType anchor);
gboolean    guppi_text_block_line_dimensions
                                            (GuppiTextBlock *text,
                                             gint line_no,
                                             double *length,
                                             double *height_ascend,
                                             double *height_descend);
void        guppi_text_block_changed        (GuppiTextBlock*);
void        guppi_text_block_changed_delayed
                                            (GuppiTextBlock*);
void        guppi_text_block_flush_changes  (GuppiTextBlock*);
void        guppi_text_block_freeze         (GuppiTextBlock*);
void        guppi_text_block_thaw           (GuppiTextBlock*);

Object Hierarchy


  GtkObject
   +----GuppiTextBlock

Signal Prototypes


"changed"   void        user_function      (GuppiTextBlock *guppitextblock,
                                            gpointer user_data);

Description

Details

GUPPI_TEXT_BLOCK0()

#define GUPPI_TEXT_BLOCK0(obj) ((obj) ? (GUPPI_TEXT_BLOCK(obj)) : NULL)

obj : 


GUPPI_IS_TEXT_BLOCK0()

#define GUPPI_IS_TEXT_BLOCK0(obj) (((obj) == NULL) || (GUPPI_IS_TEXT_BLOCK(obj)))

obj : 


g_return_unless_is_guppi_text_block()

#define     g_return_unless_is_guppi_text_block(x)

x : 


g_return_val_unless_is_guppi_text_block()

#define     g_return_val_unless_is_guppi_text_block(x,y)

x : 
y : 


guppi_text_block_new ()

GuppiTextBlock* guppi_text_block_new        (void);

Returns : 


guppi_text_block_add ()

void        guppi_text_block_add            (GuppiTextBlock*,
                                             GuppiTextToken*);

Param1 : 
Param2 : 


guppi_text_block_clear ()

void        guppi_text_block_clear          (GuppiTextBlock*);

Param1 : 


guppi_text_block_text ()

gchar*      guppi_text_block_text           (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_set_text ()

void        guppi_text_block_set_text       (GuppiTextBlock*,
                                             const gchar*);

Param1 : 
Param2 : 


guppi_text_block_font ()

GnomeFont*  guppi_text_block_font           (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_set_font ()

void        guppi_text_block_set_font       (GuppiTextBlock *text,
                                             GnomeFont *font);

text : 
font : 


guppi_text_block_angle ()

double      guppi_text_block_angle          (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_set_angle ()

void        guppi_text_block_set_angle      (GuppiTextBlock *text,
                                             double angle);

text : 
angle : 


guppi_text_block_bbox ()

void        guppi_text_block_bbox           (GuppiTextBlock *text,
                                             ArtDRect *bbox);

text : 
bbox : 


guppi_text_block_width ()

double      guppi_text_block_width          (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_height ()

double      guppi_text_block_height         (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_max_width ()

double      guppi_text_block_max_width      (GuppiTextBlock *text);

text : 
Returns : 


guppi_text_block_set_max_width ()

void        guppi_text_block_set_max_width  (GuppiTextBlock *text,
                                             double);

text : 
Param2 : 


text_word_fn ()

void        (*text_word_fn)                 (const gchar *str,
                                             GnomeFont *font,
                                             double offset_x,
                                             double offset_y,
                                             gpointer user_data);

str : 
font : 
offset_x : 
offset_y : 
user_data : 


text_char_fn ()

void        (*text_char_fn)                 (gint glyph,
                                             const GnomeFontFace *face,
                                             double affine[6],
                                             gpointer user_data);

glyph : 
face : 
affine : 
user_data : 


guppi_text_block_foreach_word ()

void        guppi_text_block_foreach_word   (GuppiTextBlock *text,
                                             text_word_fn fn,
                                             gpointer user_data);

text : 
fn : 
user_data : 


guppi_text_block_foreach_char ()

void        guppi_text_block_foreach_char   (GuppiTextBlock *text,
                                             text_char_fn fn,
                                             gpointer user_data);

text : 
fn : 
user_data : 


guppi_text_block_print ()

void        guppi_text_block_print          (GuppiTextBlock *text,
                                             GuppiElementPrint *ep,
                                             double x0,
                                             double y0,
                                             GtkAnchorType anchor);

text : 
ep : 
x0 : 
y0 : 
anchor : 


guppi_text_block_line_dimensions ()

gboolean    guppi_text_block_line_dimensions
                                            (GuppiTextBlock *text,
                                             gint line_no,
                                             double *length,
                                             double *height_ascend,
                                             double *height_descend);

text : 
line_no : 
length : 
height_ascend : 
height_descend : 
Returns : 


guppi_text_block_changed ()

void        guppi_text_block_changed        (GuppiTextBlock*);

Param1 : 


guppi_text_block_changed_delayed ()

void        guppi_text_block_changed_delayed
                                            (GuppiTextBlock*);

Param1 : 


guppi_text_block_flush_changes ()

void        guppi_text_block_flush_changes  (GuppiTextBlock*);

Param1 : 


guppi_text_block_freeze ()

void        guppi_text_block_freeze         (GuppiTextBlock*);

Param1 : 


guppi_text_block_thaw ()

void        guppi_text_block_thaw           (GuppiTextBlock*);

Param1 : 

Signals

The "changed" signal

void        user_function                  (GuppiTextBlock *guppitextblock,
                                            gpointer user_data);

guppitextblock :the object which received the signal.
user_data :user data set when the signal handler was connected.