|
| JXWindow (JXWindowDirector *director, const JCoordinate w, const JCoordinate h, const JString &title, const bool isOverlay=false) |
|
| ~JXWindow () override |
|
JXDisplay * | GetDisplay () const |
|
const JString & | GetTitle () const |
|
void | SetTitle (const JString &title) |
|
bool | Close () |
|
CloseAction | GetCloseAction () const |
|
void | SetCloseAction (const CloseAction closeAction) |
|
void | SetTransientFor (const JXWindowDirector *director) |
|
void | SetWMClass (const JUtf8Byte *c_class, const JUtf8Byte *instance) |
|
void | HideFromTaskbar () |
|
void | Show () override |
|
void | Hide () override |
|
void | Raise (const bool grabKeyboardFocus=true) |
|
void | Lower () |
|
void | Refresh () const override |
|
void | RefreshRect (const JRect &rect) const |
|
void | Redraw () const override |
|
void | RedrawRect (const JRect &rect) const |
|
void | CheckForMapOrExpose () |
|
void | Iconify () |
|
void | Deiconify () |
|
bool | IsIconified () const |
|
bool | GetFocusWidget (JXWidget **widget) const |
|
bool | SwitchFocusToFirstWidget () |
|
bool | SwitchFocusToFirstWidgetWithAncestor (JXContainer *ancestor) |
|
bool | OKToUnfocusCurrentWidget () const |
|
bool | UnfocusCurrentWidget () |
|
void | KillFocus () |
|
void | Activate () override |
|
void | Resume () override |
|
bool | WillFocusWhenShown () const |
|
void | ShouldFocusWhenShow (const bool focusWhenShow) |
|
void | RequestFocus () |
|
bool | HasFocus () const |
|
JPoint | GlobalToLocal (const JCoordinate x, const JCoordinate y) const override |
|
JPoint | LocalToGlobal (const JCoordinate x, const JCoordinate y) const override |
|
JPoint | GlobalToRoot (const JCoordinate x, const JCoordinate y) const |
|
JPoint | GlobalToRoot (const JPoint &pt) const |
|
JRect | GlobalToRoot (const JRect &r) const |
|
JPoint | RootToGlobal (const JCoordinate x, const JCoordinate y) const |
|
JPoint | RootToGlobal (const JPoint &pt) const |
|
JRect | RootToGlobal (const JRect &r) const |
|
void | Place (const JCoordinate enclX, const JCoordinate enclY) override |
|
void | Move (const JCoordinate dx, const JCoordinate dy) override |
|
void | SetSize (const JCoordinate w, const JCoordinate h) override |
|
void | AdjustSize (const JCoordinate dw, const JCoordinate dh) override |
|
void | CenterOnScreen () |
|
void | PlaceAsDialogWindow () |
|
JPoint | GetMinSize () const |
|
void | SetMinSize (const JCoordinate w, const JCoordinate h) |
|
void | LockCurrentMinSize () |
|
void | ClearMinSize () |
|
JPoint | GetMaxSize () const |
|
void | SetMaxSize (const JCoordinate w, const JCoordinate h) |
|
void | LockCurrentMaxSize () |
|
void | ClearMaxSize () |
|
void | LockCurrentSize () |
|
void | SetStepSize (const JCoordinate dw, const JCoordinate dh) |
|
void | ClearStepSize () |
|
JRect | GetBoundsGlobal () const override |
|
JRect | GetFrameGlobal () const override |
|
JRect | GetApertureGlobal () const override |
|
JPoint | GetDesktopLocation () const |
|
void | ReadGeometry (std::istream &input, const bool skipDocking=false) |
|
void | WriteGeometry (std::ostream &output) const |
|
void | ReadGeometry (const JString &data, const bool skipDocking=false) |
|
void | WriteGeometry (JString *data) const |
|
JXWindowDirector * | GetDirector () const |
|
JColorID | GetBackColor () const |
|
void | SetBackColor (const JColorID color) |
|
void | SetIcon (JXImage *icon) |
|
JXWindowIcon * | SetIcon (JXImage *normalIcon, JXImage *dropIcon) |
|
bool | GetIconWidget (JXWindowIcon **widget) const |
|
bool | IsDragging () const |
|
void | PrintWindowConfig () |
|
void | SetWMWindowType (const WMType type) |
|
void | BufferDrawing (const bool bufferDrawing) |
|
bool | IsKeepingBufferPixmap () const |
|
void | KeepBufferPixmap (const bool keepIt) |
|
bool | IsUsingPixmapAsBackground () const |
|
void | UsePixmapAsBackground (const bool useIt) |
|
bool | GrabPointer (JXContainer *obj) |
|
void | UngrabPointer (JXContainer *obj) |
|
void | HandleEvent (const XEvent &xEvent) |
|
void | Update () |
|
void | DispatchMouse () |
|
bool | BeginDrag (JXContainer *obj, const JPoint &ptG, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
|
void | EndDrag (JXContainer *obj, const JPoint &ptG, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
|
bool | GetRootChild (Window *rootChild) const |
|
void | AcceptSaveYourself (const bool accept) |
|
bool | GetMouseContainer (JXContainer **window) const |
|
void | SetMouseContainer (JXContainer *obj, const JPoint &ptG, const unsigned int state) |
|
void | RecalcMouseContainer () |
|
void | SetWantDrag (const bool wantDrag) |
|
JSize | CountClicks (JXContainer *container, const JPoint &pt) |
|
void | DispatchCursor () |
|
void | DisplayXCursor (const JCursorIndex index) |
|
void | UpdateForScroll (const JRect &ap, const JRect &src, const JRect &dest) |
|
void | RegisterFocusWidget (JXWidget *widget) |
|
void | UnregisterFocusWidget (JXWidget *widget) |
|
bool | SwitchFocusToWidget (JXWidget *widget) |
|
bool | InstallShortcut (JXWidget *widget, const int key, const JXKeyModifiers &modifiers) |
|
void | InstallShortcuts (JXWidget *widget, const JString &list) |
|
void | ClearShortcuts (JXWidget *widget) |
|
Window | GetXWindow () const |
|
bool | InstallMenuShortcut (JXTextMenu *menu, const JIndex menuItem, const int key, const JXKeyModifiers &origModifiers) |
|
void | ClearMenuShortcut (JXTextMenu *menu, const JIndex menuItem) |
|
void | ClearAllMenuShortcuts (JXTextMenu *menu) |
|
void | MenuItemInserted (JXTextMenu *menu, const JIndex newItem) |
|
void | MenuItemRemoved (JXTextMenu *menu, const JIndex oldItem) |
|
void | SetXIMPosition (const JPoint &ptG) |
|
void | SetCurrentHintManager (JXHintManager *mgr) |
|
void | DeactivateHint () |
|
bool | IsDocked () const |
|
bool | GetDockWindow (JXWindow **window) const |
|
bool | GetDockWidget (JXDockWidget **dock) const |
|
bool | Dock (JXDockWidget *dock, const Window parent, const JRect &geom) |
|
void | Undock () |
|
void | UndockAllChildWindows () |
|
bool | HasWindowType () const |
|
bool | GetWindowType (JString *type) const |
|
void | UndockedPlace (const JCoordinate enclX, const JCoordinate enclY) |
|
void | UndockedMove (const JCoordinate dx, const JCoordinate dy) |
|
void | UndockedSetSize (const JCoordinate w, const JCoordinate h, const bool ftc=false) |
|
virtual JPoint | GlobalToLocal (const JCoordinate x, const JCoordinate y) const=0 |
|
JPoint | GlobalToLocal (const JPoint &pt) const |
|
JRect | GlobalToLocal (const JRect &r) const |
|
virtual JPoint | LocalToGlobal (const JCoordinate x, const JCoordinate y) const=0 |
|
JPoint | LocalToGlobal (const JPoint &pt) const |
|
JRect | LocalToGlobal (const JRect &r) const |
|
| ~JXContainer () override |
|
bool | IsAncestor (JXContainer *obj) const |
|
bool | IsVisible () const |
|
void | SetVisible (const bool vis) |
|
bool | WouldBeVisible () const |
|
virtual void | Deactivate () |
|
bool | IsActive () const |
|
void | SetActive (const bool active) |
|
bool | WouldBeActive () const |
|
virtual void | Suspend () |
|
bool | IsSuspended () const |
|
bool | IsDNDSource () const |
|
bool | IsDNDTarget () const |
|
JPoint | GlobalToLocal (const JPoint &pt) const |
|
JRect | GlobalToLocal (const JRect &r) const |
|
JPoint | LocalToGlobal (const JPoint &pt) const |
|
JRect | LocalToGlobal (const JRect &r) const |
|
JRect | GetBounds () const |
|
JCoordinate | GetBoundsWidth () const |
|
JCoordinate | GetBoundsHeight () const |
|
JRect | GetFrame () const |
|
JRect | GetFrameLocal () const |
|
JCoordinate | GetFrameWidth () const |
|
JCoordinate | GetFrameHeight () const |
|
JRect | GetAperture () const |
|
JCoordinate | GetApertureWidth () const |
|
JCoordinate | GetApertureHeight () const |
|
JXDisplay * | GetDisplay () const |
|
JXWindow * | GetWindow () const |
|
JXContainer * | GetEnclosure () const |
|
JFontManager * | GetFontManager () const |
|
JXFontManager * | GetXFontManager () const |
|
JXSelectionManager * | GetSelectionManager () const |
|
JXDNDManager * | GetDNDManager () const |
|
JXMenuManager * | GetMenuManager () const |
|
JCursorIndex | GetDefaultCursor () const |
|
bool | GetHint (JString *text) const |
|
void | SetHint (const JString &text) |
|
void | ClearHint () |
|
bool | GetVisibleRectGlobal (const JRect &origRectG, JRect *visRectG) const |
|
void | ForEach (const std::function< void(JXContainer *)> &f, const bool recurse) |
|
void | ForEach (const std::function< void(const JXContainer *)> &f, const bool recurse) const |
|
void | ExpandToFitContent () |
|
virtual bool | RunInternalFTC (const bool horizontal, JCoordinate *newSize) |
|
JRect | ComputePaddingForInternalFTC () const |
|
bool | FindContainer (const JPoint &ptG, JXContainer **container) const |
|
virtual bool | IsMenu () const |
|
virtual bool | IsMenuTable () const |
|
| 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) |
|
|
void | Draw (JXWindowPainter &p, const JRect &rect) override |
|
void | DrawBorder (JXWindowPainter &p, const JRect &frame) override |
|
void | DrawBackground (JXWindowPainter &p, const JRect &frame) override |
|
void | BoundsMoved (const JCoordinate dx, const JCoordinate dy) override |
|
void | EnclosingBoundsMoved (const JCoordinate dx, const JCoordinate dy) override |
|
void | BoundsResized (const JCoordinate dw, const JCoordinate dh) override |
|
void | EnclosingBoundsResized (const JCoordinate dw, const JCoordinate dh) override |
|
void | FTCAdjustSize (const JCoordinate dw, const JCoordinate dh) override |
|
| JXContainer (JXWindow *window, JXContainer *enclosure) |
|
| JXContainer (JXDisplay *display, JXWindow *window, JXContainer *enclosure) |
|
void | TurnOnBufferedDrawing () |
|
void | DrawAll (JXWindowPainter &p, const JRect &frameG) |
|
virtual void | HandleMouseEnter () |
|
virtual void | HandleMouseHere (const JPoint &pt, const JXKeyModifiers &modifiers) |
|
virtual void | HandleMouseLeave () |
|
virtual bool | AcceptDrag (const JPoint &pt, const JXMouseButton button, const JXKeyModifiers &modifiers) |
|
virtual void | HandleMouseDown (const JPoint &pt, const JXMouseButton button, const JSize clickCount, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
|
virtual void | HandleMouseDrag (const JPoint &pt, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
|
virtual void | HandleMouseUp (const JPoint &pt, const JXMouseButton button, const JXButtonStates &buttonStates, const JXKeyModifiers &modifiers) |
|
virtual bool | HitSamePart (const JPoint &pt1, const JPoint &pt2) const |
|
virtual bool | WillAcceptDrop (const JArray< Atom > &typeList, Atom *action, const JPoint &pt, const Time time, const JXWidget *source) |
|
virtual void | HandleDNDEnter () |
|
virtual void | HandleDNDHere (const JPoint &pt, const JXWidget *source) |
|
virtual void | HandleDNDLeave () |
|
virtual void | HandleDNDDrop (const JPoint &pt, const JArray< Atom > &typeList, const Atom action, const Time time, const JXWidget *source) |
|
virtual void | HandleDNDScroll (const JPoint &pt, const JXMouseButton scrollButton, const JXKeyModifiers &modifiers) |
|
bool | DispatchClientMessage (const XClientMessageEvent &clientMessage) |
|
virtual bool | HandleClientMessage (const XClientMessageEvent &clientMessage) |
|
void | NotifyBoundsMoved (const JCoordinate dx, const JCoordinate dy) |
|
void | NotifyBoundsResized (const JCoordinate dw, const JCoordinate dh) |
|
virtual bool | IncludeInFTC () const |
|
virtual bool | NeedsInternalFTC () const |
|
virtual JCoordinate | GetFTCMinContentSize (const bool horizontal) const |
|
virtual JRect | GetFrameForFTC () const |
|
bool | GetEnclosedObjects (JPtrArrayIterator< JXContainer > **iter) const |
|
void | DeleteEnclosedObjects () |
|
void | ShowCursor () |
|
void | HideCursor () |
|
void | SetDefaultCursor (const JCursorIndex index) |
|
void | DispatchCursor (const JPoint &ptG, const JXKeyModifiers &modifiers) |
|
virtual void | AdjustCursor (const JPoint &pt, const JXKeyModifiers &modifiers) |
|
void | DisplayCursor (const JCursorIndex index) |
|
JXCursorAnimator * | CreateCursorAnimator () |
|
JXCursorAnimator * | GetCursorAnimator () const |
|
void | AnimateCursor () const |
|
void | RemoveCursorAnimator () |
|
void | ActivateCursor (const JPoint &ptG, const JXKeyModifiers &modifiers) |
|
void | DeactivateCursor () |
|
std::ostream & | GetFTCLog () const |
|
virtual bool | StealMouse (const int eventType, const JPoint &ptG, const JXMouseButton button, const unsigned int state) |
|
| 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) |
|
virtual void | Receive (JBroadcaster *sender, const Message &message) |
|
void | SendWithFeedback (JBroadcaster *recipient, Message *message) |
|
void | BroadcastWithFeedback (Message *message) |
|
virtual void | ReceiveWithFeedback (JBroadcaster *sender, Message *message) |
|
virtual void | ReceiveGoingAway (JBroadcaster *sender) |
|
If we ever allow a constructor that takes a JXDisplay*, we have to
rewrite JXGetCurrFontMgr.