FlightGear next
ClipboardWindows Class Reference

Windows does only support on clipboard and no selection. More...

Inherits NasalClipboard.

Public Member Functions

virtual std::string getText (Type type)
 Get clipboard contents as text.
 
virtual bool setText (const std::string &text, Type type)
 Set clipboard contents as text.
 
- Public Member Functions inherited from NasalClipboard
virtual void update ()
 

Protected Attributes

std::string _selection
 

Additional Inherited Members

- Public Types inherited from NasalClipboard
enum  Type { CLIPBOARD , PRIMARY }
 
typedef std::shared_ptr< NasalClipboardPtr
 
- Static Public Member Functions inherited from NasalClipboard
static void init (FGNasalSys *nasal)
 Sets up the clipboard and puts all the extension functions into a new "clipboard" namespace.
 
static Ptr getInstance ()
 Get clipboard platform specific instance.
 
- Protected Member Functions inherited from NasalClipboard
virtual ~NasalClipboard ()=0
 
- Static Protected Member Functions inherited from NasalClipboard
static Ptr create ()
 Implementation supplied by actual platform implementation.
 
- Static Protected Attributes inherited from NasalClipboard
static Ptr _clipboard
 

Detailed Description

Windows does only support on clipboard and no selection.

We fake also the X11 selection buffer - at least inside FlightGear

Definition at line 28 of file ClipboardWindows.cxx.

Member Function Documentation

◆ getText()

virtual std::string ClipboardWindows::getText ( Type type)
inlinevirtual

Get clipboard contents as text.

Implements NasalClipboard.

Definition at line 36 of file ClipboardWindows.cxx.

◆ setText()

virtual bool ClipboardWindows::setText ( const std::string & text,
Type type )
inlinevirtual

Set clipboard contents as text.

Implements NasalClipboard.

Definition at line 61 of file ClipboardWindows.cxx.

Member Data Documentation

◆ _selection

std::string ClipboardWindows::_selection
protected

Definition at line 101 of file ClipboardWindows.cxx.


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