|
|
| ListRow (const std::string &title="", const std::string &secondary="") |
|
std::string | title () const |
|
template<class Self> |
| Self & | title (this Self &self, const std::string &title) |
|
std::string | secondary () const |
| template<class Self> |
| Self & | secondary (this Self &self, const std::string &secondary) |
| template<class Self> |
| Self & | icon (this Self &self, detail::StringArg icon) |
| template<class Self> |
| Self & | avatar (this Self &self, const std::string &name) |
| template<class Self> |
| Self & | meta (this Self &self, const std::string &meta) |
| Div & | leading () |
| Div & | trailing () |
|
| SelectableRow (const SelectableRow &)=delete |
|
SelectableRow & | operator= (const SelectableRow &)=delete |
|
| SelectableRow (SelectableRow &&)=delete |
|
SelectableRow & | operator= (SelectableRow &&)=delete |
| bool | selected () const |
| template<class Self> |
| Self & | selected (this Self &self, detail::BoolArg selected) |
| RowGroup * | group () |
| | 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 |
A row of a List: what leads it (the .leading part: an icon or an avatar), its text (.text: the .title and, under it, the .secondary text), then what trails it (.trailing: .meta text, badges, keyboard hints, anything added to trailing()). Parts are made when first set. Hovering raises it; the selection is raised with an accent bar at its start.
list.row("Ada Lovelace", "ada@example.com").avatar("Ada Lovelace").meta("2h");