gCAD3D 2.40
gui_gtk3/gtk_label.c File Reference

backgroundtext More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "../gui/gui_types.h"
#include "../ut/ut_umem.h"
#include "../gui/gui_base.h"
#include "../gui_gtk3/gtk_base.h"
#include "../gui_gtk3/gtk_label.h"

Functions

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

Variables

GtkWidget * UI_act_wi
 
int UI_fontsizX
 
int UI_fontsizY
 
GdkRGBA * UI_stylTab [3]
 

Detailed Description

backgroundtext

=====================================================
List_functions_start:
GUI_label__ BackgroundText (Label) with align
GUI_label_mod modify label
GUI_label_styl modify colour of label-text;
GUI_label_htm__ static text with html-attributes
GUI_label_htm_mod modify text with html-attributes
List_functions_end:
=====================================================

Function Documentation

int GUI_label_styl ( MemObj o_par,
int  iCol 
)

modify label-colour

int GUI_label_mod ( MemObj o_par,
char *  txt 
)

modify label

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
* update text with GUI_label_mod
*
*
int GUI_label_htm_mod ( MemObj o_par,
char *  txt 
)
* modify htm-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>"
*

Variable Documentation

GtkWidget* UI_act_wi
int UI_fontsizX
int UI_fontsizY
GdkRGBA* UI_stylTab[3]