CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui Module Reference

Exported Modules

module  std
 
module  cydui.components.stylist
 
module  cydui.components.renderer
 
module  cydui.components
 
module  cydui.dimensions
 
module  cydui.events
 
module  cydui.application
 
module  cydui.application
 
module  cydui.application
 
module  cydui.application
 
module  cydui.styling
 
module  cydui.styling
 
module  cydui.styling
 
module  cydui.window_events
 
module  cydui.window_events
 
module  cydui.window_events
 
module  cydui.components.updater
 
module  quantify
 
module  cydui.animations
 
module  cydui.animations
 
module  cydui.graphics
 
module  cydui.graphics
 
module  cydui.graphics
 
module  reflect
 

Classes

class  cydui::CWindow
 
struct  cydui::CWindow::builder_t
 
class  cydui::Layout
 

Typedefs

using sptr = std::shared_ptr<CWindow>
 

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)
 
 builder_t (Layout *layout)
 
 builder_t (const builder_t &)=delete
 
builder_tposition (int x, int y)
 
builder_tsize (int width, int height)
 
builder_ttitle (const std::string &title)
 
builder_tstyle (const std::string &style)
 
builder_tstylesheet (const std::filesystem::path &stylesheet)
 
sptr show ()
 
static builder_t make (Layout *layout)
 
template<typename Component>
static builder_t make (typename Component::props_t props={ })
 
graphics::window_tnative ()
 
void terminate ()
 
bool is_open () const
 
std::pair< int, int > get_position ()
 
std::pair< int, int > get_size ()
 
 cydui::EVENT (RequestComponentFocus)
 
template<components::ComponentConcept C>
Layoutcydui::create (C &&root_component)
 
template<components::ComponentConcept C>
Layoutcydui::create (C &root_component)
 
 ~Layout ()
 
components::component_base_tfind_by_coords (dimensions::screen_measure x, dimensions::screen_measure y)
 
bool update_all_dirty (const components::component_base_t::sptr &c)
 
bool render_if_dirty (const components::component_base_t::sptr &c)
 
void update_component (const components::component_base_t::sptr &target)
 
void clear_hovering_flag (const components::component_state_ref &state, const MotionEvent &ev)
 
bool set_hovering_flag (components::component_state_t *state, const MotionEvent &ev, bool clear_children=true)
 
void attach_stylesheet (const StyleSheet::sptr &style_sheet)
 
void bind_window (const CWindow::sptr &_win)
 
components::component_state_ref get_root_state () const
 

Variables

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

Files

file  include/cyd_ui/cydui.cppm
 
file  include/cyd_ui/layout/layout.cppm
 !
 
file  include/cyd_ui/layout/layout_ev_dispatch.cppm
 
file  include/cyd_ui/window.cppm
 !