foobar2000 SDK  2015-08-03
Public Member Functions
cfgDialogPosition

#include <WindowPositionUtils.h>

+ Inheritance diagram for cfgDialogPosition:

Public Member Functions

 cfgDialogPosition (const GUID &id)
 
void get_data_raw (stream_writer *p_stream, abort_callback &p_abort)
 
void set_data_raw (stream_reader *p_stream, t_size p_sizehint, abort_callback &p_abort)
 
- Public Member Functions inherited from cfgDialogPositionData
 cfgDialogPositionData ()
 
void AddWindow (CWindow wnd)
 
void FetchConfig ()
 
void OverrideDefaultSize (t_uint32 width, t_uint32 height)
 
void RemoveWindow (CWindow wnd)
 
- Public Member Functions inherited from cfg_var
GUID get_guid () const
 
- Public Member Functions inherited from cfg_var_reader
 cfg_var_reader (const GUID &guid)
 
 ~cfg_var_reader ()
 
- Public Member Functions inherited from cfg_var_writer
 cfg_var_writer (const GUID &guid)
 
 ~cfg_var_writer ()
 

Additional Inherited Members

- Public Types inherited from cfgDialogPositionData
enum  { posInvalid = 0x80000000, sizeInvalid = 0xFFFFFFFF, dpiInvalid = 0 }
 
- Static Public Member Functions inherited from cfg_var_reader
static void config_read_file (stream_reader *p_stream, abort_callback &p_abort)
 
- Static Public Member Functions inherited from cfg_var_writer
static void config_write_file (stream_writer *p_stream, abort_callback &p_abort)
 
- Data Fields inherited from cfgDialogPositionData
t_uint32 m_dpiX
 
t_uint32 m_dpiY
 
t_uint32 m_height
 
t_int32 m_posX
 
t_int32 m_posY
 
t_uint32 m_width
 
- Data Fields inherited from cfg_var_reader
const GUID m_guid
 
- Data Fields inherited from cfg_var_writer
const GUID m_guid
 
- Protected Member Functions inherited from cfg_var
 cfg_var (const GUID &p_guid)
 

Detailed Description

Definition at line 286 of file WindowPositionUtils.h.

Constructor & Destructor Documentation

cfgDialogPosition::cfgDialogPosition ( const GUID id)
inline

Definition at line 288 of file WindowPositionUtils.h.

288 : cfg_var(id) {}
cfg_var(const GUID &p_guid)
Definition: cfg_var.h:57

Member Function Documentation

void cfgDialogPosition::get_data_raw ( stream_writer p_stream,
abort_callback p_abort 
)
inlinevirtual

Retrieves state of the variable. Called only from main thread, when writing configuration file.

Parameters
p_streamStream receiving state of the variable.

Implements cfg_var_writer.

Definition at line 289 of file WindowPositionUtils.h.

289 {FetchConfig(); stream_writer_formatter<>(*p_stream, p_abort) << *pfc::implicit_cast<cfgDialogPositionData*>(this);}
void cfgDialogPosition::set_data_raw ( stream_reader p_stream,
t_size  p_sizehint,
abort_callback p_abort 
)
inlinevirtual

Sets state of the variable. Called only from main thread, when reading configuration file.

Parameters
p_streamStream containing new state of the variable.
p_sizehintNumber of bytes contained in the stream; reading past p_sizehint bytes will fail (EOF).

Implements cfg_var_reader.

Definition at line 290 of file WindowPositionUtils.h.

290 {stream_reader_formatter<>(*p_stream, p_abort) >> *pfc::implicit_cast<cfgDialogPositionData*>(this);}

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