KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDDockWidgets::Core::ClassicDropIndicatorOverlay Class Reference

#include <ClassicDropIndicatorOverlay.h>

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

Public Member Functions

 ClassicDropIndicatorOverlay (Core::DropArea *dropArea)
 
 ~ClassicDropIndicatorOverlay () override
 
DropLocation hover_impl (Point globalPos) override
 
Core::ClassicIndicatorWindowViewInterfaceindicatorWindow () const
 
bool onResize (Size newSize)
 
Point posForIndicator (DropLocation) const override
 returns the position of the specified drop location The return is in global coordinates
 
ViewrubberBand () 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)
 
GrouphoveredGroup () 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.
 
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
 

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
 
Groupm_hoveredGroup = nullptr
 
- Protected Attributes inherited from KDDockWidgets::Core::Controller
bool m_inDtor = false
 

Detailed Description

Definition at line 24 of file ClassicDropIndicatorOverlay.h.

Constructor & Destructor Documentation

◆ ClassicDropIndicatorOverlay()

ClassicDropIndicatorOverlay::ClassicDropIndicatorOverlay ( Core::DropArea dropArea)
explicit

◆ ~ClassicDropIndicatorOverlay()

ClassicDropIndicatorOverlay::~ClassicDropIndicatorOverlay ( )
override

Definition at line 49 of file ClassicDropIndicatorOverlay.cpp.

Member Function Documentation

◆ hover_impl()

DropLocation ClassicDropIndicatorOverlay::hover_impl ( Point  globalPos)
overridevirtual

◆ indicatorWindow()

Core::ClassicIndicatorWindowViewInterface * ClassicDropIndicatorOverlay::indicatorWindow ( ) const

◆ onResize()

bool ClassicDropIndicatorOverlay::onResize ( Size  newSize)

◆ posForIndicator()

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

◆ rubberBand()

View * ClassicDropIndicatorOverlay::rubberBand ( ) const

◆ setCurrentDropLocation()

void ClassicDropIndicatorOverlay::setCurrentDropLocation ( DropLocation  location)
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().

◆ updateVisibility()

void ClassicDropIndicatorOverlay::updateVisibility ( )
overridevirtual

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