Base Framework
|
#include <base/ui/Window.h>
Inherits GraphicsContext.
Public Member Functions | |
Window (unsigned int flags) | |
Window (const Position &position, const Dimension &dimension, unsigned int flags) | |
![]() | |
GraphicsContext () | |
GraphicsContext (const Position &position, const Dimension &dimension, unsigned int flags) | |
const Pen & | getPen () const noexcept |
void | setPen (Pen pen) |
const Brush & | getBrush () const noexcept |
void | setBrush (Brush brush) |
const Font & | getFont () const noexcept |
void | setFont (Font font) |
void | setBackgroundMode (bool transparent) |
void | setBackgroundColor (Color color) |
void | setTextColor (Color color) |
void | setTextAlignment (unsigned int alignment) |
void | clear () |
void | clear (const Position &position, const Dimension &dimension) |
void | setPixel (const Position &position, Color color, unsigned int flags=0) |
Color | getPixel (const Position &position) |
void | setPixels (const Array< Position > &positions, Color color, unsigned int flags=0) |
void | moveTo (const Position &position) |
void | lineTo (const Position &position, unsigned int flags=0) |
void | line (const Position &upperLeft, const Position &lowerRight, unsigned int flags=0) |
void | arc (const Position &position, const Dimension &dimension, int start, int stop, unsigned int flags=0) |
void | rectangle (const Position &upperLeft, const Position &b, unsigned int flags=0) |
void | rectangle (const Position &position, const Dimension &dimension, unsigned int flags=0) |
void | rectangle (const Position &upperLeft, const Position &lowerRight, Brush brush, unsigned int flags=0) |
void | rectangle (const Position &position, const Dimension &dimension, Brush brush, unsigned int flags=0) |
void | ellipse (const Position &upperLeft, const Position &lowerRight, unsigned int flags=0) |
void | ellipse (const Position &position, const Dimension &dimension, unsigned int flags=0) |
void | circle (const Position &position, unsigned int dimension, unsigned int flags=0) |
void | pie (const Position &upperLeft, const Position &lowerRight, const Position &radialA, const Position &radialB, unsigned int flags) |
unsigned int | getWidthOf (char ch) const |
Dimension | getDimensionOf (const String &text) const |
void | text (const Position &position, const Dimension &dimension, const String &text, unsigned int flags=0) |
void | putBitmap (const Position &position, const Dimension &dimension, const Bitmap &bitmap) |
Bitmap | getBitmap (const Position &position, const Dimension &dimension) |
~GraphicsContext () noexcept | |
![]() | |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onDisplay () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onResize (const Dimension &dimension) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onDisplay () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onResize (const Dimension &dimension) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
WindowImpl () | |
WindowImpl (const Position &position, const Dimension &dimension, unsigned int flags) | |
Position | getLocalBindingOffset (Binding binding) const noexcept |
Position | getBindingOffset (Binding binding) const noexcept |
void | flush () |
void | invalidate () |
String | getServerVendor () const |
unsigned int | getServerRelease () const |
unsigned int | getFlags () const |
void | displayMenu (const Position &position, const Menu &menu) |
bool | getAutorepeat () const |
void | setAutorepeat (bool autorepeat) |
String | getTitle () const |
void | setTitle (const String &title) |
String | getIconTitle () const |
void | setIconTitle (const String &title) |
Position | getPosition () const |
void | setPosition (const Position &position) |
Dimension | getDimension () const |
void | setDimension (const Dimension &dimension) |
void | setRegion (const Position &position, const Dimension &dimension) |
void | setMinimumSize (const Dimension &dimension) |
void | setMaximumSize (const Dimension &dimension) |
Cursor | getCursor () const noexcept |
void | setCursor (Cursor cursor) |
Position | toGlobalPosition (const Position &position) const |
Position | getCursorPosition () const |
void | setCursorPosition (const Position &position) |
void | releaseCursorConfinement () |
void | setCursorConfinement () |
void | setCursorConfinement (const Position &position, const Dimension &dimension) |
void | disableClipping () |
Region | getClipping () const |
void | setClipping (const Position &position, const Dimension &dimension) |
void | close () |
bool | isChildOf (const WindowImpl &object) |
bool | isParentOf (const WindowImpl &object) |
bool | isMaximized () |
bool | isMinimized () |
void | maximize () |
void | minimize () |
void | normalize () |
bool | isVisible () const noexcept |
Visibility | getVisibility () const noexcept |
void | show () |
void | hide () |
bool | isEnabled () const noexcept |
void | enable () |
void | disable () |
void | raise () |
void | acquireFocus () |
bool | getCapture () const |
void | setCapture (bool state) |
DisplayMode | getDisplayMode () const |
void | setDisplayMode (DisplayMode displayMode) |
unsigned int | getKeyState (unsigned int code) const |
unsigned int | getModifiers () const |
virtual void | onDestruction () noexcept |
virtual void | onDisplay () noexcept |
virtual void | onMove (const Position &position) noexcept |
virtual void | onResize (const Dimension &dimension) noexcept |
virtual void | onMouseMove (const Position &position, unsigned int buttons) noexcept |
virtual void | onMouseScope (bool scope) noexcept |
virtual void | onMouseButton (const Position &position, Mouse::Button button, Mouse::Event event, unsigned int state) noexcept |
virtual void | onMouseWheel (const Position &position, int delta, unsigned int buttons) noexcept |
virtual void | onKey (unsigned int key, unsigned int flags, unsigned int modifiers) noexcept |
virtual void | onIdle () noexcept |
virtual bool | onClose () noexcept |
virtual void | onVisibility (Visibility visibility) noexcept |
virtual void | onFocus (Focus focus) noexcept |
virtual void | onMenu (unsigned int identifier) noexcept |
virtual void | onCommand (unsigned int identifier) noexcept |
void | update () |
void | wait () |
bool | wait (unsigned int milliseconds) |
bool | openDispatch () |
bool | hasMouse () noexcept |
unsigned int | getMouseButtons () noexcept |
unsigned int | getNumberOfMonitors () noexcept |
Dimension | getDisplayDimension () noexcept |
bool | isResponding (unsigned int milliseconds) |
virtual | ~WindowImpl () noexcept |
Window::Window | ( | unsigned int | flags | ) |
Initializes a window.
flags | The flags. |