CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::CWindow Class Referenceexport
module cydui
+ Inheritance diagram for cydui::CWindow:
+ Collaboration diagram for cydui::CWindow:

Classes

struct  builder_t
 

Public Types

using sptr = std::shared_ptr<CWindow>
 

Public Member Functions

 ~CWindow ()
 
template<typename... Args>
auto run_async (auto &&fun, Args &&... args)
 
template<typename... Args>
auto run (auto &&fun, Args &&... args)
 
template<typename... Args>
auto schedule (auto &&fun, Args &&... args)
 
template<typename... Args>
auto schedule (fabric::tasks::time_point tp, auto &&fun, Args &&... args)
 
template<typename... Args>
auto schedule (fabric::tasks::duration duration, auto &&fun, Args &&... args)
 
graphics::window_tnative ()
 
void terminate ()
 
bool is_open () const
 
std::pair< int, int > get_position ()
 
std::pair< int, int > get_size ()
 

Static Public Member Functions

static builder_t make (Layout *layout)
 
template<typename Component>
static builder_t make (typename Component::props_t props={ })
 

Public Attributes

std::unique_ptr< graphics::window_twin_ref
 
Layoutlayout
 
prof::context_t profiling_ctx { }
 
compositing::LayoutCompositor compositor { }
 

Detailed Description

Definition at line 35 of file window.cppm.

Constructor & Destructor Documentation

◆ ~CWindow()

cydui::CWindow::~CWindow ( )
export

Definition at line 217 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ get_position()

std::pair< int, int > cydui::CWindow::get_position ( )
export

Definition at line 238 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_size()

std::pair< int, int > cydui::CWindow::get_size ( )
export

Definition at line 246 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ is_open()

bool cydui::CWindow::is_open ( ) const
export

Definition at line 234 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ make() [1/2]

static builder_t cydui::CWindow::make ( Layout * layout)
inlinestaticexport

Definition at line 152 of file window.cppm.

+ Here is the caller graph for this function:

◆ make() [2/2]

template<typename Component>
CWindow::builder_t cydui::CWindow::make ( typename Component::props_t props = { })
staticexport

Definition at line 453 of file layout.cppm.

+ Here is the call graph for this function:

◆ native()

graphics::window_t * cydui::CWindow::native ( )
export

Definition at line 221 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ run()

template<typename... Args>
auto cydui::CWindow::run ( auto && fun,
Args &&... args )
inlineexport

Definition at line 63 of file window.cppm.

+ Here is the call graph for this function:

◆ run_async()

template<typename... Args>
auto cydui::CWindow::run_async ( auto && fun,
Args &&... args )
inlineexport

Definition at line 51 of file window.cppm.

+ Here is the caller graph for this function:

◆ schedule() [1/3]

template<typename... Args>
auto cydui::CWindow::schedule ( auto && fun,
Args &&... args )
inlineexport

Definition at line 69 of file window.cppm.

◆ schedule() [2/3]

template<typename... Args>
auto cydui::CWindow::schedule ( fabric::tasks::duration duration,
auto && fun,
Args &&... args )
inlineexport

Definition at line 81 of file window.cppm.

◆ schedule() [3/3]

template<typename... Args>
auto cydui::CWindow::schedule ( fabric::tasks::time_point tp,
auto && fun,
Args &&... args )
inlineexport

Definition at line 75 of file window.cppm.

◆ terminate()

void cydui::CWindow::terminate ( )
export

Definition at line 225 of file window.cppm.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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