gCAD3D 2.40
gui_gtk3/gtk_label.h File Reference

Go to the source code of this file.

Functions

MemObj GUI_label__ (MemObj *o_par, char *ltxt, char *opts)
 
int GUI_label_mod (MemObj *o_par, char *txt)
 
MemObj GUI_label_htm__ (MemObj *o_par, char *ltxt, char *opts)
 
int GUI_label_htm_mod (MemObj *o_par, char *txt)
 

Function Documentation

MemObj GUI_label__ ( MemObj o_par,
char *  ltxt,
char *  opts 
)
* display static text (Label) with align
* Input:
* o_par must be Obj_Box
* ltxt text to display
* opts options; (alignment)
* first character 'l'=left aligned; 'r'=right aligned; def.=center.
* Example: "l" or ""
*
* Text with attributes: see GUI_HtmLabel
*
* more than 1 line: use \n
*
*
* display static text (Label) with align
* Input:
* o_par must be Obj_Box
* ltxt text to display
* opts options; (alignment)
* first character 'l'=left aligned; 'r'=right aligned; def.=center.
* Example: "l" or ""
*
* Text with attributes: see GUI_HtmLabel
* more than 1 line: use \n
* update text with GUI_label_mod
*
*
int GUI_label_mod ( MemObj o_par,
char *  txt 
)

modify label

modify label

MemObj GUI_label_htm__ ( MemObj o_par,
char *  ltxt,
char *  opts 
)
* GUI_HtmLabel static text with html-attributes
*
* Input:
* o_par parentBox
* ltxt text to display
* opts options; (alignment)
* first character 'l'=left aligned; 'r'=right aligned; def.=center.
* Example: "l" or ""
*
* Examples:
* GUI_label_htm__ (&box1, "<b>Text:</b>", "");
* GUI_label_htm__ (&box1,"<span weight=\"bold\">Text:</span>","l");
* GUI_label_htm__ (&box1,"<span size=\"x-small\">Text:</span>","r");
* w = GUI_label_htm__ (&box1,"<span fgcolor=\"#00ffff\">Text:</span>","");
* GUI_label_htm_mod (&w,"<span fgcolor=\"#ff0000\" weight=\"bold\">xy</span>");
* bgcolor ..
* see "Pango Text Attribute Markup Language"
* "<b>text<span foreground=\"blue">text</span></b>"
*
* GUI_HtmLabel static text with html-attributes
*
* Input:
* o_par parentBox
* ltxt text to display
* opts options; (alignment)
* first character 'l'=left aligned; 'r'=right aligned; def.=center.
* Example: "l" or ""
*
* Examples:
* GUI_label_htm__ (&box1, "<b>Text:</b>", "");
* GUI_label_htm__ (&box1,"<span weight=\"bold\">Text:</span>","l");
* GUI_label_htm__ (&box1,"<span size=\"x-small\">Text:</span>","r");
* w = GUI_label_htm__ (&box1,"<span fgcolor=\"#00ffff\">Text:</span>","");
* GUI_label_htm_mod (&w,"<span fgcolor=\"#ff0000\" weight=\"bold\">xy</span>");
* bgcolor ..
* see "Pango Text Attribute Markup Language"
* "<b>text<span foreground=\"blue">text</span></b>"
*
int GUI_label_htm_mod ( MemObj o_par,
char *  txt 
)
* modify htm-label
*
* modify htm-label
*