1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Bring that Whole New World to the Old Continent too

Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
Rémi Verschelde
2017-03-19 00:36:26 +01:00
parent 1d418afe86
commit f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions

View File

@@ -1,36 +1,32 @@
#include "color_rect.h"
void ColorFrame::set_frame_color(const Color &p_color) {
void ColorFrame::set_frame_color(const Color& p_color) {
color=p_color;
color = p_color;
update();
}
Color ColorFrame::get_frame_color() const{
Color ColorFrame::get_frame_color() const {
return color;
}
void ColorFrame::_notification(int p_what) {
if (p_what==NOTIFICATION_DRAW) {
draw_rect(Rect2(Point2(),get_size()),color);
if (p_what == NOTIFICATION_DRAW) {
draw_rect(Rect2(Point2(), get_size()), color);
}
}
void ColorFrame::_bind_methods() {
ObjectTypeDB::bind_method(_MD("set_frame_color","color"),&ColorFrame::set_frame_color);
ObjectTypeDB::bind_method(_MD("get_frame_color"),&ColorFrame::get_frame_color);
ObjectTypeDB::bind_method(_MD("set_frame_color", "color"), &ColorFrame::set_frame_color);
ObjectTypeDB::bind_method(_MD("get_frame_color"), &ColorFrame::get_frame_color);
ADD_PROPERTY(PropertyInfo(Variant::COLOR,"color"),_SCS("set_frame_color"),_SCS("get_frame_color") );
ADD_PROPERTY(PropertyInfo(Variant::COLOR, "color"), _SCS("set_frame_color"), _SCS("get_frame_color"));
}
ColorFrame::ColorFrame() {
color=Color(1,1,1);
color = Color(1, 1, 1);
}