KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KDDockWidgets::flutter::View Class Reference

#include <View.h>

Inheritance diagram for KDDockWidgets::flutter::View:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgets::flutter::View:
Collaboration graph
[legend]

Public Member Functions

 View (Core::Controller *controller, Core::ViewType type, Core::View *, Qt::WindowFlags windowFlags={})
 
 ~View () override
 
void activateWindow () override
 
std::shared_ptr< Core::ViewasWrapper () override
 Returns this view, but as a wrapper.
 
std::shared_ptr< Core::ViewchildViewAt (Point p) const override
 
Vector< std::shared_ptr< Core::View > > childViews () const override
 @Returns a list of child views
 
bool close () override
 
void enableAttribute (Qt::WidgetAttribute attr, bool enable=true) override
 
Qt::WindowFlags flags () const override
 
Qt::FocusPolicy focusPolicy () const override
 
Rect geometry () const override
 
void grabMouse () override
 
Core::HANDLE handle () const override
 Returns a handle for the GUI element This value only makes sense to the frontend. For example, for QtQuick it might be a QQuickItem, while for QtWidgets it's a QWidget. Can be whatever the frontend developer wants, as long as it uniquely identifies the GUI element. KDDW backend only uses it for comparison purposes.
 
bool hasAttribute (Qt::WidgetAttribute attr) const override
 
bool hasFocus () const override
 
void hide () override
 
bool isActiveWindow () const override
 
bool isExplicitlyHidden () const override
 
bool isMaximized () const override
 
bool isMinimized () const override
 
virtual bool isMounted () const
 
bool isRootView () const override
 
bool isVisible () const override
 
Point mapFromGlobal (Point globalPt) const override
 
Point mapTo (Core::View *parent, Point pos) const override
 
Point mapToGlobal (Point localPt) const override
 
Size maxSizeHint () const override
 
Size minSize () const override
 
void move (int x, int y) override
 
Rect normalGeometry () const override
 
virtual void onChildAdded (Core::View *childView)
 
virtual void onChildRemoved (Core::View *childView)
 
virtual void onChildVisibilityChanged (Core::View *childView)
 
bool onFlutterWidgetResized (int w, int h)
 
virtual void onGeometryChanged ()
 
void onMouseEvent (Event::Type eventType, Point localPos, Point globalPos, bool leftIsPressed)
 Called by flutter when a mouse event is received.
 
virtual void onMousePress (MouseEvent *)
 View can override if it's interested in events which the event filter rejected.
 
virtual void onRebuildRequested ()
 Implemented in Dart.
 
std::shared_ptr< Core::ViewparentView () const override
 Returns the gui element's parent. Like QWidget::parentWidget()
 
void raise () override
 
void raiseAndActivate () override
 
virtual void raiseChild (Core::View *childView)
 
virtual void raiseWindow (Core::View *rootView)
 
void releaseKeyboard () override
 
void releaseMouse () override
 
void render (QPainter *) override
 
std::shared_ptr< Core::ViewrootView () const override
 Returns the top-level gui element which this view is inside It's the root view of the window.
 
void setCursor (Qt::CursorShape shape) override
 
void setFixedHeight (int h) override
 
void setFixedWidth (int w) override
 
void setFlag (Qt::WindowType f, bool on=true) override
 
void setFocus (Qt::FocusReason reason) override
 
void setFocusPolicy (Qt::FocusPolicy policy) override
 
void setGeometry (Rect geometry) override
 
void setHeight (int h) override
 
void setMaximumSize (Size sz) override
 
void setMinimumSize (Size sz) override
 
void setMouseTracking (bool enable) override
 
void setNormalGeometry (Rect geo)
 
void setParent (Core::View *parent) override
 
void setSize (int w, int h) override
 
void setViewName (const QString &name) override
 Equivalent to Qt's QObject::objectName()
 
void setVisible (bool visible) override
 
void setWidth (int w) override
 
void setWindowIcon (const Icon &icon) override
 
void setWindowOpacity (double v) override
 
void setWindowTitle (const QString &title) override
 
void setZOrder (int z) override
 Sets the z order Not supported on all platforms and only relevant for MDI mode.
 
void show () override
 
void showMaximized () override
 
void showMinimized () override
 
void showNormal () override
 
void update () override
 
void updateGeometry ()
 
QString viewName () const override
 
std::shared_ptr< Core::Window > window () const override
 Returns the window this view is inside For the Qt frontend, this wraps a QWindow. Like QWidget::window()
 
- Public Member Functions inherited from KDDockWidgets::Core::View
 View (Controller *controller, ViewType)
 
template<typename T >
T * asController ()
 Returns the View's controller, casted as T.
 
Core::DockWidgetasDockWidgetController () const
 
Core::DropAreaasDropAreaController () const
 
Core::FloatingWindowasFloatingWindowController () const
 asFooController() are deprecated. Use asController<T>() instead
 
Core::GroupasGroupController () const
 
Core::LayoutasLayout () const
 
Core::MainWindowasMainWindowController () const
 
Core::MDILayoutasMDILayoutController () const
 
Core::StackasStackController () const
 
Core::TabBarasTabBarController () const
 
Core::TitleBarasTitleBarController () const
 
Controllercontroller () const
 Returns this view's controller.
 
virtual void createPlatformWindow ()
 
bool deliverViewEventToFilters (Event *e)
 Delivers mouse events and such to event filters.
 
void dumpDebug ()
 Prints some debug to stderr.
 
bool equals (const std::shared_ptr< View > &) const
 
bool equals (const View *other) const
 Returns whether this view represents the same GUI element as the other.
 
int height () const
 
bool inDtor () const
 Returns whether the DTOR is currently running. freed() might be true while inDtor false, as the implementation of free() is free to delay it (with deleteLater() for example)
 
virtual void init ()
 
void installViewEventFilter (EventFilterInterface *)
 Installs an event filter in this view to intercept the event it receives Analogue to QObject::installEventFilter() in the Qt world.
 
virtual bool is (ViewType) const
 Returns whether the view is of the specified type Virtual so it can be overridden by ViewWrapper. When we're wrapping an existing GUI element only the specific frontend can know what's the actual type.
 
bool isFixedHeight () const
 
bool isFixedWidth () const
 
virtual bool isNull () const
 Returns whether the gui item represented by this view was already deleted Usually false, as KDDW internal gui elements inherit View, and nobody will access them after destruction. However, ViewWrapper derived classes, wrap an existing gui element, which might get deleted. Override isNull() in our ViewWrapper subclasses and return true if the wrapped gui element was already deleted.
 
int minimumHeight () const
 
int minimumWidth () const
 
void move (Point)
 
virtual bool onFocusInEvent (FocusEvent *)
 
virtual bool onResize (int h, int w)
 
bool onResize (Size)
 
Point pos () const
 
Rect rect () const
 
void removeViewEventFilter (EventFilterInterface *)
 Removes the event filter.
 
void resize (int w, int h)
 
void resize (Size)
 
Size screenSize () const
 Returns the size of the screen that this view belongs to.
 
void setSize (Size)
 
Size size () const
 
int width () const
 
int x () const
 
int y () const
 
virtual int zOrder () const
 

Additional Inherited Members

- Static Public Member Functions inherited from KDDockWidgets::Core::View
static bool equals (const View *one, const View *two)
 
static ControllerfirstParentOfType (View *view, ViewType)
 Returns the controller of the first parent view of the specified type Goes up the view hierarchy chain until it finds it. Returns nullptr otherwise.
 
static Size hardcodedMinimumSize ()
 The minimum minimum size a dock widget can have.
 
- Public Attributes inherited from KDDockWidgets::Core::View
Private *const d
 
- Protected Member Functions inherited from KDDockWidgets::Core::View
 View (const View &)=delete
 
Viewoperator= (const View &)=delete
 
- Protected Attributes inherited from KDDockWidgets::Core::View
Controller *const m_controller
 
bool m_inDtor = false
 

Detailed Description

Definition at line 22 of file flutter/views/View.h.

Constructor & Destructor Documentation

◆ View()

View::View ( Core::Controller controller,
Core::ViewType  type,
Core::View parent,
Qt::WindowFlags  windowFlags = {} 
)
explicit

Definition at line 25 of file flutter/views/View.cpp.

References setParent().

◆ ~View()

View::~View ( )
overridevirtual

Member Function Documentation

◆ activateWindow()

void View::activateWindow ( )
overridevirtual

◆ asWrapper()

std::shared_ptr< Core::View > View::asWrapper ( )
overridevirtual

Returns this view, but as a wrapper.

Implements KDDockWidgets::Core::View.

Definition at line 392 of file flutter/views/View.cpp.

Referenced by childViewAt(), parentView(), rootView(), and setFocus().

◆ childViewAt()

std::shared_ptr< Core::View > View::childViewAt ( Point  p) const
overridevirtual

◆ childViews()

Vector< std::shared_ptr< Core::View > > View::childViews ( ) const
overridevirtual

◆ close()

bool View::close ( )
overridevirtual

◆ enableAttribute()

void View::enableAttribute ( Qt::WidgetAttribute  ,
bool  enable = true 
)
overridevirtual

Enable/disable attributes. This is mostly for QtWidget compatibility Do not use. We don't depend on Qt::WidgetAttribute in a future version.

Implements KDDockWidgets::Core::View.

Definition at line 128 of file flutter/views/View.cpp.

◆ flags()

Qt::WindowFlags View::flags ( ) const
overridevirtual

◆ focusPolicy()

Qt::FocusPolicy View::focusPolicy ( ) const
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 425 of file flutter/views/View.cpp.

◆ geometry()

Rect View::geometry ( ) const
overridevirtual

◆ grabMouse()

void View::grabMouse ( )
overridevirtual

◆ handle()

Core::HANDLE View::handle ( ) const
overridevirtual

Returns a handle for the GUI element This value only makes sense to the frontend. For example, for QtQuick it might be a QQuickItem, while for QtWidgets it's a QWidget. Can be whatever the frontend developer wants, as long as it uniquely identifies the GUI element. KDDW backend only uses it for comparison purposes.

Implements KDDockWidgets::Core::View.

Definition at line 474 of file flutter/views/View.cpp.

◆ hasAttribute()

bool View::hasAttribute ( Qt::WidgetAttribute  attr) const
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 132 of file flutter/views/View.cpp.

◆ hasFocus()

bool View::hasFocus ( ) const
overridevirtual

◆ hide()

void View::hide ( )
overridevirtual

◆ isActiveWindow()

bool View::isActiveWindow ( ) const
overridevirtual

◆ isExplicitlyHidden()

bool View::isExplicitlyHidden ( ) const
overridevirtual

◆ isMaximized()

bool View::isMaximized ( ) const
overridevirtual

◆ isMinimized()

bool View::isMinimized ( ) const
overridevirtual

◆ isMounted()

bool View::isMounted ( ) const
virtual

◆ isRootView()

bool View::isRootView ( ) const
overridevirtual

◆ isVisible()

bool View::isVisible ( ) const
overridevirtual

◆ mapFromGlobal()

Point View::mapFromGlobal ( Point  globalPt) const
overridevirtual

◆ mapTo()

Point View::mapTo ( Core::View parent,
Point  pos 
) const
overridevirtual

◆ mapToGlobal()

Point View::mapToGlobal ( Point  localPt) const
overridevirtual

◆ maxSizeHint()

Size View::maxSizeHint ( ) const
overridevirtual

◆ minSize()

Size View::minSize ( ) const
overridevirtual

◆ move()

void View::move ( int  x,
int  y 
)
overridevirtual

◆ normalGeometry()

Rect View::normalGeometry ( ) const
overridevirtual

◆ onChildAdded()

void View::onChildAdded ( Core::View childView)
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 485 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug(), and KDDW_UNUSED.

Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildAdded(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildAdded_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildAdded_nocallback(), and setParent().

◆ onChildRemoved()

void View::onChildRemoved ( Core::View childView)
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 492 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug(), and KDDW_UNUSED.

Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildRemoved(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildRemoved_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildRemoved_nocallback(), and setParent().

◆ onChildVisibilityChanged()

void View::onChildVisibilityChanged ( Core::View childView)
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 499 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug(), and KDDW_UNUSED.

Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildVisibilityChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onChildVisibilityChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onChildVisibilityChanged_nocallback(), and setVisible().

◆ onFlutterWidgetResized()

bool View::onFlutterWidgetResized ( int  w,
int  h 
)

Called when the flutter widget was resized by its own initiative (and not kddw) Usually it's kddw driving geometry, but there's 2 cases where flutter might trigger it

  • Window is resized by user with mouse
  • Widget has m_fillsParent=true and its parent was resized

Definition at line 479 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::onResize(), and setSize().

Referenced by c_KDDockWidgets__flutter__View__onFlutterWidgetResized_int_int().

◆ onGeometryChanged()

void View::onGeometryChanged ( )
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 506 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug().

Referenced by move(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onGeometryChanged(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onGeometryChanged_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onGeometryChanged_nocallback(), setGeometry(), setHeight(), setSize(), and setWidth().

◆ onMouseEvent()

void View::onMouseEvent ( Event::Type  eventType,
Point  localPos,
Point  globalPos,
bool  leftIsPressed 
)

◆ onMousePress()

virtual void KDDockWidgets::flutter::View::onMousePress ( MouseEvent *  )
inlinevirtual

View can override if it's interested in events which the event filter rejected.

Reimplemented in KDDockWidgets::flutter::TabBar.

Definition at line 127 of file flutter/views/View.h.

Referenced by onMouseEvent().

◆ onRebuildRequested()

void View::onRebuildRequested ( )
virtual

Implemented in Dart.

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 554 of file flutter/views/View.cpp.

Referenced by KDDockWidgets::flutter::TabBar::insertDockWidget(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onRebuildRequested(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::onRebuildRequested_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::onRebuildRequested_nocallback(), KDDockWidgets::flutter::TabBar::removeDockWidget(), and KDDockWidgets::flutter::TabBar::setCurrentIndex().

◆ parentView()

std::shared_ptr< Core::View > View::parentView ( ) const
overridevirtual

Returns the gui element's parent. Like QWidget::parentWidget()

Implements KDDockWidgets::Core::View.

Definition at line 384 of file flutter/views/View.cpp.

References asWrapper().

◆ raise()

void View::raise ( )
overridevirtual

If this view is a root view, then raises its window, otherwise, raises itself relatively to its siblings and does not raise its window

Implements KDDockWidgets::Core::View.

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 276 of file flutter/views/View.cpp.

References isRootView(), raiseChild(), and raiseWindow().

Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raise(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raise_nocallback(), and raiseAndActivate().

◆ raiseAndActivate()

void View::raiseAndActivate ( )
overridevirtual

◆ raiseChild()

void View::raiseChild ( Core::View childView)
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 512 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug().

Referenced by raise(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseChild(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseChild_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseChild_nocallback(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseChild_nocallback().

◆ raiseWindow()

void View::raiseWindow ( Core::View rootView)
virtual

Reimplemented in KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper, KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper, and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper.

Definition at line 518 of file flutter/views/View.cpp.

References KDDockWidgets::Core::View::dumpDebug().

Referenced by raise(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseWindow_nocallback(), and KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseWindow_nocallback().

◆ releaseKeyboard()

void View::releaseKeyboard ( )
overridevirtual

◆ releaseMouse()

void View::releaseMouse ( )
overridevirtual

◆ render()

void View::render ( QPainter )
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 448 of file flutter/views/View.cpp.

◆ rootView()

std::shared_ptr< Core::View > View::rootView ( ) const
overridevirtual

Returns the top-level gui element which this view is inside It's the root view of the window.

Implements KDDockWidgets::Core::View.

Definition at line 120 of file flutter/views/View.cpp.

References asWrapper(), and rootView().

Referenced by KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseWindow(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DockWidget_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::DropArea_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Group_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::IndicatorWindow_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::MainWindow_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::Stack_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TabBar_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::TitleBar_wrapper::raiseWindow_nocallback(), KDDockWidgetsBindings_wrappersNS::KDDWBindingsFlutter::View_wrapper::raiseWindow_nocallback(), rootView(), and window().

◆ setCursor()

void View::setCursor ( Qt::CursorShape  shape)
overridevirtual

◆ setFixedHeight()

void View::setFixedHeight ( int  h)
overridevirtual

◆ setFixedWidth()

void View::setFixedWidth ( int  w)
overridevirtual

◆ setFlag()

void View::setFlag ( Qt::WindowType  f,
bool  on = true 
)
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 137 of file flutter/views/View.cpp.

◆ setFocus()

void View::setFocus ( Qt::FocusReason  reason)
overridevirtual

◆ setFocusPolicy()

void View::setFocusPolicy ( Qt::FocusPolicy  policy)
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 430 of file flutter/views/View.cpp.

◆ setGeometry()

void View::setGeometry ( Rect  geometry)
overridevirtual

◆ setHeight()

void View::setHeight ( int  h)
overridevirtual

◆ setMaximumSize()

void View::setMaximumSize ( Size  sz)
overridevirtual

◆ setMinimumSize()

void View::setMinimumSize ( Size  sz)
overridevirtual

◆ setMouseTracking()

void View::setMouseTracking ( bool  enable)
overridevirtual

◆ setNormalGeometry()

void View::setNormalGeometry ( Rect  geo)

◆ setParent()

void View::setParent ( Core::View parent)
overridevirtual

◆ setSize()

void View::setSize ( int  w,
int  h 
)
overridevirtual

◆ setViewName()

void View::setViewName ( const QString )
overridevirtual

◆ setVisible()

void View::setVisible ( bool  visible)
overridevirtual

◆ setWidth()

void View::setWidth ( int  w)
overridevirtual

◆ setWindowIcon()

void View::setWindowIcon ( const Icon &  icon)
overridevirtual

Implements KDDockWidgets::Core::View.

Definition at line 322 of file flutter/views/View.cpp.

◆ setWindowOpacity()

void View::setWindowOpacity ( double  v)
overridevirtual

◆ setWindowTitle()

void View::setWindowTitle ( const QString title)
overridevirtual

◆ setZOrder()

void View::setZOrder ( int  )
overridevirtual

◆ show()

void View::show ( )
overridevirtual

◆ showMaximized()

void View::showMaximized ( )
overridevirtual

◆ showMinimized()

void View::showMinimized ( )
overridevirtual

◆ showNormal()

void View::showNormal ( )
overridevirtual

◆ update()

void View::update ( )
overridevirtual

◆ updateGeometry()

void View::updateGeometry ( )

◆ viewName()

QString View::viewName ( ) const
overridevirtual

◆ window()

std::shared_ptr< Core::Window > View::window ( ) const
overridevirtual

Returns the window this view is inside For the Qt frontend, this wraps a QWindow. Like QWidget::window()

Implements KDDockWidgets::Core::View.

Definition at line 353 of file flutter/views/View.cpp.

References rootView(), and window().

Referenced by window().


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