class QGoodWindow : public QMainWindow
QGoodWindow class contains the public API's to control the behavior of the customized window.
Constructor of QGoodWindow.
On Windows creates the native window, turns the QMainWindow
as a native widget, creates the shadow, initialize default values and calls the QMainWindow
parent constructor.
On Linux creates the frame less QMainWindow
, use the shadow only to create resize borders, and the real shadow is draw by current Linux window manager.
On macOS creates a QMainWindow
with full access to the title bar, and hide native minimize, zoom and close buttons.
Destructor of QGoodWindow.
Returns the window id of the QGoodWindow.
QGoodWindow handles flags internally, use this function only when QGoodWindow is not enabled.
Returns the window flags of the QGoodWindow.
On handled caption buttons, this SIGNAL report the state of these buttons.
Notify that the system has changed between light and dark mode.
Call setMargins() but only changes title bar height.
Call setMargins() but only changes icon width.
Call setMargins() but only changes left margin.
Call setMargins() but only changes right margin.
On Windows, Linux and macOS, returns the actual title bar height, on other OSes returns 0.
On Windows, Linux and macOS, return the actual icon width, on other OSes returns 0.
On Windows, Linux and macOS, returns the left margin of the customized title bar, on other OSes returns 0.
On Windows, Linux and macOS, returns the right margin of the customized title bar, on other OSes returns 0.
Set the tile bar height, icon width, left and right margins of the customized title bar. Note: Any call to setMargins() clear the left and right masks and the title bar caption buttons masks.
Set the mask for the left margin of the customized title bar.
Set the mask for the right margin of the customized title bar.
Set if the caption buttons should be handled by QGoodWindow and on which corner, valid only top left and top right corners.
Set the location and shape of handled minimize button, relative to handled corner.
Set the location and shape of handled maximize button, relative to handled corner.
Set the location and shape of handled close button, relative to handled corner.
Get the mask for the left margin of the customized title bar.
Get the mask for the right margin of the customized title bar.
Get the location and shape of handled minimize button, relative to handled corner.
Get the location and shape of handled maximize button, relative to handled corner.
Get the location and shape of handled close button, relative to handled corner.
Get the size that should be the size of the mask on the left margin of the customized title bar.
Get the size that should be the size of the mask on the right margin of the customized title bar.
If caption buttons are handled on left corner, their buttons masks should be in the bounds of this rect.
If caption buttons are handled on right corner, their buttons masks should be in the bounds of this rect.
Set fixed size for QGoodWindow to width w and height h.
Set fixed size for QGoodWindow to size.
Set minimum size for QGoodWindow to size.
Set maximum size for QGoodWindow to size.
Set minimum width for QGoodWindow to w.
Set minimum height for QGoodWindow to h.
Set maximum width for QGoodWindow to w.
Set maximum height for QGoodWindow to h.
Returns the QGoodWindow minimum size.
Returns the QGoodWindow maximum size.
Returns minimum width for QGoodWindow
Returns minimum height for QGoodWindow
Returns maximum width for QGoodWindow
Returns maximum height for QGoodWindow
Returns the geometry for QGoodWindow when it's state is no state.
Returns the geometry for QGoodWindow including extended frame and excluding shadow.
Returns the client area geometry.
Returns the client area size, position is always QPoint(0, 0)
.
Position of the window on screen.
Size of the window on screen.
X position of the window on screen.
Y position of the window on screen.
Width of the window.
Height of the window.
Move the window to x - y coordinates.
Move the window to pos.
Resize the window to width - height size.
Resize the window to size.
Set geometry to pos x - y, width w and height h.
Set geometry to rect.
Activates the QGoodWindow.
Shows the QGoodWindow.
Shows or restore the QGoodWindow.
Shows or maximize the QGoodWindow.
Minimize the QGoodWindow.
Turns the QGoodWindow into full screen mode. Including the title bar.
Hide the QGoodWindow.
Close the QGoodWindow.
Returns if the QGoodWindow is visible or not.
Returns if the QGoodWindow is enabled or not.
Returns if the QGoodWindow is the foreground window or not.
Returns if the QGoodWindow is maximized or not.
Returns if the QGoodWindow is minimized or not.
Returns if the QGoodWindow is in full screen mode or not.
Returns the QGoodWindow state.
Sets the state of the QGoodWindow to state.
Returns the window handle of the QGoodWindow.
Returns the opacity of the QGoodWindow.
Sets the opacity of the QGoodWindow to level. Where 0.0 is fully transparent and 1.0 fully opaque.
Returns the title of the QGoodWindow.
Sets the title of the QGoodWindow to title.
Returns the icon of the QGoodWindow.
Sets the icon of the QGoodWindow to icon.
Returns a copy of the window state to restore it later.
Restore window to previous state geometry.
Values | Descriptions |
---|---|
MinimizeHoverEnter | Minimize button hover enter. |
MinimizeHoverLeave | Minimize button hover leave. |
MinimizePress | Minimize button press. |
MinimizeRelease | Minimize button release. |
MinimizeClicked | Minimize button clicked. |
MaximizeHoverEnter | Maximize or restore button hover enter. |
MaximizeHoverLeave | Maximize or restore button hover leave. |
MaximizePress | Maximize or restore button press. |
MaximizeRelease | Maximize or restore button release. |
MaximizeClicked | Maximize or restore button clicked. |
CloseHoverEnter | Close button hover enter. |
CloseHoverLeave | Close button hover leave. |
ClosePress | Close button press. |
CloseRelease | Close button release. |
CloseClicked | Close button clicked. |
Enum that contains caption buttons states when it's states are handled by QGoodWindow.
Call this function to setup QApplication for QGoodWindow usage.
Returns if the current system theme is dark or not.
Returns true if system draw borders and false if your app should do it.
Show modal frame less QDialog, inside window child_gw, with parent parent_gw.
Generated by Moxygen