summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelemojicomplete.h
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-03 13:54:07 +0200
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-03 14:23:38 +0200
commitbe655fef7f1f5717df73dedf84e84b73d246a0ec (patch)
tree525370d04f50287b913b458814909b730db8a883 /indra/newview/llpanelemojicomplete.h
parentc3adae2a5ff3912ffb741b84a5d098d078da062b (diff)
:x
Diffstat (limited to 'indra/newview/llpanelemojicomplete.h')
-rw-r--r--indra/newview/llpanelemojicomplete.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llpanelemojicomplete.h b/indra/newview/llpanelemojicomplete.h
index 02104efbcb..20d3413765 100644
--- a/indra/newview/llpanelemojicomplete.h
+++ b/indra/newview/llpanelemojicomplete.h
@@ -41,6 +41,7 @@ public:
{
Optional<bool> autosize;
Optional<bool> noscroll;
+ Optional<bool> vertical;
Optional<S32> max_emoji,
padding;
@@ -68,6 +69,8 @@ public:
size_t getEmojiCount() const { return mEmojis.size(); }
void setEmojis(const LLWString& emojis);
void setEmojiHint(const std::string& hint);
+ bool isAutoSize() const { return mAutoSize; }
+ U32 getMaxShortCodeWidth() const;
protected:
void onEmojisChanged();
@@ -75,7 +78,6 @@ protected:
void select(size_t emoji_idx);
void selectNext();
void selectPrevious();
- void setFont(const LLFontGL* fontp);
void updateConstraints();
void updateScrollPos();
@@ -84,14 +86,17 @@ protected:
const bool mAutoSize = false;
const bool mNoScroll = false;
- const LLFontGL* mFont;
- U16 mEmojiWidth = 0;
+ const bool mVertical = false;
const size_t mMaxVisible = 0;
const S32 mPadding = 8;
- LLRect mRenderRect;
const LLUIImagePtr mSelectedImage;
+ const LLFontGL* mIconFont;
+ const LLFontGL* mTextFont;
LLWString mEmojis;
+ LLRect mRenderRect;
+ U16 mEmojiWidth = 0;
+ U16 mEmojiHeight = 0;
size_t mVisibleEmojis = 0;
size_t mFirstVisible = 0;
size_t mScrollPos = 0;