Pyro higlevel API
|
Public Member Functions | |
Handler (const String &cName) | |
Construct a handler. More... | |
virtual | ~Handler () |
Destructor. More... | |
virtual void | TimerTick (int nID) |
Timer dispatch member. More... | |
virtual void | HandleMessage (Message *pcMessage) |
Handle a message targeted at this handler. More... | |
String | GetName () const |
Get the handlers name. More... | |
void | SetName (const String &cName) |
Rename the handler. More... | |
Looper * | GetLooper () const |
Get a pointer to the looper this handler belongs to. More... | |
void | SetNextHandler (Handler *pcNextHandler) |
Set a handler that should handle messages this handler is not interrested in. More... | |
Handler * | GetNextHandler () const |
Get the next handler in a handler chain. More... | |
void | AddFilter (MessageFilter *pcFilter) |
void | RemoveFilter (MessageFilter *pcFilter) |
const MsgFilterList & | GetFilterList () const |
const uint32 | GetToken () |
Get the handlers token. More... | |
Friends | |
class | Looper |
class | Message |
class | Messenger |
class | NodeMonitor |
class | Window |
Handler::Handler | ( | const String & | cName | ) |
cName | A name identifying the handler. This can be passed to os::Looper::FindHandler() on a looper to find the handler object when it have been added to the looper with os::Looper::AddHandler(). |
|
virtual |
References os::Looper::RemoveHandler().
void Handler::AddFilter | ( | MessageFilter * | pcFilter | ) |
References RemoveFilter().
const MsgFilterList & Handler::GetFilterList | ( | ) | const |
Looper * Handler::GetLooper | ( | ) | const |
Referenced by os::IconDirectoryView::KeyDown(), os::Messenger::Messenger(), os::ScrollBar::MouseDown(), os::ScrollBar::MouseMove(), os::ScrollBar::MouseUp(), os::Event::PostEvent(), os::Looper::PostMessage(), os::Event::Register(), os::IconDirectoryView::ReRead(), os::Messenger::SendMessage(), os::Message::SendReply(), os::Event::SetMonitorEnabled(), os::IconView::StartScroll(), os::IconView::StopScroll(), os::ScrollBar::TimerTick(), and os::Event::~Event().
String Handler::GetName | ( | ) | const |
Referenced by os::LayoutNode::AddChild(), and os::StatusBar::SetText().
Handler * Handler::GetNextHandler | ( | ) | const |
const uint32 Handler::GetToken | ( | ) |
Referenced by os::Event::Register(), and os::Event::SetMonitorEnabled().
|
virtual |
pcMessage
is also available through os::Looper::GetCurrentMessage() and os::Looper::DetachCurrentMessage() until this member returns. This is normally not very usefull for HandleMessage() itself but it can be convinient for other members called from HandleMessage() in case they need data from the message that was not passed on from HandleMessage(). pcMessage | The message that should be handled. This message will be deleted by the looper when HandleMessage() returns unless you detach it with os::Looper::DetachCurrentMessage(), |
Reimplemented in HandlerSelector, InfoWin, MountDialogWin, os::ProgressRequester, os::RegistrarManager, RenameFileWin, NewDirWin, os::DirectoryView, os::FontRequester, os::IconDirectoryView, os::Alert, os_priv::DirKeeper, os::InputBox, os::Application, os::DropdownMenu, os::Spinner, os::ColorRequester, os::FileRequester, os::DropdownMenu::DropdownView, os::ColorSelector, os::CalendarView, and os::DateView.
References os::Looper::PostMessage().
Referenced by os::Looper::DispatchMessage(), os::FileRequester::HandleMessage(), os::ColorRequester::HandleMessage(), os::Spinner::HandleMessage(), os::DropdownMenu::HandleMessage(), os::Application::HandleMessage(), os::InputBox::HandleMessage(), os::Alert::HandleMessage(), os::IconDirectoryView::HandleMessage(), NewDirWin::HandleMessage(), RenameFileWin::HandleMessage(), os::RegistrarManager::HandleMessage(), os::ProgressRequester::HandleMessage(), MountDialogWin::HandleMessage(), InfoWin::HandleMessage(), and HandlerSelector::HandleMessage().
void Handler::RemoveFilter | ( | MessageFilter * | pcFilter | ) |
Referenced by os::Looper::AddCommonFilter(), and AddFilter().
void Handler::SetName | ( | const String & | cName | ) |
cName | The new handler name. |
void Handler::SetNextHandler | ( | Handler * | pcNextHandler | ) |
pcNextHandler | Pointer to the handler that should receive messages after we are done with them or NULL to disable the forwarding. |
|
virtual |
nID
parameter. \return |
Reimplemented in os::IconView::MainView, os::Menu, os::ScrollBar, and os::ToolTip.
Referenced by os::ScrollBar::TimerTick().
|
friend |
|
friend |
Referenced by os::AlertView::AlertView(), os::TreeView::Collapse(), os::DropdownMenu::DropdownMenu(), os::TreeView::Expand(), os::FileRequester::FileRequester(), os::FileRequester::HandleMessage(), os::ColorRequester::HandleMessage(), os::InputBox::HandleMessage(), os::FileRequester::OkToQuit(), os::ColorRequester::OkToQuit(), os::InputBox::OkToQuit(), os::ProgressView::ProgressView(), os::Spinner::Spinner(), and os::DropdownMenu::WheelMoved().
|
friend |
|
friend |
|
friend |