foobar2000 SDK  2015-01-14
window_placement_helper.h
Go to the documentation of this file.
1 #ifdef _WIN32
2 
3 #ifndef _WINDOW_PLACEMENT_HELPER_H_
4 #define _WINDOW_PLACEMENT_HELPER_H_
5 
7 {
8 public:
9  bool on_window_creation(HWND window);//returns true if window position has been changed, false if not
10  void on_window_creation_silent(HWND window);
11  void on_window_destruction(HWND window);
12  bool read_from_window(HWND window);
13  void get_data_raw(stream_writer * p_stream,abort_callback & p_abort);
14  void set_data_raw(stream_reader * p_stream,t_size p_sizehint,abort_callback & p_abort);
15  cfg_window_placement(const GUID & p_guid);
16 private:
18  WINDOWPLACEMENT m_data;
19 };
20 
21 class cfg_window_size : public cfg_var
22 {
23 public:
24  bool on_window_creation(HWND window);//returns true if window position has been changed, false if not
25  void on_window_destruction(HWND window);
26  bool read_from_window(HWND window);
27  void get_data_raw(stream_writer * p_stream,abort_callback & p_abort);
28  void set_data_raw(stream_reader * p_stream,t_size p_sizehint,abort_callback & p_abort);
29  cfg_window_size(const GUID & p_guid);
30 private:
33 };
34 
35 
36 #endif //_WINDOW_PLACEMENT_HELPER_H_
37 
38 #endif // _WIN32
void on_window_destruction(HWND window)
Definition: pfc.h:53
void set_data_raw(stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)
Sets state of the variable. Called only from main thread, when reading configuration file...
bool read_from_window(HWND window)
void get_data_raw(stream_writer *p_stream, abort_callback &p_abort)
Retrieves state of the variable. Called only from main thread, when writing configuration file...
cfg_window_placement(const GUID &p_guid)
size_t t_size
Definition: int_types.h:48
void on_window_creation_silent(HWND window)
bool on_window_creation(HWND window)
pfc::list_hybrid_t< HWND, 2 > m_windows
pfc::list_hybrid_t< HWND, 2 > m_windows
cfg_window_size(const GUID &p_guid)
void get_data_raw(stream_writer *p_stream, abort_callback &p_abort)
Retrieves state of the variable. Called only from main thread, when writing configuration file...
void on_window_destruction(HWND window)
void set_data_raw(stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)
Sets state of the variable. Called only from main thread, when reading configuration file...
bool read_from_window(HWND window)
Base class for configuration variable classes; provides self-registration mechaisms and methods to se...
Definition: cfg_var.h:54
bool on_window_creation(HWND window)
uint32_t t_uint32
Definition: int_types.h:5