KDDockWidgets API Documentation 2.1
|
#include <Separator.h>
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. | |
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 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 |
Definition at line 27 of file core/Separator.h.
typedef Vector<Separator *> KDDockWidgets::Core::Separator::List |
Definition at line 31 of file core/Separator.h.
|
explicit |
constructs a separator
host | the host where this separator is in. Usually a DropArea. |
Definition at line 102 of file core/Separator.cpp.
References KDDockWidgets::Core::ViewFactory::createRubberBand(), KDDockWidgets::Core::View::init(), KDDockWidgets::Config::self(), KDDockWidgets::Core::Controller::setVisible(), KDDockWidgets::Core::View::show(), KDDockWidgets::Core::Controller::view(), and KDDockWidgets::Config::viewFactory().
|
overridevirtual |
Definition at line 114 of file core/Separator.cpp.
LayoutingSeparator * Separator::asLayoutingSeparator | ( | ) | const |
Definition at line 237 of file core/Separator.cpp.
|
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.
bool KDDockWidgets::Core::Separator::isVertical | ( | ) | const |
|
static |
void Separator::onMouseDoubleClick | ( | ) |
Definition at line 193 of file core/Separator.cpp.
Referenced by c_KDDockWidgets__Core__Separator__onMouseDoubleClick(), KDDockWidgets::QtWidgets::Separator::mouseDoubleClickEvent(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::onMouseDoubleClick(), and KDDockWidgets::QtQuick::Separator::onMouseDoubleClicked().
void Separator::onMouseMove | ( | Point | pos | ) |
Definition at line 200 of file core/Separator.cpp.
References KDDockWidgets::Core::Platform::instance(), onMouseReleased(), and KDDockWidgets::Core::Controller::pos().
Referenced by c_KDDockWidgets__Core__Separator__onMouseMove_Point(), KDDockWidgets::QtWidgets::Separator::mouseMoveEvent(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::onMouseMove(), and KDDockWidgets::QtQuick::Separator::onMouseMoved().
void Separator::onMousePress | ( | ) |
Definition at line 169 of file core/Separator.cpp.
References KDDockWidgets::Core::Platform::instance(), and position().
Referenced by c_KDDockWidgets__Core__Separator__onMousePress(), KDDockWidgets::QtWidgets::Separator::mousePressEvent(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::onMousePress(), and KDDockWidgets::QtQuick::Separator::onMousePressed().
void KDDockWidgets::Core::Separator::onMouseReleased | ( | ) |
int Separator::position | ( | ) | const |
Definition at line 124 of file core/Separator.cpp.
Referenced by c_KDDockWidgets__Core__Separator__position(), onMousePress(), and KDDockWidgets::QtQuick::Separator::onMouseReleased().
void Separator::setGeometry | ( | Rect | r | ) |
Definition at line 129 of file core/Separator.cpp.
References KDDockWidgets::Core::Controller::setVisible(), and KDDockWidgets::Core::Controller::view().
Referenced by c_KDDockWidgets__Core__Separator__setGeometry_Rect(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::setGeometry().