foobar2000 SDK  2015-01-14
Data Structures | Public Types | Public Member Functions | Static Public Member Functions
ui_element_impl< TImpl, TInterface >

#include <ui_element.h>

+ Inheritance diagram for ui_element_impl< TImpl, TInterface >:

Data Structures

class  ui_element_instance_impl_helper
 

Public Types

typedef ui_element_instance_impl_helper TInstance
 

Public Member Functions

ui_element_children_enumerator_ptr enumerate_children (ui_element_config::ptr cfg)
 
ui_element_config::ptr get_default_configuration ()
 
bool get_description (pfc::string_base &out)
 
GUID get_guid ()
 
void get_name (pfc::string_base &out)
 
GUID get_subclass ()
 
ui_element_instance::ptr instantiate (HWND parent, ui_element_config::ptr cfg, ui_element_instance_callback::ptr callback)
 

Static Public Member Functions

static TInstance const & instanceGlobals ()
 

Detailed Description

template<typename TImpl, typename TInterface = ui_element>
class ui_element_impl< TImpl, TInterface >

Definition at line 608 of file ui_element.h.

Member Typedef Documentation

template<typename TImpl, typename TInterface = ui_element>
typedef ui_element_instance_impl_helper ui_element_impl< TImpl, TInterface >::TInstance

Definition at line 632 of file ui_element.h.

Member Function Documentation

template<typename TImpl, typename TInterface = ui_element>
ui_element_children_enumerator_ptr ui_element_impl< TImpl, TInterface >::enumerate_children ( ui_element_config::ptr  cfg)
inline

Definition at line 620 of file ui_element.h.

620 {return NULL;}
template<typename TImpl, typename TInterface = ui_element>
ui_element_config::ptr ui_element_impl< TImpl, TInterface >::get_default_configuration ( )
inline

Definition at line 619 of file ui_element.h.

619 { return TImpl::g_get_default_configuration(); }
template<typename TImpl, typename TInterface = ui_element>
bool ui_element_impl< TImpl, TInterface >::get_description ( pfc::string_base out)
inline

Definition at line 621 of file ui_element.h.

621 {out = TImpl::g_get_description(); return true;}
template<typename TImpl, typename TInterface = ui_element>
GUID ui_element_impl< TImpl, TInterface >::get_guid ( )
inline

Definition at line 610 of file ui_element.h.

610 { return TImpl::g_get_guid();}
template<typename TImpl, typename TInterface = ui_element>
void ui_element_impl< TImpl, TInterface >::get_name ( pfc::string_base out)
inline

Definition at line 612 of file ui_element.h.

612 { TImpl::g_get_name(out); }
template<typename TImpl, typename TInterface = ui_element>
GUID ui_element_impl< TImpl, TInterface >::get_subclass ( )
inline

Definition at line 611 of file ui_element.h.

611 { return TImpl::g_get_subclass();}
template<typename TImpl, typename TInterface = ui_element>
static TInstance const& ui_element_impl< TImpl, TInterface >::instanceGlobals ( )
inlinestatic

Definition at line 633 of file ui_element.h.

633 {return *reinterpret_cast<const TInstance*>(NULL);}
ui_element_instance_impl_helper TInstance
Definition: ui_element.h:632
template<typename TImpl, typename TInterface = ui_element>
ui_element_instance::ptr ui_element_impl< TImpl, TInterface >::instantiate ( HWND  parent,
ui_element_config::ptr  cfg,
ui_element_instance_callback::ptr  callback 
)
inline

Definition at line 613 of file ui_element.h.

613  {
614  PFC_ASSERT( cfg->get_guid() == get_guid() );
616  item->initialize_window(parent);
617  return item;
618  }
Special service_impl_t replacement for service classes that also implement ATL/WTL windows...
Definition: misc.h:307
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes. This assumes that the pointers are valid all the time (can't point to null). Mainly intended to be used for scenarios where null pointers are not valid and relevant code should crash ASAP if somebody passes invalid pointers around. You want to use service_ptr_t<> rather than service_nnptr_t<> most of the time.
Definition: service.h:51

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