![]() | ![]() | ![]() | Criawips Reference Manual | ![]() |
---|
Block — Rectangular layers on Slides.
struct CriaBlock; struct CriaBlockClass; struct CriaBlockPrivate; CriaAlignment cria_block_get_alignment (CriaBlock *self); GOColor cria_block_get_color (CriaBlock *self); const PangoFontDescription* cria_block_get_font (CriaBlock *self); const gchar* cria_block_get_markup (CriaBlock *self); const gchar* cria_block_get_name (CriaBlock *self); GoRect* cria_block_get_position (CriaBlock *self); CriaVAlignment cria_block_get_valignment (CriaBlock *self); CriaBlock* cria_block_new (CriaSlide *slide, const gchar *name); void cria_block_set_alignment (CriaBlock *self, CriaAlignment alignment); void cria_block_set_color (CriaBlock *self, GOColor color); void cria_block_set_font_family (CriaBlock *self, const gchar *family); void cria_block_set_font_size (CriaBlock *self, gint size); void cria_block_set_name (CriaBlock *self, const gchar *name); void cria_block_set_text (CriaBlock *self, const gchar *text); void cria_block_set_valignment (CriaBlock *self, CriaVAlignment valignment);
"alignment" CriaAlignment : Read / Write / Construct "bottom" guint64 : Read / Write "left" guint64 : Read / Write "name" gchararray : Read / Write / Construct "right" guint64 : Read / Write "top" guint64 : Read / Write "valignment" CriaVAlignment : Read / Write / Construct
struct CriaBlockClass { GObjectClass base_class; PangoFontDescription * default_font; /* signals */ /*void (*signal) (CriaBlock * self, const gchar * string);*/ };
CriaAlignment cria_block_get_alignment (CriaBlock *self);
Get the horizontal alignment of content in this block
self : | the block to get the alignment from |
Returns : | the horizontal alignment of content |
GOColor cria_block_get_color (CriaBlock *self);
Get the foreground color of a text block.
self : | a CriaBlock |
Returns : | the color of this text block; if it's not set it returns a default value. |
const PangoFontDescription* cria_block_get_font (CriaBlock *self);
Get the font used to render a CriaBlock.
self : | a CriaBlock |
Returns : | the font used to render this block, NULL if none is set. |
const gchar* cria_block_get_markup (CriaBlock *self);
Get the text that should be rendered into a block.
self : | a CriaBlock |
Returns : | the text that should be rendered into a block |
const gchar* cria_block_get_name (CriaBlock *self);
Get the name of a block.
self : | a CriaBlock |
Returns : | a block's name. |
GoRect* cria_block_get_position (CriaBlock *self);
Get the position of a CriaBlock.
self : | a CriaBlock |
Returns : | the block's position. May return NULL if unset. |
CriaVAlignment cria_block_get_valignment (CriaBlock *self);
Get the vertical alignment of content in this block
self : | the block to get the alignment from |
Returns : | the vertical alignment of content |
CriaBlock* cria_block_new (CriaSlide *slide, const gchar *name);
slide : | |
name : | |
Returns : |
void cria_block_set_alignment (CriaBlock *self, CriaAlignment alignment);
self : | |
alignment : |
void cria_block_set_color (CriaBlock *self, GOColor color);
Set the foreground color of a text block.
self : | a CriaBlock |
color : | a GOColor |
void cria_block_set_font_family (CriaBlock *self, const gchar *family);
self : | |
family : |
void cria_block_set_font_size (CriaBlock *self, gint size);
self : | |
size : |
void cria_block_set_valignment (CriaBlock *self, CriaVAlignment valignment);
self : | |
valignment : |
"alignment" (CriaAlignment : Read / Write / Construct) | The horizontal alignment of embedded elements. |
"bottom" (guint64 : Read / Write) | The width of the block. |
"left" (guint64 : Read / Write) | The Position of the topleft corner of the layout box. |
"name" (gchararray : Read / Write / Construct) | The name of this block. |
"right" (guint64 : Read / Write) | The height of the block. |
"top" (guint64 : Read / Write) | The vertical position of the block. |
"valignment" (CriaVAlignment : Read / Write / Construct) | The vertical alignment of embedded elements. |
<< Alignment | Image >> |