2016-09-11 11:28:01 -03:00
|
|
|
#ifndef COLORRECT_H
|
|
|
|
|
#define COLORRECT_H
|
|
|
|
|
|
|
|
|
|
#include "scene/gui/control.h"
|
|
|
|
|
|
2017-01-12 18:27:27 -03:00
|
|
|
class ColorRect : public Control {
|
|
|
|
|
GDCLASS(ColorRect,Control)
|
2016-09-11 11:28:01 -03:00
|
|
|
|
|
|
|
|
Color color;
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
void _notification(int p_what);
|
|
|
|
|
static void _bind_methods();
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
void set_frame_color(const Color& p_color);
|
|
|
|
|
Color get_frame_color() const;
|
|
|
|
|
|
2017-01-12 18:27:27 -03:00
|
|
|
ColorRect();
|
2016-09-11 11:28:01 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // COLORRECT_H
|