Wt::Frame Class Reference

#include <frame.h>

Inherits Wt::Widget.

Inherited by Wt::Box, Wt::Cascade, Wt::Grid, and Wt::Label.

List of all members.

Public Member Functions

 Frame (Widget *parent=0, const std::string &name="Frame::anon", int wflags=0)
virtual ~Frame ()
int frameWidth () const
Rect contentsRect () const
const ColorlineColor () const
void setLineColor (const Color &color)

Public Attributes

WVar< int > lineWidth
WVar< int > margin
WVar< int > spacing

Protected Member Functions

virtual void draw (Painter *p, const Region &region)
 widget should be able to draw itself
virtual void drawFrame (Painter *p)
virtual void drawContents (Painter *p)
void onLayoutChange ()

Constructor & Destructor Documentation

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

Reimplemented in Wt::Window::Frame.

Wt::Frame::~Frame (  )  [virtual]

Member Function Documentation

Rect Wt::Frame::contentsRect (  )  const

void Wt::Frame::draw ( Painter p,
const Region region 
) [protected, virtual]

widget should be able to draw itself

A clever widget can draw only the parts of it that are specified in the region argument. A not so clever widget can safely ignore the region argument and draw the entire widget area.

Keep in mind that double buffering is already implemented and you can't gain anything by reimplementing it again at this level.

Reimplemented from Wt::Widget.

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

Reimplemented in Wt::Label.

void Wt::Frame::drawFrame ( Painter p  )  [protected, virtual]

int Wt::Frame::frameWidth (  )  const

const Color & Wt::Frame::lineColor (  )  const

void Wt::Frame::onLayoutChange (  )  [protected]

void Wt::Frame::setLineColor ( const Color color  ) 

Member Data Documentation

WVar<int> Wt::Frame::lineWidth

WVar<int> Wt::Frame::margin

WVar<int> Wt::Frame::spacing

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.