CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::provide_context< ContextType > Struct Template Referenceexport

Public Types

using context_type = ContextType
 

Public Member Functions

 provide_context ()
 
 provide_context (const provide_context &other)=default
 
provide_contextoperator= (const provide_context &other)=default
 
 provide_context (provide_context &&other) noexcept=default
 
provide_contextoperator= (provide_context &&other)=default
 
context_typeoperator-> ()
 
context_typeoperator* ()
 
void notify ()
 
components::component_holder_t operator> (with_context &&components)
 
 operator std::shared_ptr< context_type > ()
 

Friends

struct provide_context_delegate
 

Detailed Description

template<typename ContextType>
struct cydui::provide_context< ContextType >

Definition at line 167 of file component_contexts.cppm.

Member Typedef Documentation

◆ context_type

template<typename ContextType>
using cydui::provide_context< ContextType >::context_type = ContextType

Definition at line 168 of file component_contexts.cppm.

Constructor & Destructor Documentation

◆ provide_context() [1/3]

template<typename ContextType>
cydui::provide_context< ContextType >::provide_context ( )
inline

Definition at line 171 of file component_contexts.cppm.

+ Here is the caller graph for this function:

◆ provide_context() [2/3]

template<typename ContextType>
cydui::provide_context< ContextType >::provide_context ( const provide_context< ContextType > & other)
default
+ Here is the call graph for this function:

◆ provide_context() [3/3]

template<typename ContextType>
cydui::provide_context< ContextType >::provide_context ( provide_context< ContextType > && other)
defaultnoexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ notify()

template<typename ContextType>
void cydui::provide_context< ContextType >::notify ( )
inline

Definition at line 195 of file component_contexts.cppm.

◆ operator std::shared_ptr< context_type >()

template<typename ContextType>
cydui::provide_context< ContextType >::operator std::shared_ptr< context_type > ( )
inline

Definition at line 201 of file component_contexts.cppm.

◆ operator*()

template<typename ContextType>
context_type & cydui::provide_context< ContextType >::operator* ( )
inline

Definition at line 191 of file component_contexts.cppm.

◆ operator->()

template<typename ContextType>
context_type * cydui::provide_context< ContextType >::operator-> ( )
inline

Definition at line 187 of file component_contexts.cppm.

◆ operator=() [1/2]

template<typename ContextType>
provide_context & cydui::provide_context< ContextType >::operator= ( const provide_context< ContextType > & other)
default
+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename ContextType>
provide_context & cydui::provide_context< ContextType >::operator= ( provide_context< ContextType > && other)
default
+ Here is the call graph for this function:

◆ operator>()

template<typename ContextType>
cydui::components::component_holder_t cydui::provide_context< ContextType >::operator> ( with_context && components)

Definition at line 263 of file component_base.cppm.

Friends And Related Symbol Documentation

◆ provide_context_delegate

template<typename ContextType>
friend struct provide_context_delegate
friend

Definition at line 169 of file component_contexts.cppm.


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