AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AAbstractLabel Class Reference

Represents an abstract text display view.

#include <AUI/View/AAbstractLabel.h>

Member Function Documentation

> All members, including inherited

◆ commitStyle()

void AAbstractLabel::commitStyle ( )
overrideprotectedvirtual

Reimplemented from AView.

◆ getContentMinimumHeight()

int AAbstractLabel::getContentMinimumHeight ( )
overridevirtual
Returns
minimal content-area height.

Reimplemented from AView.

◆ getContentMinimumWidth()

int AAbstractLabel::getContentMinimumWidth ( )
overridevirtual
Returns
minimal content-area width.

Reimplemented from AView.

Reimplemented in ADropdownList, and APageSwitch.

◆ invalidateAllStyles()

void AAbstractLabel::invalidateAllStyles ( )
overridevirtual

Unlike invalidateStateStyles(), completely resets styles for this view, causing it to iterate over all rules in global and parent stylesheets. This operation is much more expensive than invalidateStateStyles because invalidateStateStyles iterates over a small set of rules and performs fewer checks.

Prefer invalidateAllStyles over invalidateStateStyles when:

  • Added/removed rules to applicable stylesheets
  • The view is reinflated to other layout
  • Added/removed/changed ass names of this or parent views

Reimplemented from AView.

◆ invalidateFont()

void AAbstractLabel::invalidateFont ( )
overridevirtual

Implements IFontView.

◆ onDpiChanged()

void AAbstractLabel::onDpiChanged ( )
overridevirtual

Reimplemented from AView.

◆ render()

void AAbstractLabel::render ( ARenderContext ctx)
overridevirtual
See also
AView::drawView

AView::render is not guaranteed to be called on per-frame basis. Moreover, this method can be called multiple times if render-to-texture caching decides to do so.

Reimplemented from AView.

Reimplemented in ADropdownList.

◆ setSize()

void AAbstractLabel::setSize ( glm::ivec2 size)
overridevirtual

Reimplemented from AView.

◆ toString()

AString AAbstractLabel::toString ( ) const
overridevirtual
Returns
string representation of the object

Implements IStringable.