KDDockWidgets API Documentation 2.1
|
#include <ClassicDropIndicatorOverlay.h>
Public Member Functions | |
ClassicDropIndicatorOverlay (Core::DropArea *dropArea) | |
~ClassicDropIndicatorOverlay () override | |
DropLocation | hover_impl (Point globalPos) override |
Core::ClassicIndicatorWindowViewInterface * | indicatorWindow () const |
bool | onResize (Size newSize) |
Point | posForIndicator (DropLocation) const override |
returns the position of the specified drop location The return is in global coordinates | |
View * | rubberBand () const |
void | setCurrentDropLocation (DropLocation) override |
void | updateVisibility () override |
Public Member Functions inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
DropIndicatorOverlay (DropArea *dropArea) | |
DropIndicatorOverlay (DropArea *dropArea, View *view) | |
~DropIndicatorOverlay () override | |
DropLocation | currentDropLocation () const |
Private * | dptr () const |
virtual bool | dropIndicatorVisible (DropLocation) const |
Returns whether the specified drop indicator should be visible. | |
KDDockWidgets::DropLocation | hover (Point globalPos) |
Group * | hoveredGroup () const |
Rect | hoveredGroupRect () const |
bool | isHovered () const |
void | removeHover () |
Clears and hides drop indicators. | |
void | setHoveredGroup (Group *) |
void | setWindowBeingDragged (bool) |
Public Member Functions inherited from KDDockWidgets::Core::Controller | |
Controller (ViewType type, View *) | |
virtual | ~Controller () |
bool | close () |
void | destroyLater () |
Controller::Private * | dptr () const |
Rect | geometry () const |
int | height () const |
bool | inDtor () const |
bool | is (ViewType) const |
Returns whether this controller is of the specified type. | |
bool | isFixedHeight () const |
bool | isFixedWidth () const |
bool | isVisible () const |
Point | mapToGlobal (Point) const |
Point | pos () const |
Rect | rect () const |
void | setParentView (View *parent) |
void | setVisible (bool) |
void | show () const |
Size | size () const |
ViewType | type () const |
Returns the type of this controller. | |
View * | view () const |
Returns the view associated with this controller, if any. | |
int | width () const |
std::shared_ptr< View > | window () const |
int | x () const |
int | y () const |
Additional Inherited Members | |
Static Public Member Functions inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
static KDDockWidgets::Location | multisplitterLocationFor (DropLocation) |
Protected Member Functions inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
virtual void | onHoveredGroupChanged (Group *) |
Protected Member Functions inherited from KDDockWidgets::Core::Controller | |
virtual void | setParentView_impl (View *parent) |
Protected Attributes inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
bool | m_draggedWindowIsHovering = false |
DropArea *const | m_dropArea |
Group * | m_hoveredGroup = nullptr |
Protected Attributes inherited from KDDockWidgets::Core::Controller | |
bool | m_inDtor = false |
Definition at line 24 of file ClassicDropIndicatorOverlay.h.
|
explicit |
Definition at line 38 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::View::setVisible(), and KDDockWidgets::Core::View::setWindowOpacity().
|
override |
Definition at line 49 of file ClassicDropIndicatorOverlay.cpp.
|
overridevirtual |
Implements KDDockWidgets::Core::DropIndicatorOverlay.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper.
Definition at line 54 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::hover().
Core::ClassicIndicatorWindowViewInterface * ClassicDropIndicatorOverlay::indicatorWindow | ( | ) | const |
Definition at line 85 of file ClassicDropIndicatorOverlay.cpp.
Referenced by c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__indicatorWindow().
bool ClassicDropIndicatorOverlay::onResize | ( | Size | newSize | ) |
Definition at line 64 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::resize(), KDDockWidgets::Core::Controller::size(), and KDDockWidgets::Core::Controller::window().
Referenced by c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__onResize_Size().
|
overridevirtual |
returns the position of the specified drop location The return is in global coordinates
Implements KDDockWidgets::Core::DropIndicatorOverlay.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper.
Definition at line 59 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::posForIndicator().
View * ClassicDropIndicatorOverlay::rubberBand | ( | ) | const |
Definition at line 207 of file ClassicDropIndicatorOverlay.cpp.
Referenced by c_KDDockWidgets__Core__ClassicDropIndicatorOverlay__rubberBand(), and KDDockWidgets::flutter::IndicatorWindow::rubberBand().
|
overridevirtual |
Reimplemented from KDDockWidgets::Core::DropIndicatorOverlay.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper.
Definition at line 119 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::DropLocation_Bottom, KDDockWidgets::DropLocation_Center, KDDockWidgets::DropLocation_Left, KDDockWidgets::DropLocation_None, KDDockWidgets::DropLocation_OutterBottom, KDDockWidgets::DropLocation_OutterLeft, KDDockWidgets::DropLocation_OutterRight, KDDockWidgets::DropLocation_OutterTop, KDDockWidgets::DropLocation_Right, KDDockWidgets::DropLocation_Top, KDDockWidgets::Core::View::geometry(), KDDockWidgets::Core::DropIndicatorOverlay::isHovered(), KDDockWidgets::Core::Layout::itemForGroup(), KDDockWidgets::Core::Layout::items(), locationToMultisplitterLocation(), KDDockWidgets::Core::DropIndicatorOverlay::m_dropArea, KDDockWidgets::Core::DropIndicatorOverlay::m_hoveredGroup, KDDockWidgets::Core::View::raise(), KDDockWidgets::Core::Controller::rect(), KDDockWidgets::Core::DropArea::rectForDrop(), KDDockWidgets::Core::DropIndicatorOverlay::setCurrentDropLocation(), KDDockWidgets::Core::View::setGeometry(), KDDockWidgets::Core::View::setVisible(), and KDDockWidgets::Core::Controller::view().
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::setCurrentDropLocation(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::setCurrentDropLocation_nocallback().
|
overridevirtual |
Reimplemented from KDDockWidgets::Core::DropIndicatorOverlay.
Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper.
Definition at line 70 of file ClassicDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::DropIndicatorOverlay::isHovered(), KDDockWidgets::Core::View::setVisible(), KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::setVisible(), KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::updateIndicatorVisibility(), and KDDockWidgets::Core::ClassicIndicatorWindowViewInterface::updatePositions().
Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::updateVisibility(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::ClassicDropIndicatorOverlay_wrapper::updateVisibility_nocallback().