Base interface for classes that can be applied a style. More...
#include <ilviews/base/stylable.h>
Public Member Functions | |
IlvStylable () | |
Constructor. | |
virtual void | getOuterStylableSize (IlvDim &w, IlvDim &h) const |
Returns the size of the outer stylable if any. More... | |
virtual const char * | getStylableClassName () const |
Returns the class name of this object. More... | |
virtual IlvDisplay * | getStylableDisplay () const =0 |
Returns the display for this object. More... | |
virtual const char * | getStylableName () const |
Returns the name of this object. More... | |
virtual const IlvStylable * | getStylableParent () const |
Returns the parent of this object in the style hierarchy. More... | |
virtual void | getStylableSize (IlvDim &w, IlvDim &h) const |
Returns the size of this object. More... | |
virtual const IlSymbol *const * | getStylableTags (IlUInt &nTags) const |
Returns the tags of this object. More... | |
virtual IlvStylist * | getStylist () const =0 |
Returns the stylist for this object. More... | |
Base interface for classes that can be applied a style.
Library: xviews or winviews or mviews (mutually exclusive)
Stylable objects are managed, from the style standpoint, by stylists.
IlvStylist
, IlvStyleSheet
. Returns the size of the outer stylable if any.
When a stylable is part of another one, this information allows for instance to compute relative sizes or placement.
If the stylable is not part of another one, this function returns the same results than getStylableSize()
.
w | The width of the container stylable. |
h | The height of the container stylable. |
Reimplemented in IlvAbstractView, and IlvGadget.
|
virtual |
Returns the class name of this object.
Reimplemented in IlvAbstractView, and IlvGadget.
|
pure virtual |
Returns the display for this object.
Implemented in IlvAbstractView, and IlvGadget.
|
virtual |
|
virtual |
Returns the parent of this object in the style hierarchy.
Returns the size of this object.
It can be used for computing sizes relative to the object (image position, borders,...).
w | The width of the stylable. |
h | The height of the stylable. |
Reimplemented in IlvAbstractView, and IlvGadget.
Returns the tags of this object.
nTags | the number of tags for this object (which is also the size of the returned array). |
IlPoolOf(Pointer)
and should not be deleted or modified. If there is no tags on this object, this function returns 0
(and nTags is set to 0
).. Reimplemented in IlvGadget.
|
pure virtual |
Returns the stylist for this object.
0
if there is none. Implemented in IlvAbstractView, and IlvGadget.