|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Display window More...
#include <cc/Window>
Public Member Functions | |
| Window ()=default | |
| Create a null window. | |
| Window (const View &view) | |
| Open a new window for view. | |
| String | title () const |
| Get window title. | |
| Window & | title (const String &newValue) |
| Set window title | |
| Window & | title (Definition< String > &&f) |
| Define window title. | |
| Image | icon () const |
| Get window icon. | |
| Window & | icon (const Image &newValue) |
| Set window icon | |
| Window & | icon (Definition< Image > &&f) |
| Define window icon. | |
| Point | pos () const |
| Get window position. | |
| Window & | pos (Point newValue) |
| Set window position | |
| Size | size () const |
| Get window size. | |
| Window & | size (Size newValue) |
| Set window size | |
| bool | sizing () const |
| Window size is currently undergoing a change | |
| WindowMode | mode () const |
| Get window mode. | |
| Window & | mode (WindowMode newValue) |
| Set window mode | |
| double | opacity () const |
| Get opacity. | |
| Window & | opacity (double newValue) |
| Set opacity | |
| void | show (int display=0) |
| Show window on display. | |
| void | hide () |
| Hide window. | |
| void | raise () |
| Raise window and acquire input focus. | |
| int | run () |
| bool | visible () const |
| Convenience method to show this window and run the application loop. | |
| View | view () const |
| Get window's root view. | |
| Control | findControl (Point pos) const |
| Get control at pos. | |
| Display | display () const |
| Get the display this window is shown on. | |
| void | renderViewToImage (const View &view, Image &image) |
| Render view into user allocated image. | |
Public Member Functions inherited from Object | |
| Object ()=default | |
| Create a null object. | |
| operator bool () const | |
| Check if this is a non-null object. | |
| bool | isNull () const |
| Check if this is a null object. | |
| template<class T > | |
| bool | is () const |
| Check if this object is of type T. | |
| template<class T > | |
| T | as () const |
| Cast this object to type T. | |
| bool | isWeak () const |
| Check if the underlying object reference is weak. | |
| bool | operator== (const Object &other) const |
| Equality operator. | |
| std::strong_ordering | operator<=> (const Object &other) const |
| Ordering operator. | |
| long | useCount () const |
| Reference count. | |
Protected Member Functions | |
| Window (State *state) | |
| State & | me () |
| const State & | me () const |
Protected Member Functions inherited from Object | |
| template<class T > | |
| T | weak () const |
| template<class T > | |
| void | initOnce () |
| Create the object state when called the first time. | |
| template<class T > | |
| void | initOncePerThread () |
| Create a distinct object state for each thread when called the first time in that thread. | |
| Object (State *newState) | |
| Initialize object with newState. | |
| Object (State *state, Alias) | |
| Object (State *state, Weak) | |
| Object & | operator= (std::nullptr_t) |
Additional Inherited Members | |
Static Protected Member Functions inherited from Object | |
| template<class T > | |
| static T | alias (const State *state) |
| Create an alias object for the given state. | |
| template<class T > | |
| static T | weak (const State *state) |
Protected Attributes inherited from Object | |
| Handle< State > | me |
| Internal object state | |
Display window
|
default |
Create a null window.
| String title | ( | ) | const |
Get window title.
| Window & title | ( | Definition< String > && | f | ) |
Define window title.
| Image icon | ( | ) | const |
Get window icon.
| Window & icon | ( | Definition< Image > && | f | ) |
Define window icon.
| Point pos | ( | ) | const |
Get window position.
| Size size | ( | ) | const |
Get window size.
| bool sizing | ( | ) | const |
Window size is currently undergoing a change
| WindowMode mode | ( | ) | const |
Get window mode.
| Window & mode | ( | WindowMode | newValue | ) |
Set window mode
| double opacity | ( | ) | const |
Get opacity.
| Window & opacity | ( | double | newValue | ) |
Set opacity
| void show | ( | int | display = 0 | ) |
Show window on display.
| void hide | ( | ) |
Hide window.
| void raise | ( | ) |
Raise window and acquire input focus.
| bool visible | ( | ) | const |
Convenience method to show this window and run the application loop.
Check if window is shown
| View view | ( | ) | const |
Get window's root view.
| Display display | ( | ) | const |
Get the display this window is shown on.