![]() |
KDDockWidgets API Documentation 2.0
|
#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 | move (int p) |
| void | onMouseDoubleClick () |
| void | onMouseMove (Point pos) |
| void | onMousePress () |
| void | onMouseReleased () |
| Qt::Orientation | orientation () const |
| Core::ItemBoxContainer * | parentContainer () const |
| int | position () const |
| void | setGeometry (int pos, int pos2, int length) |
| 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 | 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 91 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 103 of file core/Separator.cpp.
| LayoutingSeparator * Separator::asLayoutingSeparator | ( | ) | const |
Definition at line 264 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 270 of file core/Separator.cpp.
| bool KDDockWidgets::Core::Separator::isVertical | ( | ) | const |
| void Separator::move | ( | int | p | ) |
Definition at line 118 of file core/Separator.cpp.
References isVertical(), position(), setGeometry(), and KDDockWidgets::Core::Controller::view().
Referenced by c_KDDockWidgets__Core__Separator__move_int(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::move().
|
static |
| void Separator::onMouseDoubleClick | ( | ) |
Definition at line 215 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 222 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 191 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 | ( | ) |
| Qt::Orientation Separator::orientation | ( | ) | const |
Definition at line 160 of file core/Separator.cpp.
| Core::ItemBoxContainer * Separator::parentContainer | ( | ) | const |
Definition at line 259 of file core/Separator.cpp.
| int Separator::position | ( | ) | const |
Definition at line 113 of file core/Separator.cpp.
Referenced by c_KDDockWidgets__Core__Separator__position(), move(), onMousePress(), and KDDockWidgets::QtQuick::Separator::onMouseReleased().
| void Separator::setGeometry | ( | int | pos, |
| int | pos2, | ||
| int | length | ||
| ) |
Definition at line 155 of file core/Separator.cpp.
References KDDockWidgets::Core::Controller::pos().
| void Separator::setGeometry | ( | Rect | r | ) |
Definition at line 140 of file core/Separator.cpp.
References KDDockWidgets::Core::Controller::setVisible(), and KDDockWidgets::Core::Controller::view().
Referenced by c_KDDockWidgets__Core__Separator__setGeometry_int_int_int(), c_KDDockWidgets__Core__Separator__setGeometry_Rect(), move(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::setGeometry(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsCore::Separator_wrapper::setGeometry().
KDDockWidgets