Wt::Label Class Reference

Display a text or pixmap message on screen. More...

#include <label.h>

Inherits Wt::Frame.

List of all members.

Public Member Functions

 Label (Widget *parent=0, const std::string &name="Label::anon", int wflags=0)
 Label (const std::string &text, Widget *parent=0, const std::string &name="Label::anon", int wflags=0)
const std::string text () const
const Pixmappixmap () const
virtual void setText (const std::string &text)
virtual void setPixmap (const Pixmap &pixmap)
virtual void setNum (int num)
virtual void setNum (double num)
void clear ()

Public Attributes

WVar< int > alignment
WVar< int > indent
WVar< bool > scaledContents

Protected Member Functions

int effectiveIndent () const
virtual void drawContents (Painter *p)
void update ()
virtual void fontChange (const Font &old_font)

Detailed Description

Display a text or pixmap message on screen.

Constructor & Destructor Documentation

Wt::Label::Label ( Widget parent = 0,
const std::string &  name = "Label::anon",
int  wflags = 0 

Wt::Label::Label ( const std::string &  text,
Widget parent = 0,
const std::string &  name = "Label::anon",
int  wflags = 0 

Member Function Documentation

void Wt::Label::clear (  ) 

void Wt::Label::drawContents ( Painter p  )  [protected, virtual]

Reimplemented from Wt::Frame.

int Wt::Label::effectiveIndent (  )  const [protected]

void Wt::Label::fontChange ( const Font old_font  )  [protected, virtual]

Reimplemented from Wt::Widget.

const Pixmap& Wt::Label::pixmap (  )  const [inline]

void Wt::Label::setNum ( double  num  )  [virtual]

void Wt::Label::setNum ( int  num  )  [virtual]

void Wt::Label::setPixmap ( const Pixmap pixmap  )  [virtual]

void Wt::Label::setText ( const std::string &  text  )  [virtual]

const std::string Wt::Label::text (  )  const [inline]

void Wt::Label::update (  )  [protected]

Reimplemented from Wt::Widget.

Member Data Documentation

WVar<int> Wt::Label::alignment

Reimplemented from Wt::LayoutItem.

WVar<int> Wt::Label::indent

WVar<bool> Wt::Label::scaledContents

The documentation for this class was generated from the following files:

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.