ScummVM
Glk::Selection Class Reference

Overall manager for selecting areas on the screen, copying to/from the clipboard, and managing hyperlinks. More...

#include <selection.h>

Inheritance diagram for Glk::Selection:
Collaboration diagram for Glk::Selection:

Public Member Functions

void startSelection (const Point &pos)
 Start selecting an area of the screen. More...
 
void moveSelection (const Point &pos)
 Move the end point of the selection area. More...
 
void clearSelection ()
 Remove any previously selected area. More...
 
bool checkSelection (const Rect &r) const
 Checks whether the passed area intersects the selection area. More...
 
bool getSelection (const Rect &r, int *rx0, int *rx1) const
 
- Public Member Functions inherited from Glk::Clipboard
void clipboardStore (const Common::U32String &text)
 Makes a copy of selected text in preparation for the user copying it to the clpboard. More...
 
void clipboardSend (ClipSource source)
 Send previously designated text to the clipboard. More...
 
void clipboardReceive (ClipSource source)
 Receive text from the clipboard, and paste it into the current window. More...
 
- Public Member Functions inherited from Glk::WindowMask
 WindowMask ()
 Constructor. More...
 
 ~WindowMask ()
 Destructor. More...
 
void resize (size_t x, size_t y)
 Resize the links array. More...
 
void putHyperlink (uint linkval, uint x0, uint y0, uint x1, uint y1)
 
uint getHyperlink (const Point &pos) const
 

Additional Inherited Members

- Public Attributes inherited from Glk::WindowMask
size_t _hor
 
size_t _ver
 
uint ** _links
 
Rect _select
 
Point _last
 

Detailed Description

Overall manager for selecting areas on the screen, copying to/from the clipboard, and managing hyperlinks.

Definition at line 101 of file selection.h.

Member Function Documentation

◆ checkSelection()

bool Glk::Selection::checkSelection ( const Rect r) const

Checks whether the passed area intersects the selection area.

Definition at line 192 of file selection.cpp.

◆ clearSelection()

void Glk::Selection::clearSelection ( )

Remove any previously selected area.

Definition at line 184 of file selection.cpp.

◆ getSelection()

bool Glk::Selection::getSelection ( const Rect r,
int rx0,
int rx1 
) const

Definition at line 201 of file selection.cpp.

◆ moveSelection()

void Glk::Selection::moveSelection ( const Point pos)

Move the end point of the selection area.

Parameters
posPosition to end selection area at

Definition at line 164 of file selection.cpp.

◆ startSelection()

void Glk::Selection::startSelection ( const Point pos)

Start selecting an area of the screen.

Parameters
posPosition to start selection area at

Definition at line 147 of file selection.cpp.


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