Format files (using clang-format)

This commit is contained in:
2026-07-26 19:17:24 +01:00
parent f82ab718f3
commit d484db4e84
17 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -38,4 +38,4 @@ private:
inline app::App *app_ = nullptr; inline app::App *app_ = nullptr;
#endif #endif
+1 -1
View File
@@ -60,4 +60,4 @@ inline void setup() {
} }
} // namespace definitions } // namespace definitions
#endif #endif
+1 -1
View File
@@ -124,4 +124,4 @@ DEF_SYM(w)
DEF_SYM(h) DEF_SYM(h)
DEF_SYM(z) DEF_SYM(z)
#endif #endif
+1 -1
View File
@@ -47,4 +47,4 @@ Key key_from_sym(mrb_state *mrb, mrb_sym sym);
std::string get_key_name(Key key); std::string get_key_name(Key key);
} // namespace Localization } // namespace Localization
#endif #endif
+1 -1
View File
@@ -218,4 +218,4 @@ inline Key get_key(std::string &name) {
return get_key_from_name(name); return get_key_from_name(name);
} }
#endif #endif
+1 -1
View File
@@ -74,4 +74,4 @@ Vec2<float> ERect::size() {
void ERect::render(uint64_t) { void ERect::render(uint64_t) {
window.draw_rect(Rect::from(position, shape), color, z, rotation, pivot, scale, alpha); window.draw_rect(Rect::from(position, shape), color, z, rotation, pivot, scale, alpha);
} }
} // namespace app } // namespace app
+1 -1
View File
@@ -88,4 +88,4 @@ Vec2<float> Scene::world_to_local(Vec2<float> p, Element *e) {
return p; return p;
} }
} // namespace app } // namespace app
+1 -1
View File
@@ -323,4 +323,4 @@ void register_element_image() {
bindings.ElementImage = {ElementImage_class, &ElementImage_type}; bindings.ElementImage = {ElementImage_class, &ElementImage_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -346,4 +346,4 @@ void register_element_rect() {
bindings.ElementRect = {ElementRect_class, &ElementRect_type}; bindings.ElementRect = {ElementRect_class, &ElementRect_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -408,4 +408,4 @@ void register_element_text() {
bindings.ElementText = {ElementText_class, &ElementText_type}; bindings.ElementText = {ElementText_class, &ElementText_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -69,4 +69,4 @@ void register_font() {
ADD_METHOD(Font, "hash", font_hash, MRB_ARGS_NONE()); ADD_METHOD(Font, "hash", font_hash, MRB_ARGS_NONE());
bindings.Font = {Font_class, &Font_type}; bindings.Font = {Font_class, &Font_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -157,4 +157,4 @@ void register_image() {
bindings.Image = {Image_class, &Image_type}; bindings.Image = {Image_class, &Image_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -65,4 +65,4 @@ void register_params() {
ADD_METHOD(Params, "[]=", params_set, MRB_ARGS_REQ(2)); ADD_METHOD(Params, "[]=", params_set, MRB_ARGS_REQ(2));
bindings.Params = {Params_class, &Params_type}; bindings.Params = {Params_class, &Params_type};
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -87,4 +87,4 @@ mrb_value Vec2_wrap(uint64_t id, Vec2<float> *vec) {
return obj; return obj;
} }
} // namespace definitions } // namespace definitions
+1 -1
View File
@@ -111,4 +111,4 @@ std::string get_key_name(Key key) {
return str; return str;
return "Unknown Key"; return "Unknown Key";
} }
} // namespace Localization } // namespace Localization
+1 -1
View File
@@ -37,4 +37,4 @@ end
def anti(query) def anti(query)
query.type = :"not_#{query.type}" query.type = :"not_#{query.type}"
query query
end end
+1 -1
View File
@@ -653,4 +653,4 @@ bool Window::mouse_in_window(const Vec2<float> real_position, Vec2<float> &virtu
virtual_position = (real_position - offset) / scale; 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; return virtual_position.x >= 0 && virtual_position.x <= virtual_size.x && virtual_position.y >= 0 && virtual_position.y <= virtual_size.y;
} }