#include <object.h>
Inherited by Wt::Application, Wt::Layout, Wt::Timer, and Wt::Widget.
Public Types | |
typedef std::list< Object * > | List |
Public Member Functions | |
Object (Object *parent=0, const std::string &name="Object::anon") | |
virtual | ~Object () |
Object * | parent () const |
const List & | children () const |
List & | children () |
bool | isDescendant (const Object *p) const |
virtual void | insertChild (Object *obj) |
virtual void | removeChild (Object *obj) |
void | reparent (Object *new_parent) |
template<typename T> | |
void | deleteFirstChild () |
template<typename T> | |
void | deleteLastChild () |
template<typename T> | |
void | deleteAllChildren () |
Object * | topParent () const |
returns top level parent: it may return itself | |
const std::string & | name () const |
void | installEventFilter (const Object *filterObj) |
void | removeEventFilter (const Object *obj) |
virtual bool | eventFilter (Object *, Event *) |
int | startTimer (int interval) |
void | killTimer (int id) |
void | killTimers () |
virtual bool | event (Event *e) |
event handling | |
Public Attributes | |
Signal01< void, const Object * > | destroyed |
signals | |
Protected Member Functions | |
virtual void | childEvent (ChildEvent *) |
event handling specialization | |
virtual void | customEvent (CustomEvent *) |
virtual void | timerEvent (TimerEvent *) |
bool | filterEvent (Event *) |
typedef std::list<Object*> Wt::Object::List |
Wt::Object::Object | ( | Object * | parent = 0 , |
|
const std::string & | name = "Object::anon" | |||
) |
Wt::Object::~Object | ( | ) | [virtual] |
virtual void Wt::Object::childEvent | ( | ChildEvent * | ) | [inline, protected, virtual] |
List& Wt::Object::children | ( | ) | [inline] |
const List& Wt::Object::children | ( | ) | const [inline] |
virtual void Wt::Object::customEvent | ( | CustomEvent * | ) | [inline, protected, virtual] |
void Wt::Object::deleteAllChildren | ( | ) | [inline] |
void Wt::Object::deleteFirstChild | ( | ) | [inline] |
void Wt::Object::deleteLastChild | ( | ) | [inline] |
bool Wt::Object::event | ( | Event * | e | ) | [virtual] |
Reimplemented in Wt::Layout.
bool Wt::Object::filterEvent | ( | Event * | ) | [protected] |
void Wt::Object::insertChild | ( | Object * | obj | ) | [virtual] |
void Wt::Object::installEventFilter | ( | const Object * | filterObj | ) |
bool Wt::Object::isDescendant | ( | const Object * | p | ) | const |
void Wt::Object::killTimer | ( | int | id | ) |
void Wt::Object::killTimers | ( | ) |
const std::string& Wt::Object::name | ( | ) | const [inline] |
Object* Wt::Object::parent | ( | ) | const [inline] |
void Wt::Object::removeChild | ( | Object * | obj | ) | [virtual] |
void Wt::Object::removeEventFilter | ( | const Object * | obj | ) |
void Wt::Object::reparent | ( | Object * | new_parent | ) |
int Wt::Object::startTimer | ( | int | interval | ) |
virtual void Wt::Object::timerEvent | ( | TimerEvent * | ) | [inline, protected, virtual] |
Object * Wt::Object::topParent | ( | ) | const |
returns top level parent: it may return itself
Signal01<void, const Object *> Wt::Object::destroyed |
signals
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.