gtk_label.c File Reference

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

Functions

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

Detailed Description

=====================================================
List_functions_start:

GUI_Label__            BackgroundText (Label) with align
GUI_label_mod          modify label

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_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     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
    
    modify text:
      GUI_Label_mod (w_nam, "modified Text");

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     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
Generated on Fri Aug 17 09:22:02 2012 for C-KIT-GUI-GTK 0.10 by  doxygen 1.6.3