2017-02-02 21:22:03 +01:00
|
|
|
#ifndef COLORRECT_H
|
|
|
|
#define COLORRECT_H
|
|
|
|
|
|
|
|
#include "scene/gui/control.h"
|
|
|
|
|
2017-03-19 00:36:26 +01:00
|
|
|
class ColorFrame : public Control {
|
|
|
|
OBJ_TYPE(ColorFrame, Control)
|
2017-02-02 21:22:03 +01:00
|
|
|
|
|
|
|
Color color;
|
|
|
|
|
2017-03-19 00:36:26 +01:00
|
|
|
protected:
|
2017-02-02 21:22:03 +01:00
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-19 00:36:26 +01:00
|
|
|
public:
|
|
|
|
void set_frame_color(const Color &p_color);
|
2017-02-02 21:22:03 +01:00
|
|
|
Color get_frame_color() const;
|
|
|
|
|
|
|
|
ColorFrame();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // COLORRECT_H
|