Pyro higlevel API
|
Classes | |
class | Private |
internal More... | |
Public Member Functions | |
Clipboard (const String &cName="") | |
Constructor. More... | |
~Clipboard () | |
Destructor. More... | |
bool | Lock () |
Locks the clipboard. More... | |
void | Unlock () |
Unlocks the clipboard. More... | |
void | Clear () |
Clears the clipboard. More... | |
void | Commit () |
Adds the data to the clipboard. More... | |
Message * | GetData () |
Returns the data that was added to the clipboard. More... | |
Clipboard::Clipboard | ( | const String & | cName = "" | ) |
cName | - The name of the clipboard. If you pass a null string or just call the contructor the name that will be system_clipboard |
Clipboard::~Clipboard | ( | ) |
References os::Clipboard::Private::m_hReplyPort.
void Clipboard::Clear | ( | ) |
References os::Clipboard::Private::m_bCleared.
Referenced by os::TextEdit::GetRegion().
void Clipboard::Commit | ( | ) |
References os::String::c_str(), os::Message::Flatten(), os::Message::GetFlattenedSize(), os::Clipboard::Private::m_cBuffer, os::Clipboard::Private::m_cName, os::Clipboard::Private::m_hReplyPort, and os::Clipboard::Private::m_hServerPort.
Referenced by os::TextEdit::GetRegion().
Message * Clipboard::GetData | ( | ) |
References os::String::c_str(), os::Clipboard::Private::m_bCleared, os::Clipboard::Private::m_cBuffer, os::Clipboard::Private::m_cName, os::Clipboard::Private::m_hReplyPort, os::Clipboard::Private::m_hServerPort, os::Message::MakeEmpty(), and os::Message::Unflatten().
Referenced by os::TextEdit::GetRegion(), os::TextEdit::HandleKeyDown(), and os::TextView::Paste().
bool Clipboard::Lock | ( | ) |
References os::Locker::Lock(), os::Clipboard::Private::m_bCleared, and os::Clipboard::Private::m_cMutex.
Referenced by os::TextEdit::GetRegion(), os::TextEdit::HandleKeyDown(), and os::TextView::Paste().
void Clipboard::Unlock | ( | ) |
References os::Clipboard::Private::m_cBuffer, os::Clipboard::Private::m_cMutex, os::Message::MakeEmpty(), and os::Locker::Unlock().
Referenced by os::TextEdit::GetRegion(), os::TextEdit::HandleKeyDown(), and os::TextView::Paste().