CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::components::style_data_t< Style > Class Template Referencefinalexport
+ Inheritance diagram for cydui::components::style_data_t< Style >:
+ Collaboration diagram for cydui::components::style_data_t< Style >:

Public Member Functions

 style_data_t (const std::string &ctx_name)
 
void reset () override
 
void reset_field (const refl::field_info *field, bool is_base_field) override
 
auto & get_style ()
 
auto & get_style_override ()
 
void set_base_field_override (refl::field_path field_info, refl::any value) override
 
void set_field_override (refl::field_path field_info, refl::any value) override
 
bool has_base_field_override (refl::field_path field_info) override
 
bool has_field_override (refl::field_path field_info) override
 
void clear_style_override () override
 
const std::shared_ptr< dimension_ctx_t > & get_dimensional_ctx () override
 
void set_style_transform (auto &&transform_func)
 
void clear_style_transform ()
 
style_base_tas_base () override
 
void * as_raw () override
 
void apply_override () override
 
void apply_transform () override
 
- Public Member Functions inherited from cydui::components::style_data_base_t
virtual ~style_data_base_t ()=default
 
bool update_override_with (const style_override_data_t &override_data)
 
std::shared_ptr< dimension_ctx_tget_dimension_ctx ()
 

Additional Inherited Members

- Public Attributes inherited from cydui::components::style_data_base_t
std::unordered_set< std::string > tags {}
 
std::vector< style_rule_instance_trules {}
 
style_override_data_t style_override_data {}
 
std::shared_ptr< dimension_ctx_tdimension_ctx_ {std::make_shared<dimension_ctx_t>()}
 

Detailed Description

template<typename Style>
class cydui::components::style_data_t< Style >

Definition at line 146 of file component_style.cppm.

Constructor & Destructor Documentation

◆ style_data_t()

template<typename Style>
cydui::components::style_data_t< Style >::style_data_t ( const std::string & ctx_name)
inlineexport

Definition at line 148 of file component_style.cppm.

+ Here is the call graph for this function:

Member Function Documentation

◆ apply_override()

template<typename Style>
void cydui::components::style_data_t< Style >::apply_override ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 229 of file component_style.cppm.

+ Here is the call graph for this function:

◆ apply_transform()

template<typename Style>
void cydui::components::style_data_t< Style >::apply_transform ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 241 of file component_style.cppm.

◆ as_base()

template<typename Style>
style_base_t & cydui::components::style_data_t< Style >::as_base ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 221 of file component_style.cppm.

+ Here is the caller graph for this function:

◆ as_raw()

template<typename Style>
void * cydui::components::style_data_t< Style >::as_raw ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 225 of file component_style.cppm.

+ Here is the call graph for this function:

◆ clear_style_override()

template<typename Style>
void cydui::components::style_data_t< Style >::clear_style_override ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 204 of file component_style.cppm.

◆ clear_style_transform()

template<typename Style>
void cydui::components::style_data_t< Style >::clear_style_transform ( )
inlineexport

Definition at line 217 of file component_style.cppm.

◆ get_dimensional_ctx()

template<typename Style>
const std::shared_ptr< dimension_ctx_t > & cydui::components::style_data_t< Style >::get_dimensional_ctx ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 208 of file component_style.cppm.

◆ get_style()

template<typename Style>
auto & cydui::components::style_data_t< Style >::get_style ( )
inlineexport

Definition at line 184 of file component_style.cppm.

+ Here is the caller graph for this function:

◆ get_style_override()

template<typename Style>
auto & cydui::components::style_data_t< Style >::get_style_override ( )
inlineexport

Definition at line 188 of file component_style.cppm.

◆ has_base_field_override()

template<typename Style>
bool cydui::components::style_data_t< Style >::has_base_field_override ( refl::field_path field_info)
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 198 of file component_style.cppm.

◆ has_field_override()

template<typename Style>
bool cydui::components::style_data_t< Style >::has_field_override ( refl::field_path field_info)
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 201 of file component_style.cppm.

◆ reset()

template<typename Style>
void cydui::components::style_data_t< Style >::reset ( )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 169 of file component_style.cppm.

+ Here is the call graph for this function:

◆ reset_field()

template<typename Style>
void cydui::components::style_data_t< Style >::reset_field ( const refl::field_info * field,
bool is_base_field )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 173 of file component_style.cppm.

+ Here is the call graph for this function:

◆ set_base_field_override()

template<typename Style>
void cydui::components::style_data_t< Style >::set_base_field_override ( refl::field_path field_info,
refl::any value )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 192 of file component_style.cppm.

◆ set_field_override()

template<typename Style>
void cydui::components::style_data_t< Style >::set_field_override ( refl::field_path field_info,
refl::any value )
inlineoverrideexportvirtual

Implements cydui::components::style_data_base_t.

Definition at line 195 of file component_style.cppm.

◆ set_style_transform()

template<typename Style>
void cydui::components::style_data_t< Style >::set_style_transform ( auto && transform_func)
inlineexport

Definition at line 212 of file component_style.cppm.


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