add nana::system::dataexch::set(const nana::paint::graphics& g) method

This commit is contained in:
beru
2015-04-26 15:40:58 +09:00
parent 458c6b1d3c
commit 575de13cc4
2 changed files with 94 additions and 3 deletions

View File

@@ -14,7 +14,13 @@
#define NANA_SYSTEM_DATAEXCH_HPP
#include <nana/basic_types.hpp>
namespace nana{ namespace system{
namespace nana{
namespace paint{
class graphics;
}
namespace system{
/// a data exchange mechanism through Windows Clipboard, X11 Selection.
class dataexch
{
@@ -26,6 +32,7 @@ namespace nana{ namespace system{
void set(const nana::char_t* text);
void set(const nana::string& text);
bool set(const nana::paint::graphics& g);
void get(nana::string& str);
private:
bool _m_set(unsigned type, const void* buf, std::size_t size);