48class API_AUI_VIEWS ATextArea:
public AAbstractTypeableView<ATextBase<AWordWrappingEngine<std::list<_unique<aui::detail::TextBaseEntry>>>>>,
public IStringable {
50 friend class UITextArea;
52 using Iterator = Entries::iterator;
56 ~ATextArea()
override;
58 bool capturesFocus()
override;
63 glm::ivec2 getPosByIndex(
size_t index)
override;
64 void setText(
const AString& t)
override;
66 void onCharEntered(
char16_t c)
override;
68 void setSize(glm::ivec2 size)
override;
75 void typeableErase(
size_t begin,
size_t end)
override;
78 size_t typeableFind(
char16_t c,
size_t startPos)
override;
79 size_t typeableReverseFind(
char16_t c,
size_t startPos)
override;
80 size_t length()
const override;
85 glm::ivec2 mCursorPosition{0, 0};
87 struct EntityQueryResult {
95 return mEngine.entries();
98 auto& entities()
const {
99 return mEngine.entries();
102 void onCursorIndexChanged()
override;
104 EntityQueryResult getLeftEntity(
size_t indexRelativeToFrom, EntityQueryResult from);
105 EntityQueryResult getLeftEntity(
size_t index);
106 Iterator splitIfNecessary(EntityQueryResult at);
108 AScrollArea* findScrollArea();
Render context passed to AView::render.
Definition ARenderContext.h:43