started adding text selection
This commit is contained in:
@@ -37,6 +37,10 @@ public:
|
||||
std::shared_ptr<QPixmap> buffer = nullptr;
|
||||
bool updateBuffer = false;
|
||||
|
||||
bool tryGetWordPart(QPoint point, messages::Word &word);
|
||||
|
||||
int getSelectionIndex(QPoint position);
|
||||
|
||||
private:
|
||||
Message *message;
|
||||
std::shared_ptr<Message> messagePtr;
|
||||
@@ -48,6 +52,7 @@ private:
|
||||
int currentLayoutWidth = -1;
|
||||
int fontGeneration = -1;
|
||||
int emoteGeneration = -1;
|
||||
Word::Type currentWordTypes = Word::None;
|
||||
|
||||
void alignWordParts(int lineStart, int lineHeight);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user