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

Public Member Functions

 ~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
 

Friends

template<components::ComponentConcept C>
Layoutcreate (C &&root_component)
 
template<components::ComponentConcept C>
Layoutcreate (C &root_component)
 

Detailed Description

Definition at line 44 of file layout.cppm.

Constructor & Destructor Documentation

◆ ~Layout()

cydui::Layout::~Layout ( )
inlineexport

Definition at line 69 of file layout.cppm.

Member Function Documentation

◆ attach_stylesheet()

void cydui::Layout::attach_stylesheet ( const StyleSheet::sptr & style_sheet)
export

Definition at line 325 of file layout.cppm.

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

◆ bind_window()

void cydui::Layout::bind_window ( const CWindow::sptr & _win)
export

Configure root component

Make event listeners

Definition at line 334 of file layout.cppm.

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

◆ clear_hovering_flag()

void cydui::Layout::clear_hovering_flag ( const components::component_state_ref & state,
const MotionEvent & ev )
export

Definition at line 428 of file layout.cppm.

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

◆ find_by_coords()

Definition at line 320 of file layout.cppm.

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

◆ get_root_state()

components::component_state_ref cydui::Layout::get_root_state ( ) const
inlineexport

Definition at line 108 of file layout.cppm.

◆ render_if_dirty()

bool cydui::Layout::render_if_dirty ( const components::component_base_t::sptr & c)
export

Definition at line 305 of file layout.cppm.

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

◆ set_hovering_flag()

bool cydui::Layout::set_hovering_flag ( components::component_state_t * state,
const MotionEvent & ev,
bool clear_children = true )
export

Definition at line 383 of file layout.cppm.

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

◆ update_all_dirty()

bool cydui::Layout::update_all_dirty ( const components::component_base_t::sptr & c)
export

Definition at line 291 of file layout.cppm.

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

◆ update_component()

void cydui::Layout::update_component ( const components::component_base_t::sptr & target)
export

Definition at line 284 of file layout.cppm.

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

Friends And Related Symbol Documentation

◆ create [1/2]

template<components::ComponentConcept C>
Layout * create ( C && root_component)
friend

Definition at line 140 of file layout.cppm.

◆ create [2/2]

template<components::ComponentConcept C>
Layout * create ( C & root_component)
friend

Definition at line 150 of file layout.cppm.


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