KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
KDDockWidgets::Core::SegmentedDropIndicatorOverlay Class Reference

#include <SegmentedDropIndicatorOverlay.h>

Inheritance diagram for KDDockWidgets::Core::SegmentedDropIndicatorOverlay:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgets::Core::SegmentedDropIndicatorOverlay:
Collaboration graph
[legend]

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)
 
GrouphoveredGroup () 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.
 
Viewview () const
 Returns the view associated with this controller, if any.
 
int width () const
 
std::shared_ptr< Viewwindow () 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
 
Groupm_hoveredGroup = nullptr
 
- Protected Attributes inherited from KDDockWidgets::Core::Controller
bool m_inDtor = false
 

Detailed Description

Definition at line 23 of file core/indicators/SegmentedDropIndicatorOverlay.h.

Constructor & Destructor Documentation

◆ SegmentedDropIndicatorOverlay()

SegmentedDropIndicatorOverlay::SegmentedDropIndicatorOverlay ( Core::DropArea dropArea)
explicit

◆ ~SegmentedDropIndicatorOverlay()

SegmentedDropIndicatorOverlay::~SegmentedDropIndicatorOverlay ( )
overridedefault

Member Function Documentation

◆ dropLocationForPos()

DropLocation SegmentedDropIndicatorOverlay::dropLocationForPos ( Point  pos) const

◆ hover_impl()

DropLocation SegmentedDropIndicatorOverlay::hover_impl ( Point  globalPos)
overridevirtual

◆ hoveredPt()

Point SegmentedDropIndicatorOverlay::hoveredPt ( ) const

◆ posForIndicator()

Point SegmentedDropIndicatorOverlay::posForIndicator ( DropLocation  ) const
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.

◆ segments()

const std::unordered_map< DropLocation, Polygon > & SegmentedDropIndicatorOverlay::segments ( ) const

Member Data Documentation

◆ s_centralIndicatorMaxHeight

int SegmentedDropIndicatorOverlay::s_centralIndicatorMaxHeight = 160
static

◆ s_centralIndicatorMaxWidth

int SegmentedDropIndicatorOverlay::s_centralIndicatorMaxWidth = 300
static

◆ s_draggedWindowOpacity

double SegmentedDropIndicatorOverlay::s_draggedWindowOpacity = 0.7
static

◆ s_segmentGirth

int SegmentedDropIndicatorOverlay::s_segmentGirth = 50
static

◆ s_segmentPenWidth

int SegmentedDropIndicatorOverlay::s_segmentPenWidth = 4
static

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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8