|
|
| Popup () |
| | Creates a detached borderless popup.
|
| |
|
virtual | ~Popup () |
| | Destroys the popup.
|
| |
|
Widget * | anchor () |
| | Returns the anchor widget, or 0 when none is set.
|
| |
| void | setAnchor (Widget *anchor=0) |
| | Relates this popup to anchor for popup input handling. More...
|
| |
| void | setParent (WindowManager &parent) |
| | Attaches the window to parent. More...
|
| |
| void | unparent () |
| | Detaches the window from its current manager. More...
|
| |
|
WindowManager * | windowManager () |
| | Returns the current non-owning window manager, or null.
|
| |
|
const WindowManager * | windowManager () const |
| | Returns the current non-owning window manager, or null.
|
| |
| WindowFrame * | frame () |
| | Returns the internal frame that presents the window, or null. More...
|
| |
|
const WindowFrame * | frame () const |
| | Returns the internal frame that presents the window, or null.
|
| |
| void | getBitmap (Gfx::Bitmap &bitmap) const |
| | Copies the complete window content into bitmap. More...
|
| |
| void | getBitmap (Gfx::Bitmap &bitmap, const Gfx::RectF &rect) const |
| | Copies a window content rectangle into bitmap. More...
|
| |
| void | autoCenter () |
| | Centers the window in its manager's available area. More...
|
| |
| void | autoSize (const SizePolicy &policy) |
| | Enables automatic sizing with policy. More...
|
| |
|
void | autoSize () |
| | Enables automatic sizing with preferred width and height.
|
| |
|
Type | type () const |
| | Returns the type selected when the window was created.
|
| |
|
const Gfx::Image & | icon () const |
| | Returns the window icon.
|
| |
| void | setIcon (const Gfx::Image &icon) |
| | Sets the window icon to a copy of icon. More...
|
| |
|
const std::string & | title () const |
| | Returns the window title.
|
| |
| void | setTitle (const std::string &title) |
| | Sets the window title to title. More...
|
| |
|
bool | isAbove () const |
| | Returns whether the window requests manager-relative stacking.
|
| |
| void | setAbove (bool above) |
| | Changes the manager-relative stacking preference to above. More...
|
| |
|
bool | isActive () const |
| | Returns the current locally stored activation state.
|
| |
|
WindowState | state () const |
| | Returns the requested window state.
|
| |
| void | setState (const WindowState &state) |
| | Sets the requested window state to state. More...
|
| |
| void | showModal () |
| | Runs the window as a modal dialog until it closes. More...
|
| |
|
bool | isClosed () const |
| | Returns whether a close event has completed the close transition.
|
| |
| void | close () |
| | Requests that the current frame close the window. More...
|
| |
|
Signal & | closed () |
| | Returns the signal sent after the close transition completes.
|
| |
| bool | acceptsInput () const |
| | Returns whether the window accepts pointer, touch, scroll, and keyboard input. More...
|
| |
|
const Gfx::Brush & | background () const |
| | Returns the background override or the application background.
|
| |
|
void | setBackground (const Gfx::Brush &background) |
| | Copies background as the window background and invalidates it.
|
| |
|
Control * | content () |
| | Returns the current content control, or 0 when none is attached.
|
| |
|
const Control * | content () const |
| | Returns the current content control, or 0 when none is attached.
|
| |
| void | setContent (Control *control) |
| | Replaces the content root with control. More...
|
| |
| Gfx::SizeF | measure (const SizePolicy &policy) |
| | Measures the preferred content size for policy. More...
|
| |
| void | relayout () |
| | Queues a layout pass while the form is connected. More...
|
| |
|
Control * | focusControl () |
| | Returns the focused control, or 0 when no control has focus.
|
| |
| void | focusNext () |
| | Moves focus to the next eligible control. More...
|
| |
| void | focusPrev () |
| | Moves focus to the previous eligible control. More...
|
| |
| Gfx::PointF | toControl (const Control &control, const Gfx::PointF &pos) const |
| | Converts pos from this view to control coordinates. More...
|
| |
| Gfx::PointF | fromControl (const Control &control, const Gfx::PointF &pos) const |
| | Converts pos from control to this view coordinates. More...
|
| |
| PaintSurface & | surface () |
| | Returns this view's local paint-surface adapter. More...
|
| |
|
const PaintSurface & | surface () const |
| | Returns this view's local paint-surface adapter.
|
| |
| void | setSurface (PaintSurface *surface, const Gfx::PointF &pos=Gfx::PointF()) |
| | Assigns the surface on which this view displays its controls. More...
|
| |
|
Pt::uint64_t | id () const |
| | Returns the application-unique ID of this live widget.
|
| |
|
const std::string & | name () const |
| | Returns the optional name.
|
| |
|
void | setName (const std::string &n) |
| | Sets the optional name immediately.
|
| |
| void | setNextResponder (Responder *r) |
| | Sets the next responder for unhandled input. More...
|
| |
|
bool | isConnected () const |
| | Returns true when the widget is connected to a screen.
|
| |
|
Screen * | screen () |
| | Returns the connected screen, or 0 when disconnected.
|
| |
|
const Screen * | screen () const |
| | Returns the connected screen, or 0 when disconnected.
|
| |
|
Widget * | parent () |
| | Returns the non-owning parent, or 0 when unparented.
|
| |
|
const Widget * | parent () const |
| | Returns the non-owning parent, or 0 when unparented.
|
| |
|
bool | isDescendantOf (const Widget &top) const |
| | Returns true when this widget is a strict descendant of top.
|
| |
|
bool | isAncestorOf (const Widget &child) const |
| | Returns true when this widget is a strict ancestor of child.
|
| |
| Widget * | hitTest (const Gfx::PointF &pos) |
| | Returns the descendant hit at local position pos. More...
|
| |
|
Gfx::PointF | toParent (const Gfx::PointF &pos) const |
| | Converts local position pos to parent coordinates.
|
| |
|
Gfx::PointF | fromParent (const Gfx::PointF &pos) const |
| | Converts parent position pos to local coordinates.
|
| |
| Gfx::PointF | toGlobal (const Gfx::PointF &pos) const |
| | Converts local position pos to global coordinates. More...
|
| |
| Gfx::PointF | fromGlobal (const Gfx::PointF &pos) const |
| | Converts global position pos to local coordinates. More...
|
| |
| void | addPeer (Widget &peer) |
| | Adds a bidirectional, non-owning peer association with peer. More...
|
| |
| void | removePeer (Widget &peer) |
| | Removes the bidirectional peer association with peer. More...
|
| |
| void | invalidate () |
| | Queues a coalesced invalidation. More...
|
| |
| virtual void | repaint (const Gfx::RectF &rect) |
| | Requests repainting local dirty rectangle rect. More...
|
| |
|
virtual void | repaint () |
| | Requests repainting the complete local bounds.
|
| |
|
double | scaleFactor () const |
| | Returns the current logical-to-device scale factor.
|
| |
|
const Gfx::Scaling & | scaling () const |
| | Returns the current logical-to-device scaling.
|
| |
|
bool | isVisible () const |
| | Returns whether the last show event made the widget visible.
|
| |
| virtual void | show (bool b=true) |
| | Requests that the widget be shown or hidden. More...
|
| |
|
bool | isEnabled () const |
| | Returns whether the last enable event made the widget enabled.
|
| |
| virtual void | enable (bool isEnable=true) |
| | Requests that the widget be enabled or disabled. More...
|
| |
| void | activate (bool active=true) |
| | Requests that the widget become active or inactive. More...
|
| |
|
const Gfx::PointF & | position () const |
| | Returns the position in parent logical coordinates.
|
| |
| virtual void | move (const Gfx::PointF &pos) |
| | Requests a new parent-local position pos. More...
|
| |
|
const Gfx::SizeF & | size () const |
| | Returns the size in local logical coordinates.
|
| |
|
const Gfx::RectF & | bounds () const |
| | Returns local bounds, whose origin is always local zero.
|
| |
| const Gfx::SizeF & | minimumSize () const |
| | Returns the locally stored minimum size. More...
|
| |
| void | setMinimumSize (const Gfx::SizeF &s) |
| | Sets the local minimum size and notifies the size-limit hook. More...
|
| |
|
void | setMinimumSize (double w, double h) |
| | Sets the local minimum width and height.
|
| |
|
void | setMinimumWidth (double w) |
| | Sets the local minimum width.
|
| |
|
void | setMinimumHeight (double h) |
| | Sets the local minimum height.
|
| |
| const Gfx::SizeF & | maximumSize () const |
| | Returns the locally stored maximum size. More...
|
| |
| void | setMaximumSize (const Gfx::SizeF &s) |
| | Sets the local maximum size and notifies the size-limit hook. More...
|
| |
|
void | setMaximumSize (double w, double h) |
| | Sets the local maximum width and height.
|
| |
|
void | setMaximumWidth (double w) |
| | Sets the local maximum width.
|
| |
|
void | setMaximumHeight (double h) |
| | Sets the local maximum height.
|
| |
| virtual void | resize (const Gfx::SizeF &s) |
| | Requests a new local size s. More...
|
| |
| void | setCapture (bool capture) |
| | Requests pointer input capture or release. More...
|
| |
| const Cursor * | cursor () const |
| | Returns this widget's cursor or the default cursor. More...
|
| |
| void | setCursor (const Cursor *c) |
| | Sets a local cursor override. More...
|
| |
| void | processEvent (const Pt::Event &ev) |
| | Processes ev through this widget's event dispatcher. More...
|
| |
| Pt::Signal< const Pt::Event & > & | eventReceived () |
| | Returns the event dispatcher signal. More...
|
| |
| bool | mouseEvent (const MouseEvent &ev) |
| | Delivers ev along the mouse responder chain. More...
|
| |
| void | touchEvent (const TouchEvent &ev) |
| | Delivers ev along the touch responder chain. More...
|
| |
|
void | scrollEvent (const ScrollEvent &ev) |
| | Delivers ev along the scroll responder chain.
|
| |
|
void | enterEvent (const EnterEvent &ev) |
| | Delivers ev along the enter responder chain.
|
| |
|
void | leaveEvent (const LeaveEvent &ev) |
| | Delivers ev along the leave responder chain.
|
| |
|
void | keyEvent (const KeyEvent &ev) |
| | Delivers ev along the key responder chain.
|
| |
|
| virtual void | onAttachPeer (Widget &peer) |
| | Attaches non-owning peer peer. More...
|
| |
| virtual void | onDetachPeer (Widget &peer) |
| | Detaches non-owning peer peer. More...
|
| |
|
virtual void | onShowEvent (const ShowEvent &ev) |
| | Processes event and invalidates the window.
|
| |
|
virtual void | onCloseEvent (const CloseEvent &ev) |
| | Hides, detaches, closes, and sends closed().
|
| |
|
virtual void | onProcessMouseEvent (const MouseEvent &ev) |
| | Routes event when the window accepts input.
|
| |
|
virtual void | onProcessTouchEvent (const TouchEvent &ev) |
| | Routes event when the window accepts input.
|
| |
|
virtual Gfx::SizeF | onProcessMeasure () |
| | Updates automatic sizing and performs the standard measurement.
|
| |
|
virtual void | onProcessLayout (const Gfx::RectF &rect) |
| | Applies automatic sizing and performs the standard layout.
|
| |
|
virtual Gfx::SizeF | onMeasure (const SizePolicy &policy) |
| | Measures the content with policy.
|
| |
|
virtual void | onLayout (const Gfx::RectF &rect) |
| | Lays out the content in rect.
|
| |
| virtual void | onConnect (Screen &screen) |
| | Connects the window and applies its stored frame configuration. More...
|
| |
|
virtual void | onDisconnect () |
| | Disconnects the window form from its screen.
|
| |
| virtual Widget * | onHitTest (const Gfx::PointF &point) |
| | Finds the deepest visible widget at point. More...
|
| |
|
virtual Gfx::PointF | onToParent (const Gfx::PointF &pos) const |
| | Converts window coordinates pos to parent coordinates.
|
| |
|
virtual Gfx::PointF | onFromParent (const Gfx::PointF &pos) const |
| | Converts parent coordinates pos to window coordinates.
|
| |
|
virtual void | onProcessEvent (const Pt::Event &ev) |
| | Dispatches event through the standard form event path.
|
| |
|
virtual void | onRequestRepaint (const Gfx::RectF &rect) |
| | Requests repainting rect from the current frame.
|
| |
|
virtual void | onRequestEnable (bool enabled) |
| | Stores and forwards the enabled request enabled.
|
| |
|
virtual void | onRequestActivate (bool active) |
| | Stores and forwards the activation request active.
|
| |
| virtual void | onRequestShow (bool shown) |
| | Stores the visibility request shown and presents the window. More...
|
| |
| virtual void | onRequestMove (const Gfx::PointF &pos) |
| | Records and forwards a normal-state move request to pos. More...
|
| |
|
virtual void | onRequestResize (const Gfx::SizeF &size) |
| | Records and forwards a normal-state resize request to size.
|
| |
|
virtual void | onSetSizeLimits (const Gfx::SizeF &minSize, const Gfx::SizeF &maxSize) |
| | Applies and forwards the size limits to the current frame.
|
| |
|
virtual void | onInvalidateEvent (const InvalidateEvent &ev) |
| | Processes an invalidation event through the standard form path.
|
| |
|
virtual void | onInvalidate () |
| | Updates the cached background and repaints the complete window.
|
| |
|
virtual void | onProcessPaintEvent (const PaintEvent &event) |
| | Paints a visible, non-empty dirty region from event.
|
| |
|
virtual void | onPaint (PaintContext &context, const Gfx::RectF &rect) |
| | Fills rect with the current window background.
|
| |
|
virtual void | onProcessRescaleEvent (const RescaleEvent &ev) |
| | Processes a scale event through the standard form path.
|
| |
|
virtual void | onRescaleEvent (const RescaleEvent &ev) |
| | Handles a scale event after standard form processing.
|
| |
|
virtual void | onRescale (double scaling) |
| | Updates scaling and realigns normal-state window geometry.
|
| |
|
virtual void | onProcessMoveEvent (const MoveEvent &ev) |
| | Processes a move event through the standard form path.
|
| |
|
virtual void | onMoveEvent (const MoveEvent &ev) |
| | Updates move state without repainting the window surface.
|
| |
|
virtual void | onProcessResizeEvent (const ResizeEvent &ev) |
| | Processes a resize event through the standard form path.
|
| |
|
virtual void | onResizeEvent (const ResizeEvent &ev) |
| | Updates resize state and the requested window size.
|
| |
|
virtual void | onProcessShowEvent (const ShowEvent &ev) |
| | Processes a visibility event through the standard form path.
|
| |
|
virtual void | onShow (bool visible) |
| | Updates the visible state to visible.
|
| |
|
virtual void | onProcessEnableEvent (const EnableEvent &ev) |
| | Processes an enabled event without enabling against a disable request.
|
| |
|
virtual void | onEnableEvent (const EnableEvent &ev) |
| | Handles an enabled event through the standard form path.
|
| |
|
virtual void | onEnable (bool enabled) |
| | Updates the enabled state to enabled and invalidates the window.
|
| |
|
virtual void | onProcessActivateEvent (const ActivateEvent &event) |
| | Dispatches event to onActivateEvent().
|
| |
|
virtual void | onActivateEvent (const ActivateEvent &event) |
| | Updates the active state from event.
|
| |
|
virtual void | onProcessWindowStateEvent (const WindowStateEvent &event) |
| | Dispatches event to onWindowStateEvent().
|
| |
|
virtual void | onWindowStateEvent (const WindowStateEvent &event) |
| | Updates the window state from event.
|
| |
|
virtual void | onProcessCloseEvent (const CloseEvent &event) |
| | Dispatches event to onCloseEvent().
|
| |
|
virtual void | onProcessScrollEvent (const ScrollEvent &event) |
| | Routes event when the window accepts input.
|
| |
|
virtual void | onProcessEnterEvent (const EnterEvent &event) |
| | Routes the pointer-entry event.
|
| |
|
virtual void | onProcessLeaveEvent (const LeaveEvent &event) |
| | Routes the pointer-leave event.
|
| |
|
virtual void | onProcessKeyEvent (const KeyEvent &event) |
| | Routes event when the window accepts input.
|
| |
|
virtual bool | onMouseEvent (const MouseEvent &ev) |
| | Handles a mouse event and returns whether it was consumed.
|
| |
|
virtual bool | onTouchEvent (const TouchEvent &ev) |
| | Handles a touch event and returns whether it was consumed.
|
| |
|
virtual bool | onScrollEvent (const ScrollEvent &ev) |
| | Handles a scroll event and returns whether it was consumed.
|
| |
|
virtual bool | onKeyEvent (const KeyEvent &ev) |
| | Handles a key event and returns whether it was consumed.
|
| |
|
virtual bool | onEnterEvent (const EnterEvent &ev) |
| | Restores the default cursor, handles the event, and returns consumption.
|
| |
|
virtual bool | onLeaveEvent (const LeaveEvent &ev) |
| | Handles a pointer-leave event and returns whether it was consumed.
|
| |
|
virtual void | onRequestRelayout () |
| | Queues the layout event for a requested layout pass.
|
| |
| virtual void | onProcessLayoutEvent (const LayoutEvent &ev) |
| | Processes a queued layout event. More...
|
| |
|
virtual void | onAddElement (Control &control) |
| | Registers control for focus traversal, shortcuts, and mnemonics.
|
| |
|
virtual void | onRemoveElement (Control &control) |
| | Removes control from focus traversal, shortcuts, and mnemonics.
|
| |
|
virtual void | onSetFocusPolicy (Control &control, FocusPolicy policy) |
| | Updates focus after control changes to policy.
|
| |
|
virtual void | onSetFocusIndex (Control &control, unsigned index) |
| | Updates the focus order after control changes its focus index.
|
| |
| virtual void | onSetFocus (Control &control) |
| | Gives focus to control and sends the corresponding focus events. More...
|
| |
|
virtual void | onSetShortcut (Control &control, const std::vector< Key > &keys) |
| | Replaces the shortcut registrations for control with keys.
|
| |
|
virtual void | onSetMnemonic (Control &control, const std::vector< Char > &chs) |
| | Replaces the mnemonic registrations for control with chs.
|
| |
|
virtual void | onSetSurface (PaintSurface *surface, const Gfx::PointF &pos) |
| | Assigns the paint surface and translates it to the content root.
|
| |
|
virtual void | onAttach (Control &control) |
| | Handles attachment of control to this form.
|
| |
|
virtual void | onDetach (Control &control) |
| | Handles detachment of control from this form.
|
| |
|
virtual void | onInit (Control &control) |
| | Connects control to this form's screen and responder chain.
|
| |
|
virtual void | onRelease (Control &control) |
| | Disconnects control from this form's screen and responder chain.
|
| |
|
virtual Gfx::PointF | onToControl (const Control &control, const Gfx::PointF &pos) const |
| | Converts form-local pos to coordinates local to control.
|
| |
|
virtual Gfx::PointF | onFromControl (const Control &control, const Gfx::PointF &pos) const |
| | Converts coordinates local to control into form-local pos.
|
| |
|
virtual void | onRepaintRequest (Control &control, const Gfx::RectF &rect) |
| | Translates a repaint request from control to form coordinates.
|
| |
|
virtual void | onRelayoutRequest (Control &control) |
| | Queues a form layout after a request from control.
|
| |
| virtual void | onEnableRequest (Control &control, bool isEnable) |
| | Delivers an effective enable state to control. More...
|
| |
| virtual void | onActivateRequest (Control &control, bool active) |
| | Makes control the active input target when active is true. More...
|
| |
|
virtual void | onShowRequest (Control &control, bool isShown) |
| | Delivers a visibility request to control.
|
| |
|
virtual void | onMoveRequest (Control &control, const Gfx::PointF &pos) |
| | Aligns and commits a move request for control.
|
| |
|
virtual void | onResizeRequest (Control &control, const Gfx::SizeF &size) |
| | Aligns and commits a resize request for control.
|
| |
| virtual void | onRaiseRequest (Control &control) |
| | Receives a request to raise control. More...
|
| |
|
virtual void | onRequestCapture (bool capture) |
| | Forwards a pointer capture request to the Forms application.
|
| |
| virtual void | onPaintEvent (const PaintEvent &ev) |
| | Paints the form's own view content. More...
|
| |
|
const std::map< Key, Control * > & | shortcuts () const |
| | Returns the shortcut-to-control registrations for this form.
|
| |
|
const std::map< Pt::Char, Control * > & | mnemonics () const |
| | Returns the mnemonic-to-control registrations for this form.
|
| |
| virtual void | onSetParent (Widget *parent) |
| | Records the non-owning parent relationship. More...
|
| |
| virtual Gfx::PointF | onToGlobal (const Gfx::PointF &pos) const |
| | Converts local position pos to global coordinates. More...
|
| |
| virtual Gfx::PointF | onFromGlobal (const Gfx::PointF &pos) const |
| | Converts global position pos to local coordinates. More...
|
| |
|
virtual void | onProcessInvalidateEvent (const InvalidateEvent &ev) |
| | Coalesces and dispatches an invalidation event.
|
| |
|
virtual Responder * | onNextResponder () |
| | Returns the non-owning next responder, or 0.
|
| |
|
virtual bool | onMousePress (const MouseEvent &ev) |
| | Handles a mouse press. The default returns false.
|
| |
|
virtual bool | onMouseRelease (const MouseEvent &ev) |
| | Handles a mouse release. The default returns false.
|
| |
|
virtual bool | onMouseMove (const MouseEvent &ev) |
| | Handles a mouse move. The default returns false.
|
| |
A Popup is a Window shown for a short interaction such as a menu. setAnchor() relates it to the widget that opened it for popup input handling. The anchor does not position or size the popup. Move, size, raise, and show it explicitly.