#include <frame.h>
Inherits Wt::Widget.
Inherited by Wt::Box, Wt::Cascade, Wt::Grid, and Wt::Label.
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 Color & | lineColor () 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 ®ion) |
widget should be able to draw itself | |
virtual void | drawFrame (Painter *p) |
virtual void | drawContents (Painter *p) |
void | onLayoutChange () |
Wt::Frame::Frame | ( | Widget * | parent = 0 , |
|
const std::string & | name = "Frame::anon" , |
|||
int | wflags = 0 | |||
) |
Reimplemented in Wt::Window::Frame.
Wt::Frame::~Frame | ( | ) | [virtual] |
Rect Wt::Frame::contentsRect | ( | ) | const |
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::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 | ) |
WVar<int> Wt::Frame::lineWidth |
WVar<int> Wt::Frame::margin |
WVar<int> Wt::Frame::spacing |
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.