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

#include <Separator.h>

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

Public Types

typedef Vector< Separator * > List
 

Public Member Functions

 Separator (LayoutingHost *host, Qt::Orientation orientation, Core::ItemBoxContainer *parentContainer)
 
virtual ~Separator () override
 
LayoutingSeparator * asLayoutingSeparator () const
 
bool isVertical () const
 
void onMouseDoubleClick ()
 
void onMouseMove (Point pos)
 
void onMousePress ()
 
void onMouseReleased ()
 
int position () const
 
void setGeometry (Rect r)
 
- 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 Member Functions

static bool isResizing ()
 Returns whether we're dragging a separator. Can be useful for the app to stop other work while we're not in the final size.
 
static int numSeparators ()
 

Additional Inherited Members

- Protected Member Functions inherited from KDDockWidgets::Core::Controller
virtual void setParentView_impl (View *parent)
 
- Protected Attributes inherited from KDDockWidgets::Core::Controller
bool m_inDtor = false
 

Detailed Description

Definition at line 27 of file core/Separator.h.

Member Typedef Documentation

◆ List

Definition at line 31 of file core/Separator.h.

Constructor & Destructor Documentation

◆ Separator()

Separator::Separator ( LayoutingHost *  host,
Qt::Orientation  orientation,
Core::ItemBoxContainer *  parentContainer 
)
explicit

◆ ~Separator()

Separator::~Separator ( )
overridevirtual

Definition at line 114 of file core/Separator.cpp.

Member Function Documentation

◆ asLayoutingSeparator()

LayoutingSeparator * Separator::asLayoutingSeparator ( ) const

Definition at line 237 of file core/Separator.cpp.

◆ isResizing()

bool Separator::isResizing ( )
static

Returns whether we're dragging a separator. Can be useful for the app to stop other work while we're not in the final size.

static

Definition at line 243 of file core/Separator.cpp.

◆ isVertical()

bool KDDockWidgets::Core::Separator::isVertical ( ) const

◆ numSeparators()

int Separator::numSeparators ( )
static

static

Definition at line 249 of file core/Separator.cpp.

References s_numSeparators.

◆ onMouseDoubleClick()

void Separator::onMouseDoubleClick ( )

◆ onMouseMove()

void Separator::onMouseMove ( Point  pos)

◆ onMousePress()

void Separator::onMousePress ( )

◆ onMouseReleased()

void KDDockWidgets::Core::Separator::onMouseReleased ( )

◆ position()

int Separator::position ( ) const

◆ setGeometry()

void Separator::setGeometry ( Rect  r)

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