foobar2000 SDK
2015-08-03
|
#include <ui_element.h>
Public Member Functions | |
t_uint32 | get_dialog_texture (ui_element_instance *source) |
bool | is_border_needed (ui_element_instance *source) |
virtual bool | is_edit_mode_enabled ()=0 |
bool | is_elem_visible_ (service_ptr_t< class ui_element_instance > elem) |
t_size | notify_ (ui_element_instance *source, const GUID &what, t_size param1, const void *param2, t_size param2size) |
virtual void | on_alt_pressed (bool p_state)=0 |
virtual void | on_min_max_info_change ()=0 |
virtual bool | query_color (const GUID &p_what, t_ui_color &p_out)=0 |
t_ui_font | query_font () |
virtual t_ui_font | query_font_ex (const GUID &p_what)=0 |
t_ui_color | query_std_color (const GUID &p_what) |
virtual bool | request_activation (service_ptr_t< class ui_element_instance > p_item)=0 |
virtual void | request_replace (service_ptr_t< class ui_element_instance > p_item)=0 |
bool | set_elem_label (ui_element_instance *source, const char *label) |
Public Member Functions inherited from service_base | |
template<typename outPtr_t > | |
bool | cast (outPtr_t &outPtr) |
virtual int | service_add_ref ()=0 throw () |
virtual bool | service_query (service_ptr_t< service_base > &p_out, const GUID &p_guid) |
template<class T > | |
bool | service_query_t (service_ptr_t< T > &p_out) |
virtual int | service_release ()=0 throw () |
Private Member Functions | |
FB2K_MAKE_SERVICE_INTERFACE (ui_element_instance_callback, service_base) | |
Additional Inherited Members | |
Public Types inherited from service_base | |
typedef service_base | t_interface |
Protected Member Functions inherited from service_base | |
service_base () | |
~service_base () | |
Callback class passed by a UI element host to a UI element instance, allowing each UI element instance to communicate with its host.
Each ui_element_instance_callback implementation must also implement ui_element_instance_callback_v2.
Definition at line 138 of file ui_element.h.
|
private |
t_uint32 ui_element_instance_callback::get_dialog_texture | ( | ui_element_instance * | source | ) |
Definition at line 112 of file ui_element.cpp.
bool ui_element_instance_callback::is_border_needed | ( | ui_element_instance * | source | ) |
Definition at line 116 of file ui_element.cpp.
|
pure virtual |
Queries whether "edit mode" is enabled. Most of UI element editing functionality should be locked when it's not.
Implemented in ui_element_instance_callback_impl< t_receiver >.
bool ui_element_instance_callback::is_elem_visible_ | ( | service_ptr_t< class ui_element_instance > | elem | ) |
Definition at line 99 of file ui_element.cpp.
t_size ui_element_instance_callback::notify_ | ( | ui_element_instance * | source, |
const GUID & | what, | ||
t_size | param1, | ||
const void * | param2, | ||
t_size | param2size | ||
) |
Definition at line 120 of file ui_element.cpp.
|
pure virtual |
Deprecated, does nothing.
Implemented in ui_element_instance_callback_impl< t_receiver >.
|
pure virtual |
Implemented in ui_element_instance_callback_impl< t_receiver >.
|
pure virtual |
Returns true on success, false when the color is undefined and defaults such as global windows settings should be used.
Implemented in ui_element_instance_callback_impl< t_receiver >.
|
inline |
Deprecated - use query_font_ex. Equivalent to query_font_ex(ui_font_default).
Definition at line 158 of file ui_element.h.
Retrieves an user-configurable font to use for specified kind of display. See ui_font_* constant for possible parameters.
Implemented in ui_element_instance_callback_impl< t_receiver >.
t_ui_color ui_element_instance_callback::query_std_color | ( | const GUID & | p_what | ) |
Helper - a wrapper around query_color(), if the color is not user-overridden, returns relevant system color.
Definition at line 78 of file ui_element.cpp.
|
pure virtual |
Tells the host that specified element wants to activate itself as a result of some kind of external user command (eg. menu command). Host should ensure that requesting child element's window is visible.
.
Implemented in ui_element_instance_callback_impl< t_receiver >.
|
pure virtual |
Tells the host that the user has requested the element to be replaced with another one. Note: this is generally used only when "edit mode" is enabled, but legal to call when it's not (eg. dummy element calls it regardless of settings when clicked).
Implemented in ui_element_instance_callback_impl< t_receiver >.
bool ui_element_instance_callback::set_elem_label | ( | ui_element_instance * | source, |
const char * | label | ||
) |
Definition at line 108 of file ui_element.cpp.