KDDockWidgets API Documentation 2.0
|
#include <ClassicIndicatorsWindow.h>
Public Member Functions | |
IndicatorWindow (Core::ClassicDropIndicatorOverlay *, Core::View *parent) | |
When we have proper multi-window support in flutter, we can remove the parent. | |
~IndicatorWindow () override | |
DropLocation | hover (Point globalPos) override |
virtual DropLocation | hover_flutter (Point globalPos) |
Core::Group * | hoveredGroup () const |
bool | isWindow () const override |
Point | posForIndicator (DropLocation) const override |
virtual Point | posForIndicator_flutter (DropLocation) const |
implemented in dart. workaround for multi-inheritance binding limitations | |
void | raise () override |
void | resize (Size) override |
Core::View * | rubberBand () const |
void | setGeometry (Rect) override |
void | setObjectName (const QString &) override |
void | setVisible (bool) override |
void | updatePositions () override |
virtual bool | updatePositions_flutter (int overlayWidth, int overlayHeight, Core::Group *hoveredGroup, int visibleLocations) |
Public Member Functions inherited from KDDockWidgets::flutter::View | |
View (Core::Controller *controller, Core::ViewType type, Core::View *, Qt::WindowFlags windowFlags={}) | |
~View () override | |
void | activateWindow () override |
std::shared_ptr< Core::View > | asWrapper () override |
Returns this view, but as a wrapper. | |
std::shared_ptr< Core::View > | childViewAt (Point p) const override |
Vector< std::shared_ptr< Core::View > > | childViews () const override |
@Returns a list of child views | |
bool | close () override |
void | enableAttribute (Qt::WidgetAttribute attr, bool enable=true) override |
Qt::WindowFlags | flags () const override |
Qt::FocusPolicy | focusPolicy () const override |
Rect | geometry () const override |
void | grabMouse () override |
Core::HANDLE | handle () const override |
Returns a handle for the GUI element This value only makes sense to the frontend. For example, for QtQuick it might be a QQuickItem, while for QtWidgets it's a QWidget. Can be whatever the frontend developer wants, as long as it uniquely identifies the GUI element. KDDW backend only uses it for comparison purposes. | |
bool | hasAttribute (Qt::WidgetAttribute attr) const override |
bool | hasFocus () const override |
void | hide () override |
bool | isActiveWindow () const override |
bool | isExplicitlyHidden () const override |
bool | isMaximized () const override |
bool | isMinimized () const override |
virtual bool | isMounted () const |
bool | isRootView () const override |
bool | isVisible () const override |
Point | mapFromGlobal (Point globalPt) const override |
Point | mapTo (Core::View *parent, Point pos) const override |
Point | mapToGlobal (Point localPt) const override |
Size | maxSizeHint () const override |
Size | minSize () const override |
void | move (int x, int y) override |
Rect | normalGeometry () const override |
virtual void | onChildAdded (Core::View *childView) |
virtual void | onChildRemoved (Core::View *childView) |
virtual void | onChildVisibilityChanged (Core::View *childView) |
bool | onFlutterWidgetResized (int w, int h) |
virtual void | onGeometryChanged () |
void | onMouseEvent (Event::Type eventType, Point localPos, Point globalPos, bool leftIsPressed) |
Called by flutter when a mouse event is received. | |
virtual void | onMousePress (MouseEvent *) |
View can override if it's interested in events which the event filter rejected. | |
virtual void | onRebuildRequested () |
Implemented in Dart. | |
std::shared_ptr< Core::View > | parentView () const override |
Returns the gui element's parent. Like QWidget::parentWidget() | |
void | raise () override |
void | raiseAndActivate () override |
virtual void | raiseChild (Core::View *childView) |
virtual void | raiseWindow (Core::View *rootView) |
void | releaseKeyboard () override |
void | releaseMouse () override |
void | render (QPainter *) override |
std::shared_ptr< Core::View > | rootView () const override |
Returns the top-level gui element which this view is inside It's the root view of the window. | |
void | setCursor (Qt::CursorShape shape) override |
void | setFixedHeight (int h) override |
void | setFixedWidth (int w) override |
void | setFlag (Qt::WindowType f, bool on=true) override |
void | setFocus (Qt::FocusReason reason) override |
void | setFocusPolicy (Qt::FocusPolicy policy) override |
void | setGeometry (Rect geometry) override |
void | setHeight (int h) override |
void | setMaximumSize (Size sz) override |
void | setMinimumSize (Size sz) override |
void | setMouseTracking (bool enable) override |
void | setNormalGeometry (Rect geo) |
void | setParent (Core::View *parent) override |
void | setSize (int w, int h) override |
void | setViewName (const QString &name) override |
Equivalent to Qt's QObject::objectProperty() | |
void | setVisible (bool visible) override |
void | setWidth (int w) override |
void | setWindowIcon (const Icon &icon) override |
void | setWindowOpacity (double v) override |
void | setWindowTitle (const QString &title) override |
void | setZOrder (int z) override |
Sets the z order Not supported on all platforms. | |
void | show () override |
void | showMaximized () override |
void | showMinimized () override |
void | showNormal () override |
void | update () override |
void | updateGeometry () |
QString | viewName () const override |
std::shared_ptr< Core::Window > | window () const override |
Returns the window this view is inside For the Qt frontend, this wraps a QWindow. Like QWidget::window() | |
Public Member Functions inherited from KDDockWidgets::Core::View | |
View (Controller *controller, ViewType) | |
template<typename T > | |
T * | asController () |
Returns the View's controller, casted as T. | |
Core::DockWidget * | asDockWidgetController () const |
Core::DropArea * | asDropAreaController () const |
Core::FloatingWindow * | asFloatingWindowController () const |
asFooController() are deprecated. Use asController<T>() instead | |
Core::Group * | asGroupController () const |
Core::Layout * | asLayout () const |
Core::MainWindow * | asMainWindowController () const |
Core::MDILayout * | asMDILayoutController () const |
Core::Stack * | asStackController () const |
Core::TabBar * | asTabBarController () const |
Core::TitleBar * | asTitleBarController () const |
Controller * | controller () const |
Returns this view's controller. | |
virtual void | createPlatformWindow () |
bool | deliverViewEventToFilters (Event *e) |
Delivers mouse events and such to event filters. | |
void | dumpDebug () |
Prints some debug to stderr. | |
bool | equals (const std::shared_ptr< View > &) const |
bool | equals (const View *other) const |
Returns whether this view represents the same GUI element as the other. | |
int | height () const |
bool | inDtor () const |
Returns whether the DTOR is currently running. freed() might be true while inDtor false, as the implementation of free() is free to delay it (with deleteLater() for example) | |
virtual void | init () |
void | installViewEventFilter (EventFilterInterface *) |
Installs an event filter in this view to intercept the event it receives Analogue to QObject::installEventFilter() in the Qt world. | |
virtual bool | is (ViewType) const |
Returns whether the view is of the specified type Virtual so it can be overridden by ViewWrapper. When we're wrapping an existing GUI element only the specific frontend can know what's the actual type. | |
virtual bool | isNull () const |
Returns whether the gui item represented by this view was already deleted Usually false, as KDDW internal gui elements inherit View, and nobody will access them after destruction. However, ViewWrapper derived classes, wrap an existing gui element, which might get deleted. Override isNull() in our ViewWrapper subclasses and return true if the wrapped gui element was already deleted. | |
int | minimumHeight () const |
int | minimumWidth () const |
void | move (Point) |
virtual bool | onFocusInEvent (FocusEvent *) |
virtual bool | onResize (int h, int w) |
bool | onResize (Size) |
Point | pos () const |
Rect | rect () const |
void | removeViewEventFilter (EventFilterInterface *) |
Removes the event filter. | |
void | resize (int w, int h) |
void | resize (Size) |
Size | screenSize () const |
Returns the size of the screen that this view belongs to. | |
void | setSize (Size) |
Size | size () const |
int | width () const |
int | x () const |
int | y () const |
Public Member Functions inherited from KDDockWidgets::Core::ClassicIndicatorWindowViewInterface | |
ClassicIndicatorWindowViewInterface ()=default | |
ClassicIndicatorWindowViewInterface (const ClassicIndicatorWindowViewInterface &)=delete | |
virtual | ~ClassicIndicatorWindowViewInterface () |
ClassicIndicatorWindowViewInterface & | operator= (const ClassicIndicatorWindowViewInterface &)=delete |
virtual void | updateIndicatorVisibility ()=0 |
Additional Inherited Members | |
Static Public Member Functions inherited from KDDockWidgets::Core::View | |
static bool | equals (const View *one, const View *two) |
static Controller * | firstParentOfType (View *view, ViewType) |
Returns the controller of the first parent view of the specified type Goes up the view hierarchy chain until it finds it. Returns nullptr otherwise. | |
static Size | hardcodedMinimumSize () |
The minimum minimum size a dock widget can have. | |
Public Attributes inherited from KDDockWidgets::Core::View | |
Private *const | d |
Protected Member Functions inherited from KDDockWidgets::Core::View | |
View (const View &)=delete | |
View & | operator= (const View &)=delete |
Protected Attributes inherited from KDDockWidgets::Core::View | |
Controller *const | m_controller |
bool | m_inDtor = false |
Definition at line 26 of file flutter/views/ClassicIndicatorsWindow.h.
|
explicit |
When we have proper multi-window support in flutter, we can remove the parent.
Definition at line 25 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::flutter::Platform::onDropIndicatorOverlayCreated(), and KDDockWidgets::flutter::Platform::platformFlutter().
|
override |
Definition at line 32 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::flutter::Platform::onDropIndicatorOverlayDestroyed(), and KDDockWidgets::flutter::Platform::platformFlutter().
|
overridevirtual |
Called when the mouse is dragging a window over a drop area The implementer should:
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 42 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::DropLocation_None, hover_flutter(), KDDockWidgets::flutter::View::isMounted(), KDDockWidgets::flutter::View::mapFromGlobal(), and updatePositions().
|
virtual |
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 107 of file flutter/views/ClassicIndicatorsWindow.cpp.
Referenced by hover().
Core::Group * IndicatorWindow::hoveredGroup | ( | ) | const |
Definition at line 96 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::Core::DropIndicatorOverlay::hoveredGroup().
Referenced by c_KDDockWidgets__flutter__IndicatorWindow__hoveredGroup().
|
overridevirtual |
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 91 of file flutter/views/ClassicIndicatorsWindow.cpp.
|
overridevirtual |
Returns the position for the specified drop indicator This is used by tests only, so we know where to drop a window The position is the center of the indicator and is in global coordinates
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 37 of file flutter/views/ClassicIndicatorsWindow.cpp.
References posForIndicator_flutter().
|
virtual |
implemented in dart. workaround for multi-inheritance binding limitations
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 101 of file flutter/views/ClassicIndicatorsWindow.cpp.
Referenced by posForIndicator().
|
overridevirtual |
If this view is a root view, then raises its window, otherwise, raises itself relatively to its siblings and does not raise its window
Implements KDDockWidgets::Core::View.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 62 of file flutter/views/ClassicIndicatorsWindow.cpp.
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raise(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raise_nocallback().
|
overridevirtual |
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 86 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::Core::View::resize(), and KDDockWidgets::Core::View::size().
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::resize(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::resize_nocallback().
Core::View * IndicatorWindow::rubberBand | ( | ) | const |
Definition at line 119 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::Core::ClassicDropIndicatorOverlay::rubberBand().
Referenced by c_KDDockWidgets__flutter__IndicatorWindow__rubberBand().
|
overridevirtual |
Implements KDDockWidgets::Core::View.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 67 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::flutter::View::setGeometry().
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setGeometry(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setGeometry_nocallback().
|
overridevirtual |
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 72 of file flutter/views/ClassicIndicatorsWindow.cpp.
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setObjectName(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setObjectName_nocallback().
|
overridevirtual |
Implements KDDockWidgets::Core::View.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 77 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::Core::View::is(), KDDockWidgets::flutter::View::isVisible(), KDDockWidgets::flutter::Platform::platformFlutter(), KDDockWidgets::flutter::Platform::rebuildWindowOverlay(), and KDDockWidgets::flutter::View::setVisible().
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setVisible(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::setVisible_nocallback().
|
overridevirtual |
Called by the framework to updates the position of the individual drop indicators This function is called when the drag first starts and also if the window resizes itself (unlikely during drag though) The implementer should:
Implements KDDockWidgets::Core::ClassicIndicatorWindowViewInterface.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 54 of file flutter/views/ClassicIndicatorsWindow.cpp.
References KDDockWidgets::Core::DropIndicatorOverlay::hoveredGroup(), KDDockWidgets::Core::View::size(), and updatePositions_flutter().
Referenced by hover(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::updatePositions(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::updatePositions_nocallback().
|
virtual |
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper.
Definition at line 113 of file flutter/views/ClassicIndicatorsWindow.cpp.
Referenced by updatePositions().