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

#include <shared.h>

Public Member Functions

 string_utf8_from_window (HWND wnd)
 
 string_utf8_from_window (HWND wnd, UINT id)
 
const char * get_ptr () const
 
bool is_empty () const
 
t_size length () const
 
 operator const char * () const
 

Private Attributes

pfc::string8 m_data
 

Detailed Description

Definition at line 282 of file shared.h.

Constructor & Destructor Documentation

string_utf8_from_window::string_utf8_from_window ( HWND  wnd)
inline

Definition at line 285 of file shared.h.

286  {
287  uGetWindowText(wnd,m_data);
288  }
BOOL SHARED_EXPORT uGetWindowText(HWND wnd, pfc::string_base &out)
pfc::string8 m_data
Definition: shared.h:298
string_utf8_from_window::string_utf8_from_window ( HWND  wnd,
UINT  id 
)
inline

Definition at line 289 of file shared.h.

290  {
291  uGetDlgItemText(wnd,id,m_data);
292  }
BOOL SHARED_EXPORT uGetDlgItemText(HWND wnd, UINT id, pfc::string_base &out)
pfc::string8 m_data
Definition: shared.h:298

Member Function Documentation

const char* string_utf8_from_window::get_ptr ( ) const
inline

Definition at line 296 of file shared.h.

296 {return m_data.get_ptr();}
const char * get_ptr() const
Definition: string_base.h:382
pfc::string8 m_data
Definition: shared.h:298
bool string_utf8_from_window::is_empty ( ) const
inline

Definition at line 295 of file shared.h.

295 {return length() == 0;}
t_size length() const
Definition: shared.h:294
t_size string_utf8_from_window::length ( ) const
inline

Definition at line 294 of file shared.h.

294 {return m_data.length();}
pfc::string8 m_data
Definition: shared.h:298
t_size length() const
For compatibility with old conventions.
Definition: string_base.h:209
string_utf8_from_window::operator const char * ( ) const
inline

Definition at line 293 of file shared.h.

293 {return m_data.get_ptr();}
const char * get_ptr() const
Definition: string_base.h:382
pfc::string8 m_data
Definition: shared.h:298

Field Documentation

pfc::string8 string_utf8_from_window::m_data
private

Definition at line 298 of file shared.h.


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