JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
JXContainer Class Referenceabstract

#include <JXContainer.h>

Inheritance diagram for JXContainer:
[legend]

Public Member Functions

 ~JXContainer () override
 
bool IsAncestor (JXContainer *obj) const
 
virtual void Show ()
 
virtual void Hide ()
 
virtual void Refresh () const =0
 
virtual void Redraw () const =0
 
bool IsVisible () const
 
void SetVisible (const bool vis)
 
bool WouldBeVisible () const
 
virtual void Activate ()
 
virtual void Deactivate ()
 
bool IsActive () const
 
void SetActive (const bool active)
 
bool WouldBeActive () const
 
virtual void Suspend ()
 
virtual void Resume ()
 
bool IsSuspended () const
 
bool IsDNDSource () const
 
bool IsDNDTarget () const
 
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
 
virtual void Place (const JCoordinate enclX, const JCoordinate enclY)=0
 
virtual void Move (const JCoordinate dx, const JCoordinate dy)=0
 
virtual void SetSize (const JCoordinate w, const JCoordinate h)=0
 
virtual void AdjustSize (const JCoordinate dw, const JCoordinate dh)=0
 
JRect GetBounds () const
 
virtual JRect GetBoundsGlobal () const =0
 
JCoordinate GetBoundsWidth () const
 
JCoordinate GetBoundsHeight () const
 
JRect GetFrame () const
 
JRect GetFrameLocal () const
 
virtual JRect GetFrameGlobal () const =0
 
JCoordinate GetFrameWidth () const
 
JCoordinate GetFrameHeight () const
 
JRect GetAperture () const
 
virtual JRect GetApertureGlobal () const =0
 
JCoordinate GetApertureWidth () const
 
JCoordinate GetApertureHeight () const
 
JXDisplayGetDisplay () const
 
JXWindowGetWindow () const
 
JXContainerGetEnclosure () const
 
JFontManagerGetFontManager () const
 
JXFontManagerGetXFontManager () const
 
JXSelectionManagerGetSelectionManager () const
 
JXDNDManagerGetDNDManager () const
 
JXMenuManagerGetMenuManager () 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)
 
virtual void FTCAdjustSize (const JCoordinate dw, const JCoordinate dh)
 
JRect ComputePaddingForInternalFTC () const
 
bool FindContainer (const JPoint &ptG, JXContainer **container) const
 
virtual bool IsMenu () const
 
virtual bool IsMenuTable () const
 
- Public Member Functions inherited from JBroadcaster
 JBroadcaster ()
 
virtual ~JBroadcaster ()
 
JBroadcasteroperator= (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 DebugExpandToFitContent (const bool horiz)
 
static void DebugExpandToFitContentExtras (const bool noop, const bool overlap)
 

Protected Member Functions

 JXContainer (JXWindow *window, JXContainer *enclosure)
 
 JXContainer (JXDisplay *display, JXWindow *window, JXContainer *enclosure)
 
void TurnOnBufferedDrawing ()
 
void DrawAll (JXWindowPainter &p, const JRect &frameG)
 
virtual void Draw (JXWindowPainter &p, const JRect &rect)=0
 
virtual void DrawBorder (JXWindowPainter &p, const JRect &frame)=0
 
virtual void DrawBackground (JXWindowPainter &p, const JRect &frame)=0
 
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)
 
virtual void BoundsMoved (const JCoordinate dx, const JCoordinate dy)=0
 
virtual void EnclosingBoundsMoved (const JCoordinate dx, const JCoordinate dy)=0
 
void NotifyBoundsResized (const JCoordinate dw, const JCoordinate dh)
 
virtual void BoundsResized (const JCoordinate dw, const JCoordinate dh)=0
 
virtual void EnclosingBoundsResized (const JCoordinate dw, const JCoordinate dh)=0
 
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)
 
JXCursorAnimatorCreateCursorAnimator ()
 
JXCursorAnimatorGetCursorAnimator () 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)
 
- Protected Member Functions inherited from JBroadcaster
 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)
 

Friends

class JXWindow
 
class JXDNDManager
 
class JXFTCCell
 

Detailed Description

Abstract base class to provide concept of enclosure.

    All JXContainers must be allocated on the heap.

This class also implements the event dispatcher and default event handling
(do nothing) so derived classes only have to implement handlers for the
events that they support.

Draw, DrawBorder, and DrawBackground are special cases.  They are pure
virtual because they always have to be provided.

The default handling of multiple clicks is to always handle them.
Often, however, only clicks that are "close" should be treated as multiples.
To define "close," override HitSamePart.

Drag-And-Drop (DND) can be supported by overriding the four HandleDND*()
functions.  They operate just like the corresponding HandleMouse*()
functions.  HandleDNDLeave() is called if the mouse leaves.
HandleDNDDrop() is called if the mouse is released.  The data that was
dropped is accessed via the selection manager. (Get the name of the
selection from JXDNDManager::GetDNDSelectionName().)

Since each class will only accept certain data types, each derived class
should override WillAcceptDrop() and return true if they will accept
at least one of the given data types.  If the function returns false,
the object will not receive any DND messages.

Since Widgets are the ones that actually own data, only Widgets can
initiate DND (via BeginDND()).  Containers can accept drops, however.
This is why all the DND functions other than BeginDND() are defined
by JXContainer.

Constructor & Destructor Documentation

◆ ~JXContainer()

JXContainer::~JXContainer ( )
override

◆ JXContainer() [1/2]

JXContainer::JXContainer ( JXWindow window,
JXContainer enclosure 
)
protected

If enclosure is nullptr, we are a window.

◆ JXContainer() [2/2]

JXContainer::JXContainer ( JXDisplay display,
JXWindow window,
JXContainer enclosure 
)
protected

Member Function Documentation

◆ AcceptDrag()

bool JXContainer::AcceptDrag ( const JPoint pt,
const JXMouseButton  button,
const JXKeyModifiers modifiers 
)
protectedvirtual

Reimplemented in JXWidget.

◆ Activate()

void JXContainer::Activate ( )
virtual

Reimplemented in JXMenu, JXTabGroup, JXTEBase, and JXWindow.

◆ ActivateCursor()

void JXContainer::ActivateCursor ( const JPoint ptG,
const JXKeyModifiers modifiers 
)
protected

◆ AdjustCursor()

void JXContainer::AdjustCursor ( const JPoint pt,
const JXKeyModifiers modifiers 
)
protectedvirtual

Derived classes can override to adjust the cursor as appropriate.

Should not be called if cursor animator is active.

Reimplemented in JXColHeaderWidget, JXHorizPartition, JXLinkText, JXRowHeaderWidget, JXScrollbar, JXTEBase, and JXVertPartition.

◆ AdjustSize()

virtual void JXContainer::AdjustSize ( const JCoordinate  dw,
const JCoordinate  dh 
)
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ AnimateCursor()

void JXContainer::AnimateCursor ( ) const
protected

◆ BoundsMoved()

virtual void JXContainer::BoundsMoved ( const JCoordinate  dx,
const JCoordinate  dy 
)
protectedpure virtual

◆ BoundsResized()

virtual void JXContainer::BoundsResized ( const JCoordinate  dw,
const JCoordinate  dh 
)
protectedpure virtual

◆ ClearHint()

void JXContainer::ClearHint ( )

Remove the hint for this button.

◆ ComputePaddingForInternalFTC()

JRect JXContainer::ComputePaddingForInternalFTC ( ) const

◆ CreateCursorAnimator()

JXCursorAnimator * JXContainer::CreateCursorAnimator ( )
protected

◆ Deactivate()

void JXContainer::Deactivate ( )
virtual

Reimplemented in JXMenu, JXTEBase, and JXWidget.

◆ DeactivateCursor()

void JXContainer::DeactivateCursor ( )
protected

◆ DebugExpandToFitContent()

void JXContainer::DebugExpandToFitContent ( const bool  horiz)
static

◆ DebugExpandToFitContentExtras()

void JXContainer::DebugExpandToFitContentExtras ( const bool  noop,
const bool  overlap 
)
static

◆ DeleteEnclosedObjects()

void JXContainer::DeleteEnclosedObjects ( )
protected

◆ DispatchClientMessage()

bool JXContainer::DispatchClientMessage ( const XClientMessageEvent &  clientMessage)
protected

We send the message to every object since we don't know anything about who wants. If somebody returns true, then it means that it was for them, so we stop passing it around.

◆ DispatchCursor()

void JXContainer::DispatchCursor ( const JPoint ptG,
const JXKeyModifiers modifiers 
)
protected

◆ DisplayCursor()

void JXContainer::DisplayCursor ( const JCursorIndex  index)
protected

Should only be called by DispatchCursor() and AdjustCursor().

◆ Draw()

virtual void JXContainer::Draw ( JXWindowPainter p,
const JRect rect 
)
protectedpure virtual

◆ DrawAll()

void JXContainer::DrawAll ( JXWindowPainter p,
const JRect origFrameG 
)
protected

Returns false if we are a JXWindow or obj is in a different JXWindow.

Before we can implement this, we need to define pure virtual EnclosureChanged() so derived classes can update their state, e.g., JXRadioButton needs to know its JXRadioGroup. This may be very difficult if said state is application specific and can only be computed at a higher level, e.g., JXDirector or JXApplication.

◆ DrawBackground()

virtual void JXContainer::DrawBackground ( JXWindowPainter p,
const JRect frame 
)
protectedpure virtual

Implemented in JXFTCCell, JXTextButton, JXWidget, and JXWindow.

◆ DrawBorder()

virtual void JXContainer::DrawBorder ( JXWindowPainter p,
const JRect frame 
)
protectedpure virtual

◆ EnclosingBoundsMoved()

virtual void JXContainer::EnclosingBoundsMoved ( const JCoordinate  dx,
const JCoordinate  dy 
)
protectedpure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ EnclosingBoundsResized()

virtual void JXContainer::EnclosingBoundsResized ( const JCoordinate  dw,
const JCoordinate  dh 
)
protectedpure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ ExpandToFitContent()

void JXContainer::ExpandToFitContent ( )

Assumes that widgets are laid out in implicit, nested tables and do not overlap. Discovers and constructs these implicit tables and expands the cells and their contents so text is not cut off.

◆ FindContainer()

bool JXContainer::FindContainer ( const JPoint ptG,
JXContainer **  container 
) const

Returns the JXContainer that contains the given point.

◆ ForEach() [1/2]

void JXContainer::ForEach ( const std::function< void(const JXContainer *)> &  f,
const bool  recurse 
) const

◆ ForEach() [2/2]

void JXContainer::ForEach ( const std::function< void(JXContainer *)> &  f,
const bool  recurse 
)

Calls the given function for each enclosed object. If recurse, also calls ForEach() on each enclosed object.

◆ FTCAdjustSize()

void JXContainer::FTCAdjustSize ( const JCoordinate  dw,
const JCoordinate  dh 
)
virtual

◆ GetAperture()

JRect JXContainer::GetAperture ( ) const
inline

Returns the aperture in local coordinates.

◆ GetApertureGlobal()

virtual JRect JXContainer::GetApertureGlobal ( ) const
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ GetApertureHeight()

JCoordinate JXContainer::GetApertureHeight ( ) const
inline

◆ GetApertureWidth()

JCoordinate JXContainer::GetApertureWidth ( ) const
inline

◆ GetBounds()

JRect JXContainer::GetBounds ( ) const
inline

Returns the bounds in local coordinates.

◆ GetBoundsGlobal()

virtual JRect JXContainer::GetBoundsGlobal ( ) const
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ GetBoundsHeight()

JCoordinate JXContainer::GetBoundsHeight ( ) const
inline

◆ GetBoundsWidth()

JCoordinate JXContainer::GetBoundsWidth ( ) const
inline

◆ GetCursorAnimator()

JXCursorAnimator * JXContainer::GetCursorAnimator ( ) const
inlineprotected

◆ GetDefaultCursor()

JCursorIndex JXContainer::GetDefaultCursor ( ) const
inline

◆ GetDisplay()

JXDisplay * JXContainer::GetDisplay ( ) const

◆ GetDNDManager()

JXDNDManager * JXContainer::GetDNDManager ( ) const

◆ GetEnclosedObjects()

bool JXContainer::GetEnclosedObjects ( JPtrArrayIterator< JXContainer > **  iter) const
protected

Returns false if there are no enclosed objects.

Caller must jdelete the iterator.

◆ GetEnclosure()

JXContainer * JXContainer::GetEnclosure ( ) const
inline

◆ GetFontManager()

JFontManager * JXContainer::GetFontManager ( ) const

◆ GetFrame()

JRect JXContainer::GetFrame ( ) const
inline

◆ GetFrameForFTC()

JRect JXContainer::GetFrameForFTC ( ) const
protectedvirtual

By default, returns the frame.

Reimplemented in JXButton.

◆ GetFrameGlobal()

virtual JRect JXContainer::GetFrameGlobal ( ) const
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ GetFrameHeight()

JCoordinate JXContainer::GetFrameHeight ( ) const
inline

◆ GetFrameLocal()

JRect JXContainer::GetFrameLocal ( ) const
inline

◆ GetFrameWidth()

JCoordinate JXContainer::GetFrameWidth ( ) const
inline

◆ GetFTCLog()

std::ostream & JXContainer::GetFTCLog ( ) const
inlineprotected

◆ GetFTCMinContentSize()

JCoordinate JXContainer::GetFTCMinContentSize ( const bool  horizontal) const
protectedvirtual

◆ GetHint()

bool JXContainer::GetHint ( JString text) const

Returns true if this button has a hint.

◆ GetMenuManager()

JXMenuManager * JXContainer::GetMenuManager ( ) const

◆ GetSelectionManager()

JXSelectionManager * JXContainer::GetSelectionManager ( ) const

◆ GetVisibleRectGlobal()

bool JXContainer::GetVisibleRectGlobal ( const JRect origRectG,
JRect visRectG 
) const

Calculates the portion of the given rectangle that is actually visible, in global coords. Returns true if the visible rectangle is not empty.

◆ GetWindow()

JXWindow * JXContainer::GetWindow ( ) const
inline

◆ GetXFontManager()

JXFontManager * JXContainer::GetXFontManager ( ) const

◆ GlobalToLocal() [1/3]

virtual JPoint JXContainer::GlobalToLocal ( const JCoordinate  x,
const JCoordinate  y 
) const
pure virtual

Implemented in JXFTCCell, JXWidget, JXWindow, JXWidget, and JXWindow.

◆ GlobalToLocal() [2/3]

JPoint JXContainer::GlobalToLocal ( const JPoint pt) const
inline

◆ GlobalToLocal() [3/3]

JRect JXContainer::GlobalToLocal ( const JRect r) const

◆ HandleClientMessage()

bool JXContainer::HandleClientMessage ( const XClientMessageEvent &  clientMessage)
protectedvirtual

Derived class should return true if message was only for it.

◆ HandleDNDDrop()

void JXContainer::HandleDNDDrop ( const JPoint pt,
const JArray< Atom > &  typeList,
const Atom  action,
const Time  time,
const JXWidget source 
)
protectedvirtual

This is called when the data is dropped. The data is accessed via the selection manager, just like Paste.

Reimplemented in JXDirTable, JXDockWidget, JXFileListTable, JXFSInputBase, JXInputField, JXTEBase, JXToolBarButton, and JXWindowIcon.

◆ HandleDNDEnter()

void JXContainer::HandleDNDEnter ( )
protectedvirtual

This is called when the mouse enters the widget.

Reimplemented in JXFSInputBase, JXTEBase, and JXWindowIcon.

◆ HandleDNDHere()

void JXContainer::HandleDNDHere ( const JPoint pt,
const JXWidget source 
)
protectedvirtual

This is called while the mouse is inside the widget.

Reimplemented in JXFSInputBase, JXTabGroup, and JXTEBase.

◆ HandleDNDLeave()

void JXContainer::HandleDNDLeave ( )
protectedvirtual

This is called when the mouse leaves the widget without dropping data.

Reimplemented in JXDockWidget, JXFSInputBase, JXTEBase, and JXWindowIcon.

◆ HandleDNDScroll()

void JXContainer::HandleDNDScroll ( const JPoint pt,
const JXMouseButton  scrollButton,
const JXKeyModifiers modifiers 
)
protectedvirtual

This is called while the mouse is inside the widget, even if the widget does not currently accept the drop, because it might accept it after it is scrolled.

Normally, this should only be implemented by JXScrollableWidget.

Reimplemented in JXScrollableWidget, and JXTabGroup.

◆ HandleMouseDown()

void JXContainer::HandleMouseDown ( const JPoint pt,
const JXMouseButton  button,
const JSize  clickCount,
const JXButtonStates buttonStates,
const JXKeyModifiers modifiers 
)
protectedvirtual

◆ HandleMouseDrag()

void JXContainer::HandleMouseDrag ( const JPoint pt,
const JXButtonStates buttonStates,
const JXKeyModifiers modifiers 
)
protectedvirtual

◆ HandleMouseEnter()

void JXContainer::HandleMouseEnter ( )
protectedvirtual

Reimplemented in JXScrolltab, JXTEBase, and JXWindowIcon.

◆ HandleMouseHere()

void JXContainer::HandleMouseHere ( const JPoint pt,
const JXKeyModifiers modifiers 
)
protectedvirtual

Reimplemented in JXTabGroup, and JXTEBase.

◆ HandleMouseLeave()

void JXContainer::HandleMouseLeave ( )
protectedvirtual

Reimplemented in JXScrolltab, JXTabGroup, and JXTEBase.

◆ HandleMouseUp()

void JXContainer::HandleMouseUp ( const JPoint pt,
const JXMouseButton  button,
const JXButtonStates buttonStates,
const JXKeyModifiers modifiers 
)
protectedvirtual

◆ Hide()

void JXContainer::Hide ( )
virtual

Reimplemented in JXWindow.

◆ HideCursor()

void JXContainer::HideCursor ( )
protected

◆ HitSamePart()

bool JXContainer::HitSamePart ( const JPoint pt1,
const JPoint pt2 
) const
protectedvirtual

This default implementation always returns true.

Reimplemented in JXNamedTreeListWidget, JXTable, and JXTEBase.

◆ IncludeInFTC()

bool JXContainer::IncludeInFTC ( ) const
protectedvirtual

Return false to be ignored.

Reimplemented in JXMenu.

◆ IsActive()

bool JXContainer::IsActive ( ) const
inline

◆ IsAncestor()

bool JXContainer::IsAncestor ( JXContainer obj) const

Returns true if we are an ancestor of the given object.

◆ IsDNDSource()

bool JXContainer::IsDNDSource ( ) const
inline

◆ IsDNDTarget()

bool JXContainer::IsDNDTarget ( ) const
inline

◆ IsMenu()

bool JXContainer::IsMenu ( ) const
virtual

Reimplemented in JXMenu.

◆ IsMenuTable()

bool JXContainer::IsMenuTable ( ) const
virtual

Reimplemented in JXMenuTable.

◆ IsSuspended()

bool JXContainer::IsSuspended ( ) const
inline

◆ IsVisible()

bool JXContainer::IsVisible ( ) const
inline

◆ LocalToGlobal() [1/3]

virtual JPoint JXContainer::LocalToGlobal ( const JCoordinate  x,
const JCoordinate  y 
) const
pure virtual

Implemented in JXFTCCell, JXWidget, JXWindow, JXWidget, and JXWindow.

◆ LocalToGlobal() [2/3]

JPoint JXContainer::LocalToGlobal ( const JPoint pt) const
inline

◆ LocalToGlobal() [3/3]

JRect JXContainer::LocalToGlobal ( const JRect r) const

◆ Move()

virtual void JXContainer::Move ( const JCoordinate  dx,
const JCoordinate  dy 
)
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ NeedsInternalFTC()

bool JXContainer::NeedsInternalFTC ( ) const
protectedvirtual

Return true if the contents are a set of widgets that need to expand.

Reimplemented in JXDecorRect, JXRadioGroup, JXTabGroup, and JXWidgetSet.

◆ NotifyBoundsMoved()

void JXContainer::NotifyBoundsMoved ( const JCoordinate  dx,
const JCoordinate  dy 
)
protected

Tell all enclosed objects that our Bounds has moved.

◆ NotifyBoundsResized()

void JXContainer::NotifyBoundsResized ( const JCoordinate  dw,
const JCoordinate  dh 
)
protected

Tell all enclosed objects that our Bounds has changed size.

◆ Place()

virtual void JXContainer::Place ( const JCoordinate  enclX,
const JCoordinate  enclY 
)
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ Redraw()

virtual void JXContainer::Redraw ( ) const
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ Refresh()

virtual void JXContainer::Refresh ( ) const
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ RemoveCursorAnimator()

void JXContainer::RemoveCursorAnimator ( )
protected

Removes the current cursor animator and sets the cursor back to normal.

◆ Resume()

void JXContainer::Resume ( )
virtual

Reimplemented in JXMenu, JXTEBase, and JXWindow.

◆ RunInternalFTC()

bool JXContainer::RunInternalFTC ( const bool  horizontal,
JCoordinate newSize 
)
virtual

Expand and return new size.

Reimplemented in JXHorizPartition, and JXVertPartition.

◆ SetActive()

void JXContainer::SetActive ( const bool  active)
inline

◆ SetDefaultCursor()

void JXContainer::SetDefaultCursor ( const JCursorIndex  index)
protected

◆ SetHint()

void JXContainer::SetHint ( const JString text)

Set the hint for this button.

◆ SetSize()

virtual void JXContainer::SetSize ( const JCoordinate  w,
const JCoordinate  h 
)
pure virtual

Implemented in JXFTCCell, JXWidget, and JXWindow.

◆ SetVisible()

void JXContainer::SetVisible ( const bool  vis)
inline

◆ Show()

void JXContainer::Show ( )
virtual

Reimplemented in JXWindow.

◆ ShowCursor()

void JXContainer::ShowCursor ( )
protected

◆ StealMouse()

bool JXContainer::StealMouse ( const int  eventType,
const JPoint ptG,
const JXMouseButton  button,
const unsigned int  state 
)
protectedvirtual

Derived classes can override to grab a mouse down, preventing enclosed objects from getting it.

◆ Suspend()

void JXContainer::Suspend ( )
virtual

Reimplemented in JXMenu, and JXTEBase.

◆ TurnOnBufferedDrawing()

void JXContainer::TurnOnBufferedDrawing ( )
protected

◆ WillAcceptDrop()

bool JXContainer::WillAcceptDrop ( const JArray< Atom > &  typeList,
Atom *  action,
const JPoint pt,
const Time  time,
const JXWidget source 
)
protectedvirtual

Derived classes that accept drops should override this function and return true if they will accept the current drop. If they return false, they will not receive any DND messages.

source is non-nullptr if the drag is between widgets in the same program. This provides a way for compound documents to identify drags between their various parts.

Reimplemented in JXCharInput, JXDirTable, JXDockWidget, JXFileListTable, JXFSInputBase, JXTabGroup, JXTEBase, JXToolBarButton, and JXWindowIcon.

◆ WouldBeActive()

bool JXContainer::WouldBeActive ( ) const

◆ WouldBeVisible()

bool JXContainer::WouldBeVisible ( ) const

Friends And Related Symbol Documentation

◆ JXDNDManager

friend class JXDNDManager
friend

◆ JXFTCCell

friend class JXFTCCell
friend

◆ JXWindow

friend class JXWindow
friend

The documentation for this class was generated from the following files: