foobar2000 SDK  2015-08-03
Public Member Functions | Protected Member Functions | Private Types | Private Attributes
ui_element_instance_callback_receiver

#include <ui_element.h>

Public Member Functions

virtual t_size host_notify (ui_element_instance *source, const GUID &what, t_size param1, const void *param2, t_size param2size)
 
virtual bool is_edit_mode_enabled ()
 
virtual bool is_elem_visible (service_ptr_t< ui_element_instance > elem)
 
virtual void on_min_max_info_change ()
 
virtual bool query_color (const GUID &p_what, t_ui_color &p_out)
 
virtual t_ui_font query_font_ex (const GUID &)
 
virtual bool request_activation (service_ptr_t< class ui_element_instance > p_item)
 
virtual void request_replace (service_ptr_t< class ui_element_instance > p_item)
 
ui_element_instance_callback_ptr ui_element_instance_callback_get_ptr ()
 
void ui_element_instance_callback_release ()
 

Protected Member Functions

 ui_element_instance_callback_receiver ()
 
 ~ui_element_instance_callback_receiver ()
 

Private Types

typedef ui_element_instance_callback_impl< t_selft_callback
 
typedef ui_element_instance_callback_receiver t_self
 

Private Attributes

service_ptr_t< t_callbackm_callback
 

Detailed Description

ui_element_instance_callback implementation helper.

Definition at line 237 of file ui_element.h.

Member Typedef Documentation

Definition at line 265 of file ui_element.h.

Definition at line 264 of file ui_element.h.

Constructor & Destructor Documentation

ui_element_instance_callback_receiver::~ui_element_instance_callback_receiver ( )
inlineprotected

Definition at line 258 of file ui_element.h.

ui_element_instance_callback_receiver::ui_element_instance_callback_receiver ( )
inlineprotected

Definition at line 261 of file ui_element.h.

261 {}

Member Function Documentation

virtual t_size ui_element_instance_callback_receiver::host_notify ( ui_element_instance source,
const GUID what,
t_size  param1,
const void *  param2,
t_size  param2size 
)
inlinevirtual

Definition at line 246 of file ui_element.h.

246 {return 0;}
virtual bool ui_element_instance_callback_receiver::is_edit_mode_enabled ( )
inlinevirtual

Definition at line 242 of file ui_element.h.

242 {return false;}
virtual bool ui_element_instance_callback_receiver::is_elem_visible ( service_ptr_t< ui_element_instance elem)
inlinevirtual

Definition at line 245 of file ui_element.h.

245 {return true;}
virtual void ui_element_instance_callback_receiver::on_min_max_info_change ( )
inlinevirtual

Definition at line 239 of file ui_element.h.

239 {}
virtual bool ui_element_instance_callback_receiver::query_color ( const GUID p_what,
t_ui_color p_out 
)
inlinevirtual

Definition at line 240 of file ui_element.h.

240 {return false;}
virtual t_ui_font ui_element_instance_callback_receiver::query_font_ex ( const GUID )
inlinevirtual

Definition at line 244 of file ui_element.h.

244 {return NULL;}
virtual bool ui_element_instance_callback_receiver::request_activation ( service_ptr_t< class ui_element_instance p_item)
inlinevirtual

Definition at line 241 of file ui_element.h.

241 {return false;}
virtual void ui_element_instance_callback_receiver::request_replace ( service_ptr_t< class ui_element_instance p_item)
inlinevirtual

Definition at line 243 of file ui_element.h.

243 {}
ui_element_instance_callback_ptr ui_element_instance_callback_receiver::ui_element_instance_callback_get_ptr ( )
inline

Definition at line 247 of file ui_element.h.

247  {
248  if (m_callback.is_empty()) m_callback = new service_impl_t<t_callback>(this);
249  return m_callback;
250  }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
service_ptr_t< t_callback > m_callback
Definition: ui_element.h:266
void ui_element_instance_callback_receiver::ui_element_instance_callback_release ( )
inline

Definition at line 251 of file ui_element.h.

251  {
252  if (m_callback.is_valid()) {
253  m_callback->orphan();
254  m_callback.release();
255  }
256  }
service_ptr_t< t_callback > m_callback
Definition: ui_element.h:266

Field Documentation

service_ptr_t<t_callback> ui_element_instance_callback_receiver::m_callback
private

Definition at line 266 of file ui_element.h.


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