#include <uicon.hpp>
Inheritance diagram for ubit::UIcon:
Public Member Functions | |
UIcon (const UArgs &=UArgs::none) | |
UIcon (UIcon::Props *, const UArgs &=UArgs::none) | |
constructors. | |
virtual int | read (const UStr &name, const UStr &pathname) |
reads content from a file. | |
virtual void | set (const UStr &name, UGroup &content) |
virtual void | set (const UStr &name, UData &content) |
virtual void | set (const UStr &name, UFileMode) |
sets name and content. | |
virtual void | clear () |
UStr & | name () |
const UStr & | getName () const |
void | setMode (UFileMode) |
UFileMode | getMode () const |
UIma * | findIconImage () |
Protected Member Functions | |
virtual void | constructs (UIcon::Props *) |
virtual void | selectNameCB (UEvent &e, bool) |
Protected Attributes | |
uptr< Props > | props |
uptr< UBox > | ima_box |
uptr< UBox > | text_box |
uptr< UStr > | pname |
uptr< class UEdit > | name_edit |
UFileMode | filemode |
ubit::UIcon::UIcon | ( | UIcon::Props * | , | |
const UArgs & | = UArgs::none | |||
) |
constructors.
note that UIcon::Props is shared and should not be destroyed this icon will be upadted if the fields of this argument are changed default props are used if this arg is null.
reads content from a file.
name is the string that is displayed in the icon. returned value: UFilestat or UXmlStat