summaryrefslogtreecommitdiff
path: root/src/rect.h
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2022-03-29 11:51:11 -0300
committerFrederico Linhares <fred@linhares.blue>2022-04-06 16:41:51 -0300
commit418f45f78bbf743021c53030da2ad2158fa355d2 (patch)
tree1ce50685cdced80b06039f603d9600e4316c3a3c /src/rect.h
Initial commit
Diffstat (limited to 'src/rect.h')
-rw-r--r--src/rect.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/rect.h b/src/rect.h
new file mode 100644
index 0000000..64a7ba0
--- /dev/null
+++ b/src/rect.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Frederico de Oliveira Linhares
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef CANDY_GEAR_RECT_H
+#define CANDY_GEAR_RECT_H 1
+
+#include "core.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct cg_rect
+{
+ SDL_Rect rect;
+};
+
+extern const struct mrb_data_type cg_rect_type;
+
+void
+cg_rect_init(mrb_state *mrb);
+
+#ifdef __cplusplus
+};
+#endif
+
+#endif /* CANDY_GEAR_RECT_H */