Dusk Audio Framework
Loading...
Searching...
No Matches
StandaloneWindow Class Reference
Inheritance diagram for StandaloneWindow:
Window TopLevelWidget Widget CairoBaseWidget< StandaloneWindow > ImageBaseAboutWindow< CairoImage > ImageBaseAboutWindow< OpenGLImage > NanoBaseWidget< StandaloneWindow > ImageBaseAboutWindow< ImageType >

Public Member Functions

 StandaloneWindow (Application &app)
 StandaloneWindow (Application &app, Window &transientParentWindow)
void done ()
void reinit ()
bool isVisible () const noexcept
void setVisible (bool yesNo)
void hide ()
void show ()
uint getWidth () const noexcept
uint getHeight () const noexcept
const Size< uint > getSize () const noexcept
void repaint () noexcept
void repaint (const Rectangle< uint > &rect) noexcept
void setWidth (uint width)
void setHeight (uint height)
void setSize (uint width, uint height)
void setSize (const Size< uint > &size)
bool addIdleCallback (IdleCallback *callback, uint timerFrequencyInMs=0)
bool removeIdleCallback (IdleCallback *callback)
Application & getApp () const noexcept
const GraphicsContext & getGraphicsContext () const noexcept
double getScaleFactor () const noexcept
void setGeometryConstraints (uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false)
Public Member Functions inherited from Window
 Window (Application &app)
 Window (Application &app, Window &transientParentWindow)
 Window (Application &app, uintptr_t parentWindowHandle, double scaleFactor, bool resizable)
 Window (Application &app, uintptr_t parentWindowHandle, uint width, uint height, double scaleFactor, bool resizable)
virtual ~Window ()
bool isEmbed () const noexcept
bool isVisible () const noexcept
void setVisible (bool visible)
void show ()
void hide ()
void close ()
bool isResizable () const noexcept
void setResizable (bool resizable)
int getOffsetX () const noexcept
int getOffsetY () const noexcept
Point< int > getOffset () const noexcept
void setOffsetX (int x)
void setOffsetY (int y)
void setOffset (int x, int y)
void setOffset (const Point< int > &offset)
bool setEmbeddedOffset (int x, int y)
uint getWidth () const noexcept
uint getHeight () const noexcept
Size< uint > getSize () const noexcept
void setWidth (uint width)
void setHeight (uint height)
void setSize (uint width, uint height)
void setSize (const Size< uint > &size)
const char * getTitle () const noexcept
void setTitle (const char *title)
bool isIgnoringKeyRepeat () const noexcept
void setIgnoringKeyRepeat (bool ignore) noexcept
const void * getClipboard (size_t &dataSize)
bool setClipboard (const char *mimeType, const void *data, size_t dataSize)
bool startFileDrag (const char *filename)
bool isAcceptingFileDrops () const noexcept
bool setAcceptingFileDrops (bool accept)
bool setCursor (MouseCursor cursor)
bool addIdleCallback (IdleCallback *callback, uint timerFrequencyInMs=0)
bool removeIdleCallback (IdleCallback *callback)
Application & getApp () const noexcept
const GraphicsContext & getGraphicsContext () const noexcept
uintptr_t getNativeWindowHandle () const noexcept
const char * getPortalParentHandle () const noexcept
double getScaleFactor () const noexcept
void focus ()
bool anyWidgetWantsKeyboardFocus ()
void repaint () noexcept
void repaint (const Rectangle< uint > &rect) noexcept
void renderToPicture (const char *filename)
void runAsModal (bool blockWait=false)
Size< uint > getGeometryConstraints (bool &keepAspectRatio)
void setGeometryConstraints (uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false, bool resizeNowIfAutoScaling=true)
void setTransientParent (uintptr_t transientParentWindowHandle)
bool getIgnoringKeyRepeat () const noexcept
double getScaling () const noexcept
void exec (bool blockWait=false)
Public Member Functions inherited from TopLevelWidget
 TopLevelWidget (Window &windowToMapTo)
 ~TopLevelWidget () override
Application & getApp () const noexcept
Window & getWindow () const noexcept
void setWidth (uint width)
void setHeight (uint height)
void setSize (uint width, uint height)
void setSize (const Size< uint > &size)
void repaint () noexcept override
void repaint (const Rectangle< uint > &rect) noexcept
const void * getClipboard (size_t &dataSize)
bool setClipboard (const char *mimeType, const void *data, size_t dataSize)
bool setCursor (MouseCursor cursor)
bool addIdleCallback (IdleCallback *callback, uint timerFrequencyInMs=0)
bool removeIdleCallback (IdleCallback *callback)
double getScaleFactor () const noexcept
void setGeometryConstraints (uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false, bool resizeNowIfAutoScaling=true)
Application & getParentApp () const noexcept
Window & getParentWindow () const noexcept
Public Member Functions inherited from Widget
virtual ~Widget ()
bool isVisible () const noexcept
void setVisible (bool visible)
void show ()
void hide ()
uint getWidth () const noexcept
uint getHeight () const noexcept
const Size< uint > getSize () const noexcept
void setWidth (uint width) noexcept
void setHeight (uint height) noexcept
void setSize (uint width, uint height) noexcept
void setSize (const Size< uint > &size) noexcept
uint getId () const noexcept
const char * getName () const noexcept
void setId (uint id) noexcept
void setName (const char *name) noexcept
Application & getApp () const noexcept
Window & getWindow () const noexcept
const GraphicsContext & getGraphicsContext () const noexcept
TopLevelWidget * getTopLevelWidget () const noexcept
std::list< SubWidget * > getChildren () const noexcept
virtual bool wantsKeyboardFocus ()
Application & getParentApp () const noexcept
Window & getParentWindow () const noexcept

Additional Inherited Members

Protected Member Functions inherited from Window
std::vector< ClipboardDataOffer > getClipboardDataOfferTypes ()
virtual uint32_t onClipboardDataOffer ()
virtual bool onFileDragEnter (const FileDropEvent &ev)
virtual bool onFileDragMove (const FileDropEvent &ev)
virtual void onFileDragLeave ()
virtual bool onFileDrop (const FileDropEvent &ev)
virtual bool onClose ()
virtual void onFocus (bool focus, CrossingMode mode)
virtual void onReshape (uint width, uint height)
virtual void onScaleFactorChanged (double scaleFactor)
Protected Member Functions inherited from TopLevelWidget
bool onKeyboard (const KeyboardEvent &) override
bool onCharacterInput (const CharacterInputEvent &) override
bool onMouse (const MouseEvent &) override
bool onMotion (const MotionEvent &) override
bool onScroll (const ScrollEvent &) override
Protected Member Functions inherited from Widget
virtual void onDisplay ()
virtual void onResize (const ResizeEvent &)
virtual void onFocusChanged (const FocusEvent &)
virtual bool onSpecial (const SpecialEvent &)

Constructor & Destructor Documentation

◆ StandaloneWindow() [1/2]

StandaloneWindow::StandaloneWindow ( Application & app)
inline

Constructor without parent.

◆ StandaloneWindow() [2/2]

StandaloneWindow::StandaloneWindow ( Application & app,
Window & transientParentWindow )
inline

Constructor with a transient parent window, typically used to run as modal.

Member Function Documentation

◆ done()

void StandaloneWindow::done ( )
inline

Clear current graphics context. Must be called at the end of your StandaloneWindow constructor.

◆ reinit()

void StandaloneWindow::reinit ( )
inline

Get a graphics context back again. Called when a valid graphics context is needed outside the constructor.

◆ isVisible()

bool StandaloneWindow::isVisible ( ) const
inlinenoexcept

Overloaded functions to ensure they apply to the Window class.

◆ repaint()

void StandaloneWindow::repaint ( )
inlinevirtualnoexcept

Request repaint of this widget's area to the window this widget belongs to. On the raw Widget class this function does nothing.

Reimplemented from Widget.


The documentation for this class was generated from the following file: