foobar2000 SDK  2015-08-03
Public Member Functions | Private Member Functions | Private Attributes
win32_icon

#include <win-objects.h>

Public Member Functions

 win32_icon (HICON p_initval)
 
 win32_icon ()
 
 ~win32_icon ()
 
HICON detach ()
 
HICON get () const
 
bool is_valid () const
 
void release ()
 
void set (HICON p_icon)
 

Private Member Functions

 win32_icon (const win32_icon &)
 
const win32_iconoperator= (const win32_icon &)
 

Private Attributes

HICON m_icon
 

Detailed Description

Definition at line 162 of file win-objects.h.

Constructor & Destructor Documentation

win32_icon::win32_icon ( HICON  p_initval)
inline

Definition at line 164 of file win-objects.h.

164 : m_icon(p_initval) {}
HICON m_icon
Definition: win-objects.h:180
win32_icon::win32_icon ( )
inline

Definition at line 165 of file win-objects.h.

165 : m_icon(NULL) {}
HICON m_icon
Definition: win-objects.h:180
win32_icon::~win32_icon ( )
inline

Definition at line 166 of file win-objects.h.

166 {release();}
void release()
win32_icon::win32_icon ( const win32_icon )
inlineprivate

Definition at line 177 of file win-objects.h.

177 {throw pfc::exception_not_implemented();}

Member Function Documentation

HICON win32_icon::detach ( )
inline

Definition at line 172 of file win-objects.h.

172 {return pfc::replace_t(m_icon,(HICON)NULL);}
t_type replace_t(t_type &p_var, const t_newval &p_newval)
Definition: primitives.h:682
HICON m_icon
Definition: win-objects.h:180
HICON win32_icon::get ( ) const
inline

Definition at line 171 of file win-objects.h.

171 {return m_icon;}
HICON m_icon
Definition: win-objects.h:180
bool win32_icon::is_valid ( ) const
inline

Definition at line 174 of file win-objects.h.

174 {return m_icon != NULL;}
HICON m_icon
Definition: win-objects.h:180
const win32_icon& win32_icon::operator= ( const win32_icon )
inlineprivate

Definition at line 178 of file win-objects.h.

178 {throw pfc::exception_not_implemented();}
void win32_icon::release ( )

Definition at line 265 of file win-objects.cpp.

265  {
266  HICON temp = detach();
267  if (temp != NULL) DestroyIcon(temp);
268 }
HICON detach()
Definition: win-objects.h:172
void win32_icon::set ( HICON  p_icon)
inline

Definition at line 170 of file win-objects.h.

170 {release(); m_icon = p_icon;}
void release()
HICON m_icon
Definition: win-objects.h:180

Field Documentation

HICON win32_icon::m_icon
private

Definition at line 180 of file win-objects.h.


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