Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
ultralight::Clipboard Class Referenceabstract

#include <Ultralight/platform/Clipboard.h>

Details

User-defined clipboard interface.

The library uses this to read and write data to the system's clipboard.

AppCore automatically provides a platform-specific implementation of this that cuts, copies, and pastes to the OS clipboard when you call App::Create().

If you are using Renderer::Create() instead of App::Create(), you will need to provide your own implementation of this.

See also
Platform::set_clipboard().

Public Member Functions

virtual ~Clipboard ()
 
virtual void Clear ()=0
 Clear the clipboard.
 
virtual String ReadPlainText ()=0
 Read plain text from the clipboard.
 
virtual void WritePlainText (const String &text)=0
 Write plain text to the clipboard.
 

Constructor & Destructor Documentation

◆ ~Clipboard()

virtual ultralight::Clipboard::~Clipboard ( )
virtual

Member Function Documentation

◆ Clear()

virtual void ultralight::Clipboard::Clear ( )
pure virtual

Clear the clipboard.

◆ ReadPlainText()

virtual String ultralight::Clipboard::ReadPlainText ( )
pure virtual

Read plain text from the clipboard.

This is called when the library wants to read text from the OS clipboard.

◆ WritePlainText()

virtual void ultralight::Clipboard::WritePlainText ( const String text)
pure virtual

Write plain text to the clipboard.

This is called when the library wants to write text to the OS clipboard.


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