Loading...
Searching...
No Matches
Clipboardabstract

#include <Ultralight/platform/Clipboard.h>

Overview

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 ~Clipboard ( )
virtual

Member Function Documentation

◆ Clear()

virtual void Clear ( )
pure virtual

Clear the clipboard.

◆ ReadPlainText()

virtual String 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 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: