![]() |
![]() |
![]() |
Criawips Reference Manual | ![]() |
---|
CriaBlockCriaBlock — |
CriaBlock; CriaBlockClass; CriaAlignment cria_block_get_alignment (CriaBlock const *self); GOColorconst* cria_block_get_color (CriaBlock const *self); gcharconst* cria_block_get_markup (CriaBlock const *self); GoRectconst* cria_block_get_position (CriaBlock const *self); CriaVAlignment cria_block_get_valignment (CriaBlock const *self); CriaBlock* cria_block_new (const gchar *name); void cria_block_set_alignment (CriaBlock *self, CriaAlignment alignment); void cria_block_set_color (CriaBlock *self, GOColor const *color); void cria_block_set_font_family (CriaBlock *self, const gchar *family); void cria_block_set_font_size (CriaBlock *self, const gchar *size); 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 "color" gpointer : Read / Write "left" guint64 : Read / Write "right" guint64 : Read / Write "text" gchararray : Read / Write "top" guint64 : Read / Write "valignment" CriaVAlignment : Read / Write / Construct
"format-changed" void user_function (CriaBlock *criablock, CriaFormatDomain arg1, gpointer user_data);
typedef struct { CriaSlideElementClass element_class; void (*format_changed) (CriaBlock * self, CriaFormatDomain changed); } CriaBlockClass;
CriaAlignment cria_block_get_alignment (CriaBlock const *self);
Get the horizontal alignment of content in this block
self : |
the block to get the alignment from |
Returns : | the horizontal alignment of content |
GOColorconst* cria_block_get_color (CriaBlock const *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. |
gcharconst* cria_block_get_markup (CriaBlock const *self);
Get the text that should be rendered into a block.
self : |
a CriaBlock |
Returns : | the text that should be rendered into a block |
GoRectconst* cria_block_get_position (CriaBlock const *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 const *self);
Get the vertical alignment of content in this block
self : |
the block to get the alignment from |
Returns : | the vertical alignment of content |
void cria_block_set_alignment (CriaBlock *self, CriaAlignment alignment);
self : |
|
alignment : |
void cria_block_set_color (CriaBlock *self, GOColor const *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, const gchar *size);
Sets the font size.
self : |
a CriaBlock |
size : |
a string specifying a font size |
void cria_block_set_valignment (CriaBlock *self, CriaVAlignment valignment);
self : |
|
valignment : |
alignment
" property"alignment" CriaAlignment : Read / Write / Construct
The horizontal alignment of embedded elements.
Default value: CRIA_ALIGNMENT_UNSET
left
" property"left" guint64 : Read / Write
The Position of the topleft corner of the layout box.
Default value: 0
text
" property"text" gchararray : Read / Write
The text contained in this block.
Default value: ""
top
" property"top" guint64 : Read / Write
The vertical position of the block.
Default value: 0
valignment
" property"valignment" CriaVAlignment : Read / Write / Construct
The vertical alignment of embedded elements.
Default value: CRIA_VALIGNMENT_UNSET
void user_function (CriaBlock *criablock, CriaFormatDomain arg1, gpointer user_data);
criablock : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
<< CriaAlignment | image >> |