Style implementation.
You can find more information in comments below. Overrided methods can be found in corresponding base interface.
class CStyle :public virtual IStyle
{
public:
int getImageCount() override;
IStyleImage *getImage(const int index) override;
IStyleImage *getImage(const String &name) override;
int getSkinCount() override;
IStyleSkin *getSkin(const int index) override;
IStyleSkin *getSkin(const String &name) override;
int getFontCount() override;
IStyleFont *getFont(const int index) override;
IStyleFont *getFont(const String &name) override;
int getOptionCount() override;
bool getOption(const String &name, String &value) override;
bool getOption(const String &name, int &value) override;
bool getOption(const String &name, float &value) override;
bool getOption(const String &name, bool &value) override;
bool getOption(const String &name, Rect &value) override;
bool getOption(const String &name, RectF &value) override;
bool getOption(const String &name, RectB &value) override;
bool getOption(const String &name, BorderColor &value) override;
bool getOption(const String &name, Color &value) override;
bool getOption(const String &name, Point &value) override;
bool getOption(const String &name, PointF &value) override;
bool getOption(const String &name, PointB &value) override;
bool getOption(const String &name, Gradient &value) override;
bool getOption(const String &name, unsigned int &value) override;
void Release() override;
bool setOption(const String &name, const String &value); // Set option with String type value
bool setOption(const String &name, const int value); // Set option with int type value
bool setOption(const String &name, const float value); // Set option with float type value
bool setOption(const String &name, const bool value); // Set option with bool type value
bool setOption(const String &name, const Rect &value); // Set option with Rect type value
bool setOption(const String &name, const RectF &value); // Set option with RectF type value
bool setOption(const String &name, const RectB &value); // Set option with RectB type value
bool setOption(const String &name, const BorderColor &value); // Set option with BorderColor type value
bool setOption(const String &name, const Point &value); // Set option with Point type value
bool setOption(const String &name, const PointF &value); // Set option with PointF type value
bool setOption(const String &name, const PointB &value); // Set option with PointB type value
bool setOption(const String &name, const Color &value); // Set option with Color type value
bool setOption(const String &name, const Gradient &value); // Set option with Gradient type value
bool setOption(const String &name, const unsigned int value); // Set option with unsigned int type value
CStyle(const String &class_name);
virtual ~CStyle();
bool AddImage(CStyleImage *image); // Add image
bool AddSkin(CStyleSkin *skin); // Add skin
bool AddFont(CStyleFont *font); // Add font
};
Namespace: | nitisa |
Include: | Nitisa/Core/Style.h |