KDDockWidgets API Documentation 2.1
|
#include <SegmentedDropIndicatorOverlay.h>
Public Member Functions | |
SegmentedDropIndicatorOverlay (Core::DropArea *dropArea) | |
~SegmentedDropIndicatorOverlay () override | |
DropLocation | dropLocationForPos (Point pos) const |
DropLocation | hover_impl (Point globalPos) override |
Point | hoveredPt () const |
const std::unordered_map< DropLocation, Polygon > & | segments () const |
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. | |
virtual void | setCurrentDropLocation (DropLocation) |
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 |
Static Public Attributes | |
static int | s_centralIndicatorMaxHeight = 160 |
static int | s_centralIndicatorMaxWidth = 300 |
static double | s_draggedWindowOpacity = 0.7 |
static int | s_segmentGirth = 50 |
static int | s_segmentPenWidth = 4 |
Protected Member Functions | |
Point | posForIndicator (DropLocation) const override |
returns the position of the specified drop location The return is in global coordinates | |
Protected Member Functions inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
virtual void | onHoveredGroupChanged (Group *) |
virtual void | updateVisibility () |
Protected Member Functions inherited from KDDockWidgets::Core::Controller | |
virtual void | setParentView_impl (View *parent) |
Additional Inherited Members | |
Static Public Member Functions inherited from KDDockWidgets::Core::DropIndicatorOverlay | |
static KDDockWidgets::Location | multisplitterLocationFor (DropLocation) |
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 23 of file core/indicators/SegmentedDropIndicatorOverlay.h.
|
explicit |
Definition at line 29 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
References s_draggedWindowOpacity, KDDockWidgets::Config::self(), and KDDockWidgets::Config::setDraggedWindowOpacity().
|
overridedefault |
DropLocation SegmentedDropIndicatorOverlay::dropLocationForPos | ( | Point | pos | ) | const |
Definition at line 52 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
References KDDockWidgets::DropLocation_None, Qt::OddEvenFill, and KDDockWidgets::Core::Controller::pos().
Referenced by hover_impl().
|
overridevirtual |
Implements KDDockWidgets::Core::DropIndicatorOverlay.
Definition at line 43 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
References KDDockWidgets::Core::DropIndicatorOverlay::currentDropLocation(), dropLocationForPos(), KDDockWidgets::Core::View::mapFromGlobal(), KDDockWidgets::Core::DropIndicatorOverlay::setCurrentDropLocation(), and KDDockWidgets::Core::Controller::view().
Point SegmentedDropIndicatorOverlay::hoveredPt | ( | ) | const |
Definition at line 167 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
|
overrideprotectedvirtual |
returns the position of the specified drop location The return is in global coordinates
Implements KDDockWidgets::Core::DropIndicatorOverlay.
Definition at line 161 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
const std::unordered_map< DropLocation, Polygon > & SegmentedDropIndicatorOverlay::segments | ( | ) | const |
Definition at line 172 of file core/indicators/SegmentedDropIndicatorOverlay.cpp.
|
static |
Definition at line 38 of file core/indicators/SegmentedDropIndicatorOverlay.h.
|
static |
Definition at line 37 of file core/indicators/SegmentedDropIndicatorOverlay.h.
|
static |
Definition at line 39 of file core/indicators/SegmentedDropIndicatorOverlay.h.
Referenced by SegmentedDropIndicatorOverlay().
|
static |
Definition at line 35 of file core/indicators/SegmentedDropIndicatorOverlay.h.
|
static |
Definition at line 36 of file core/indicators/SegmentedDropIndicatorOverlay.h.