Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Label

Class Label

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Misc.Misc
                                dui.Label.Label

Implemented interfaces:


public class

Label



A widget to display a text Label

Constructor Summary
protected (GtkWidget *gtkWidget)
          
(String str)
          Creates a new text lable
(char str)
          Creates a new text label
(char str, bit mnemonic)
          
(String str, bit mnemonic)
          

Methods Summary
public void* gtk()
          
static GType getType()
          Gets this class type
void setText(char str)
          Sets the label text
void setText(String str)
          
String getText()
          Gets the label text
void setAttributes(PangoAttrList* attrs)
          
PangoAttrList* getAttributes()
          
void setLabel(char str)
          
void setLabel(String str)
          
String getLabel()
          Gets the label text
void setMarkup(char str)
          
void setUseMarkup(bit setting)
          
bit getUseMarkup()
          
void setUseUnderline(bit setting)
          
bit getUseUnderline()
          
void setMarkupWidthMnemonic(String str)
          
guint getMnemonicKeyval()
          
void setMnemonicWidget(Widget mnm)
          
Widget getMnemonicWidget()
          
void setTextMnemonic(String str)
          
void setJustify(GtkJustification jtype)
          
GtkJustification getJustify()
          
void setPattern(String pattern)
          
void setLineWrap(bit wrap)
          
bit getLineWrap()
          
void setSelectable(bit setting)
          
bit getSelectable()
          
void selectRegion(gint start_offset, gint end_offset)
          
bit getSelectionBounds(gint* start, gint* end)
          
PangoLayout* getLayout()
          
void getLayoutOffsets(gint* x, gint* y)
          




protected ctor(Label)(GtkWidget *gtkWidget)

gtk

public void* gtk()

getType

static GType getType()
Gets this class type

Returns:
type



ctor(Label)(String str)
Creates a new text lable

Parameters:
str - the label text



ctor(Label)(char str)
Creates a new text label

Parameters:
str - the label text



ctor(Label)(char str, bit mnemonic)



ctor(Label)(String str, bit mnemonic)

setText

void setText(char str)
Sets the label text

Parameters:
str - the new label text

setText

void setText(String str)

getText

String getText()
Gets the label text

Returns:
the label text

setAttributes

void setAttributes(PangoAttrList* attrs)

getAttributes

PangoAttrList* getAttributes()

setLabel

void setLabel(char str)

setLabel

void setLabel(String str)

getLabel

String getLabel()
Gets the label text

Returns:
the label text

setMarkup

void setMarkup(char str)

setUseMarkup

void setUseMarkup(bit setting)

getUseMarkup

bit getUseMarkup()

setUseUnderline

void setUseUnderline(bit setting)

getUseUnderline

bit getUseUnderline()

setMarkupWidthMnemonic

void setMarkupWidthMnemonic(String str)

getMnemonicKeyval

guint getMnemonicKeyval()

setMnemonicWidget

void setMnemonicWidget(Widget mnm)

getMnemonicWidget

Widget getMnemonicWidget()

setTextMnemonic

void setTextMnemonic(String str)

setJustify

void setJustify(GtkJustification jtype)

getJustify

GtkJustification getJustify()

setPattern

void setPattern(String pattern)

setLineWrap

void setLineWrap(bit wrap)

getLineWrap

bit getLineWrap()

setSelectable

void setSelectable(bit setting)

getSelectable

bit getSelectable()

selectRegion

void selectRegion(gint start_offset, gint end_offset)

getSelectionBounds

bit getSelectionBounds(gint* start, gint* end)

getLayout

PangoLayout* getLayout()

getLayoutOffsets

void getLayoutOffsets(gint* x, gint* y)