foobar2000 SDK  2015-01-14
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 280 of file shared.h.

Constructor & Destructor Documentation

string_utf8_from_window::string_utf8_from_window ( HWND  wnd)
inline

Definition at line 283 of file shared.h.

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

Definition at line 287 of file shared.h.

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

Member Function Documentation

const char* string_utf8_from_window::get_ptr ( ) const
inline

Definition at line 294 of file shared.h.

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

Definition at line 293 of file shared.h.

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

Definition at line 292 of file shared.h.

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

Definition at line 291 of file shared.h.

291 {return m_data.get_ptr();}
const char * get_ptr() const
Definition: string_base.h:381
pfc::string8 m_data
Definition: shared.h:296

Field Documentation

pfc::string8 string_utf8_from_window::m_data
private

Definition at line 296 of file shared.h.


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