axmol/extensions/fairygui/GImage.h

56 lines
1.1 KiB
C
Raw Normal View History

2020-08-04 12:31:33 +08:00
#ifndef __GIMAGE_H__
#define __GIMAGE_H__
#include "FairyGUIMacros.h"
#include "GObject.h"
#include "cocos2d.h"
#include "ui/UIScale9Sprite.h"
NS_FGUI_BEGIN
class FUISprite;
class GImage : public GObject
{
public:
GImage();
virtual ~GImage();
CREATE_FUNC(GImage);
FlipType getFlip() const;
void setFlip(FlipType value);
axis::Color3B getColor() const;
void setColor(const axis::Color3B& value);
2020-08-04 12:31:33 +08:00
FillMethod getFillMethod() const;
void setFillMethod(FillMethod value);
FillOrigin getFillOrigin() const;
void setFillOrigin(FillOrigin value);
bool isFillClockwise() const;
void setFillClockwise(bool value);
float getFillAmount() const;
void setFillAmount(float value);
virtual void constructFromResource() override;
virtual axis::Value getProp(ObjectPropID propId) override;
virtual void setProp(ObjectPropID propId, const axis::Value& value) override;
2020-08-04 12:31:33 +08:00
protected:
virtual void handleInit() override;
virtual void handleGrayedChanged() override;
virtual void setup_beforeAdd(ByteBuffer* buffer, int beginPos) override;
private:
FUISprite* _content;
};
NS_FGUI_END
#endif