Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Selection Class Reference

#include <container_qpainter_p.h>

+ Collaboration diagram for Selection:

Classes

struct  Element
 

Public Types

enum class  Mode { Free , Word }
 

Public Member Functions

bool isValid () const
 
void update ()
 
QRect boundingRect () const
 

Public Attributes

Element startElem
 
Element endElem
 
QVector< QRectselection
 
QString text
 
QPoint selectionStartDocumentPos
 
Mode mode = Mode::Free
 
bool isSelecting = false
 

Detailed Description

Definition at line 19 of file container_qpainter_p.h.

Member Enumeration Documentation

◆ Mode

enum class Selection::Mode
strong
Enumerator
Free 
Word 

Definition at line 29 of file container_qpainter_p.h.

Member Function Documentation

◆ boundingRect()

QRect Selection::boundingRect ( ) const

Definition at line 444 of file container_qpainter.cpp.

◆ isValid()

bool Selection::isValid ( ) const

Definition at line 375 of file container_qpainter.cpp.

◆ update()

void Selection::update ( )

Definition at line 380 of file container_qpainter.cpp.

References Selection::Element::index, and Selection::Element::x.

Member Data Documentation

◆ endElem

Element Selection::endElem

Definition at line 37 of file container_qpainter_p.h.

◆ isSelecting

bool Selection::isSelecting = false

Definition at line 43 of file container_qpainter_p.h.

◆ mode

Mode Selection::mode = Mode::Free

Definition at line 42 of file container_qpainter_p.h.

◆ selection

QVector<QRect> Selection::selection

Definition at line 38 of file container_qpainter_p.h.

◆ selectionStartDocumentPos

QPoint Selection::selectionStartDocumentPos

Definition at line 41 of file container_qpainter_p.h.

◆ startElem

Element Selection::startElem

Definition at line 36 of file container_qpainter_p.h.

◆ text

QString Selection::text

Definition at line 39 of file container_qpainter_p.h.


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