KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
flutter/views/MainWindow.h
Go to the documentation of this file.
1/*
2 This file is part of KDDockWidgets.
3
4 SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5 Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6
7 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8
9 Contact KDAB at <info@kdab.com> for commercial licensing options.
10*/
11
12#pragma once
13
14#include "View.h"
15#include "kddockwidgets/core/views/MainWindowViewInterface.h"
16
17namespace KDDockWidgets {
18
19namespace flutter {
20
21class DOCKS_EXPORT MainWindow : public flutter::View, public Core::MainWindowViewInterface
22{
23public:
24 explicit MainWindow(const QString &uniqueName, MainWindowOptions options = {},
25 flutter::View *parent = nullptr, Qt::WindowFlags flags = {});
26
27 ~MainWindow() override;
28
29protected:
30 Margins centerWidgetMargins() const override;
31 Rect centralAreaGeometry() const override;
32 void setContentsMargins(int left, int top, int right, int bottom) override;
33};
34
35}
36
37}
The interface that MainWindow views should implement.
MainWindow(const QString &uniqueName, MainWindowOptions options={}, flutter::View *parent=nullptr, Qt::WindowFlags flags={})
void setContentsMargins(int left, int top, int right, int bottom) override
Rect centralAreaGeometry() const override
Margins centerWidgetMargins() const override
Class to abstract QAction, so code still works with QtQuick and Flutter.
typedef WindowFlags

© 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