#include <window_placement_helper.h>
Definition at line 21 of file window_placement_helper.h.
cfg_window_size::cfg_window_size |
( |
const GUID & |
p_guid | ) |
|
Retrieves state of the variable. Called only from main thread, when writing configuration file.
- Parameters
-
p_stream | Stream receiving state of the variable. |
Implements cfg_var_writer.
Definition at line 188 of file window_placement_helper.cpp.
194 PFC_ASSERT(IsWindow(window));
200 p_stream->write_lendian_t(
m_width,p_abort);
201 p_stream->write_lendian_t(
m_height,p_abort);
static bool g_is_enabled()
pfc::list_hybrid_t< HWND, 2 > m_windows
bool read_from_window(HWND window)
bool cfg_window_size::on_window_creation |
( |
HWND |
window | ) |
|
Definition at line 141 of file window_placement_helper.cpp.
t_size add_item(const T &item)
static bool g_is_enabled()
pfc::list_hybrid_t< HWND, 2 > m_windows
static BOOL SetWindowSize(HWND p_wnd, unsigned p_x, unsigned p_y)
bool have_item(const t_search &p_item) const
void cfg_window_size::on_window_destruction |
( |
HWND |
window | ) |
|
Definition at line 155 of file window_placement_helper.cpp.
pfc::list_hybrid_t< HWND, 2 > m_windows
void remove_item(const T &item)
bool read_from_window(HWND window)
bool have_item(const t_search &p_item) const
bool cfg_window_size::read_from_window |
( |
HWND |
window | ) |
|
Sets state of the variable. Called only from main thread, when reading configuration file.
- Parameters
-
p_stream | Stream containing new state of the variable. |
p_sizehint | Number of bytes contained in the stream; reading past p_sizehint bytes will fail (EOF). |
Implements cfg_var_reader.
Definition at line 206 of file window_placement_helper.cpp.
207 if (p_sizehint == 0)
return;
210 p_stream->read_lendian_t(width,p_abort);
211 p_stream->read_lendian_t(height,p_abort);
212 }
catch(exception_io_data) {
return;}
The documentation for this class was generated from the following files: