Format files (using clang-format)
This commit is contained in:
+1
-1
@@ -74,4 +74,4 @@ Vec2<float> ERect::size() {
|
||||
void ERect::render(uint64_t) {
|
||||
window.draw_rect(Rect::from(position, shape), color, z, rotation, pivot, scale, alpha);
|
||||
}
|
||||
} // namespace app
|
||||
} // namespace app
|
||||
|
||||
+1
-1
@@ -88,4 +88,4 @@ Vec2<float> Scene::world_to_local(Vec2<float> p, Element *e) {
|
||||
|
||||
return p;
|
||||
}
|
||||
} // namespace app
|
||||
} // namespace app
|
||||
|
||||
@@ -323,4 +323,4 @@ void register_element_image() {
|
||||
|
||||
bindings.ElementImage = {ElementImage_class, &ElementImage_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -346,4 +346,4 @@ void register_element_rect() {
|
||||
|
||||
bindings.ElementRect = {ElementRect_class, &ElementRect_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -408,4 +408,4 @@ void register_element_text() {
|
||||
|
||||
bindings.ElementText = {ElementText_class, &ElementText_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -69,4 +69,4 @@ void register_font() {
|
||||
ADD_METHOD(Font, "hash", font_hash, MRB_ARGS_NONE());
|
||||
bindings.Font = {Font_class, &Font_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -157,4 +157,4 @@ void register_image() {
|
||||
|
||||
bindings.Image = {Image_class, &Image_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -65,4 +65,4 @@ void register_params() {
|
||||
ADD_METHOD(Params, "[]=", params_set, MRB_ARGS_REQ(2));
|
||||
bindings.Params = {Params_class, &Params_type};
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -87,4 +87,4 @@ mrb_value Vec2_wrap(uint64_t id, Vec2<float> *vec) {
|
||||
|
||||
return obj;
|
||||
}
|
||||
} // namespace definitions
|
||||
} // namespace definitions
|
||||
|
||||
@@ -111,4 +111,4 @@ std::string get_key_name(Key key) {
|
||||
return str;
|
||||
return "Unknown Key";
|
||||
}
|
||||
} // namespace Localization
|
||||
} // namespace Localization
|
||||
|
||||
+1
-1
@@ -37,4 +37,4 @@ end
|
||||
def anti(query)
|
||||
query.type = :"not_#{query.type}"
|
||||
query
|
||||
end
|
||||
end
|
||||
|
||||
@@ -653,4 +653,4 @@ bool Window::mouse_in_window(const Vec2<float> real_position, Vec2<float> &virtu
|
||||
virtual_position = (real_position - offset) / scale;
|
||||
|
||||
return virtual_position.x >= 0 && virtual_position.x <= virtual_size.x && virtual_position.y >= 0 && virtual_position.y <= virtual_size.y;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user