|
|
| Text (const std::string &text="") |
| std::string | text () const |
| template<class Self> |
| Self & | text (this Self &self, const std::string &text) |
|
bool | multiline () const |
| template<class Self> |
| Self & | multiline (this Self &self, detail::BoolArg multiline) |
| std::pair< unsigned int, unsigned int > | selection () const |
| template<class Self> |
| Self & | selection (this Self &self, unsigned int anchor, unsigned int caret) |
|
bool | caretVisible () const |
| template<class Self> |
| Self & | caretVisible (this Self &self, detail::BoolArg visible) |
| float | offsetX () const |
| void | reveal (unsigned int index) |
| SkRect | caretRect (unsigned int index) const override |
| unsigned int | indexAt (float x, float y) const override |
| | Div (const Div &)=delete |
| Div & | operator= (const Div &)=delete |
|
| Div (Div &&)=delete |
|
Div & | operator= (Div &&)=delete |
| std::string | toString () const |
| virtual Window * | window () |
|
virtual const Window * | window () const |
| Div * | parent () |
| const Div * | parent () const |
| int | depth () const |
| unsigned int | childCount () const |
| const std::vector< std::shared_ptr< Div > > & | children () const |
template<class T, class... Args>
requires (std::derived_from<T, Div> && std::constructible_from<T, Args...>) |
| T & | add (Args &&... args) |
template<class T>
requires std::derived_from<T, Div> |
| T & | add (unsigned int index, std::shared_ptr< T > child) |
template<class T>
requires std::derived_from<T, Div> |
| T & | add (std::shared_ptr< T > child) |
| void | remove (unsigned int index) |
| void | remove (const std::shared_ptr< Div > &child) |
|
void | remove (const Div &child) |
| void | removeAll () |
| const Div * | at (unsigned int index) const |
| Div * | at (unsigned int index) |
| int | childIndex (const std::shared_ptr< Div > &child) const |
| int | childIndex (const Div *child) const |
| template<class Self> |
| Self & | transition (this Self &self, Property property, const Timing &timing) |
|
template<class Self> |
| Self & | transition (this Self &self, std::initializer_list< Property > properties, const Timing &timing) |
| template<class Self> |
| Self & | row (this Self &self) |
| template<class Self> |
| Self & | column (this Self &self) |
| template<class Self> |
| Self & | size (this Self &self, Length width, Length height) |
| template<class Self> |
| Self & | style (this Self &self, const Style &style) |
| const Style & | style () const |
| const Style & | computedStyle () const |
| Style | targetStyle () const |
| bool | transitioning () const |
|
bool | transitioning (Property property) const |
| void | animate (float from, float to, const Timing &timing, std::function< void(float)> update) |
| template<class Self> |
| Self & | startingClass (this Self &self, detail::StringArg className) |
|
const std::string & | startingClass () const |
| bool | starting () const |
| void | exit (const std::string &className, std::function< void()> done) |
| bool | exiting () const |
| void | cancelExit () |
| bool | subtreeTransitioning () const |
| float | layoutOffsetX () const |
|
float | layoutOffsetY () const |
| bool | layoutSliding () const |
| bool | visible () const |
|
bool | enabled () const |
| template<class Self> |
| Self & | enabled (this Self &self, detail::BoolArg enabled) |
|
virtual bool | active () const |
|
bool | focusEnabled () const |
| template<class Self> |
| Self & | focusEnabled (this Self &self, detail::BoolArg focusEnabled) |
|
bool | hasFocus () const |
| virtual bool | takesEscape () const |
| void | setFocused (bool focused) |
| const std::string & | tooltip () const |
|
template<class Self> |
| Self & | tooltip (this Self &self, const std::string &text) |
| const std::vector< std::shared_ptr< MenuItem > > & | contextMenu () const |
|
template<class Self> |
| Self & | contextMenu (this Self &self, std::vector< std::shared_ptr< MenuItem > > items) |
|
void | localToGlobal (int &gx, int &gy, int x=0, int y=0) const |
|
void | globalToLocal (int &lx, int &ly, int x=0, int y=0) const |
|
int | x () const |
|
int | y () const |
|
int | getWidth () const |
|
int | getHeight () const |
|
int | boundsLeft () const |
|
int | boundsTop () const |
|
int | boundsRight () const |
|
int | boundsBottom () const |
|
int | contentWidth () const |
|
int | contentHeight () const |
|
int | scrollX () const |
|
template<class Self> |
| Self & | scrollX (this Self &self, int scrollX) |
|
int | scrollY () const |
|
template<class Self> |
| Self & | scrollY (this Self &self, int scrollY) |
|
void | scroll (double scrollX, double scrollY) |
| bool | scrollBy (int deltaX, int deltaY) |
| void | scrollIntoView (const SkRect &rect) |
| StyleManager * | styleManager () const |
| void | setStyleManager (std::shared_ptr< StyleManager > styleManager) |
| void | updateStyle () |
| void | updateStyleRecursive () |
| void | updateDirtyStyles () |
| bool | styleDirty () const |
|
const std::vector< std::string > & | tags () const |
|
const std::string & | internalId () const |
|
const std::string & | id () const |
| template<class Self> |
| Self & | id (this Self &self, std::string id) |
|
const std::unordered_set< std::string > & | classNames () const |
| template<class Self> |
| Self & | classNames (this Self &self, const std::unordered_set< std::string > &classNames) |
|
template<class Self> |
| Self & | addClassName (this Self &self, std::string className) |
|
template<class Self> |
| Self & | removeClassName (this Self &self, std::string className) |
| virtual const PropertyMask & | inheritedProperties () const |
|
bool | mouseChildren () const |
| template<class Self> |
| Self & | mouseChildren (this Self &self, detail::BoolArg mouseChildren) |
|
bool | mouseEnabled () const |
| template<class Self> |
| Self & | mouseEnabled (this Self &self, detail::BoolArg mouseEnabled) |
|
bool | mouseOver () const |
|
void | setMouseOver (bool over) |
|
bool | getMouseDown () const |
|
void | setMouseDown (bool down) |
|
bool | contains (float x, float y) const |
|
bool | boundsContains (float x, float y) const |
| virtual MouseEventStatus | handleMouseMove (const MouseEvent &event, bool handled) |
|
virtual bool | handleMouseExit (const MouseEvent &event) |
| virtual MouseEventStatus | handleMouseButtonChange (const MouseEvent &event) |
|
virtual MouseEventStatus | handleMousePress (const MouseEvent &event) |
|
virtual MouseEventStatus | handleMouseRelease (const MouseEvent &event) |
|
virtual MouseEventStatus | handleClick (const MouseEvent &event) |
|
virtual MouseEventStatus | handleDoubleClick (const MouseEvent &event) |
| virtual MouseEventStatus | handleMouseScroll (const MouseEvent &event) |
|
virtual MouseEventStatus | handleContextMenuRequest (const MouseEvent &event) |
| MouseEvent | mouseEventAtCenter () |
| MouseEvent | localMouseEvent (const MouseEvent &event) const |
|
| Observer (const Observer &)=delete |
|
Observer & | operator= (const Observer &)=delete |
|
| Observer (Observer &&)=delete |
|
Observer & | operator= (Observer &&)=delete |
|
| TextGeometry (const TextGeometry &)=delete |
|
TextGeometry & | operator= (const TextGeometry &)=delete |
|
| TextGeometry (TextGeometry &&)=delete |
|
TextGeometry & | operator= (TextGeometry &&)=delete |
|
|
void | updateText (const std::string &text) |
|
void | updateMultiline (bool multiline) |
|
void | updateCaretVisible (bool visible) |
|
void | updateSelection (unsigned int anchor, unsigned int caret) |
| void | styleUpdated () override |
| Size | measure (Constraint width, Constraint height) override |
| void | layoutUpdated () override |
| void | draw (SkCanvas *canvas) override |
|
void | updateContextMenu (std::vector< std::shared_ptr< MenuItem > > items) |
| void | setParent (Div *parent) |
| virtual void | added () |
|
virtual void | removed () |
| virtual void | childAdded (Div &child) |
| virtual void | childRemoved (Div &child) |
template<class T>
requires std::derived_from<T, Div> |
| T * | trackChild (std::vector< std::shared_ptr< T > > &list, Div &child) const |
|
virtual void | addedToRender () |
|
virtual void | removedFromRender () |
| std::vector< std::shared_ptr< Div > > | childrenTopmostFirst () const |
| void | invalidateEndChildrenStyle () |
| void | insertChild (unsigned int index, std::shared_ptr< Div > child) |
|
void | updateEnabled (bool enabled) |
|
void | updateId (std::string id) |
|
void | updateClassNames (const std::unordered_set< std::string > &classNames) |
|
void | updateClassName (std::string className, bool present) |
|
void | scrollTo (int scrollX, int scrollY) |
| virtual void | enabledChanged () |
| template<class Self> |
| Self & | tag (this Self &self, std::string tag) |
|
void | addTag (std::string tag) |
| void | updateLayoutSlides (const SlideWalk &walk) |
| void | updateSlidingClass () |
| void | releaseStartingClass () |
| void | finishExit () |
| void | updateTransitions (Style &computed) |
| bool | advanceTransitions (std::chrono::nanoseconds now) |
|
void | finishTransitions () |
| void | cancelTransitions () |
| void | transitionsChanged (const PropertyMask &changed) |
| void | invalidateStyle () |
| void | updateRuntimeStyles () |
| virtual void | createStyles () |
| void | setMeasurable () |
| void | updateLayout (const PropertyMask &changed) |
|
void | invalidate () |
|
bool | isValid () const |
|
virtual void | render (SkCanvas *canvas) |
|
void | clip (SkCanvas *canvas) |
| void | drawShadow (SkCanvas *canvas) |
|
void | drawDotGrid (SkCanvas *canvas) |
|
void | drawOutline (SkCanvas *canvas) |
| template<class... T, class F> |
| std::shared_ptr< Slot< T... > > | subscribeTo (Signal< T... > &signal, F &&callback) |
Displays single or multiline text. A text field (TextField) drives it as its view: it sets the text, the selection, whether the caret shows and, on one line, scrolls it to reveal the caret; the view paints them and answers the editing model's geometry questions in its own coordinates (its border box, scrolled). The selection is painted whenever there is one, in the inherited selectionColor and selectionBackgroundColor (none while transparent), so rules decide how it looks while its field doesn't have the focus. It takes no input itself: a text one can select and copy is a read-only field (TextInput::readOnly).
Measured to its text: the widest line within the width it's given, and as many lines as that takes, each the computed line height (glyphs may overflow a line height smaller than the font's, as in CSS).