JX Application Framework
|
#include <JXDockWindowTask.h>
Public Member Functions | |
JXDockWindowTask (JXWindow *window, const Window parent, const JPoint &topLeft, JXDockWidget *dock) | |
~JXDockWindowTask () override | |
bool | IsDone () const |
![]() | |
JXIdleTask (const Time period) | |
virtual | ~JXIdleTask () |
void | Start () |
void | Stop () |
Time | GetPeriod () const |
void | SetPeriod (const Time period) |
void | ResetTimer () |
![]() | |
JBroadcaster () | |
virtual | ~JBroadcaster () |
JBroadcaster & | operator= (const JBroadcaster &source) |
bool | HasSenders () const |
JSize | GetSenderCount () const |
bool | HasRecipients () const |
JSize | GetRecipientCount () const |
virtual JString | ToString () const |
template<class T > | |
void | ListenTo (const JBroadcaster *sender, const std::function< void(const T &)> &f) |
Static Public Member Functions | |
static void | PrepareForDockAll () |
Protected Member Functions | |
void | Perform (const Time delta) override |
void | Receive (JBroadcaster *sender, const Message &message) override |
![]() | |
bool | Ready (const Time delta, Time *maxSleepTime) |
![]() | |
JBroadcaster (const JBroadcaster &source) | |
void | ListenTo (const JBroadcaster *sender) |
void | StopListening (const JBroadcaster *sender) |
void | ClearWhenGoingAway (const JBroadcaster *sender, void *pointerToMember) |
void | StopListening (const JBroadcaster *sender, const std::type_info &messageType) |
template<class T > | |
void | Send (JBroadcaster *recipient, const T &message) |
template<class T > | |
void | Broadcast (const T &message) |
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
void | BroadcastWithFeedback (Message *message) |
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
This is an idle task rather than an urgent task because Gnome takes its own sweet time dealing with reparenting. If we do not wait for the window to hide, then it may remain on the desktop!
JXDockWindowTask::JXDockWindowTask | ( | JXWindow * | window, |
const Window | parent, | ||
const JPoint & | topLeft, | ||
JXDockWidget * | dock | ||
) |
|
override |
bool JXDockWindowTask::IsDone | ( | ) | const |
|
overrideprotectedvirtual |
Implements JXIdleTask.
|
static |
|
overrideprotectedvirtual |
Process the given message from the given sender. This function is not pure virtual because not all classes will want to implement it.
Reimplemented from JBroadcaster.