elimiate nana::string for listbox
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Data Exchanger Implementation
|
||||
* Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2015 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -21,22 +21,26 @@ namespace paint{
|
||||
}
|
||||
|
||||
namespace system{
|
||||
/// a data exchange mechanism through Windows Clipboard, X11 Selection.
|
||||
|
||||
/// a data exchange mechanism through Windows Clipboard, X11 Selection.
|
||||
class dataexch
|
||||
{
|
||||
public:
|
||||
struct format
|
||||
enum class format
|
||||
{
|
||||
enum{ text, unicode, pixmap, end};
|
||||
text, pixmap
|
||||
};
|
||||
|
||||
void set(const nana::char_t* text);
|
||||
void set(const nana::string& text);
|
||||
void set(const std::string & text_utf8);
|
||||
void set(const std::wstring& text);
|
||||
|
||||
bool set(const nana::paint::graphics& g);
|
||||
void get(nana::string& str);
|
||||
|
||||
void get(std::string& text_utf8);
|
||||
void get(std::wstring& text);
|
||||
private:
|
||||
bool _m_set(unsigned type, const void* buf, std::size_t size);
|
||||
void* _m_get(unsigned type, size_t& size);
|
||||
bool _m_set(format, const void* buf, std::size_t size);
|
||||
void* _m_get(format, size_t& size);
|
||||
};
|
||||
|
||||
}//end namespace system
|
||||
|
||||
Reference in New Issue
Block a user