@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2424#include " application.hxx"
2525
2626namespace {
27- void handle_mouse_button (bool is_down, const ruis::vector2 & pos, ruis::mouse_button button, unsigned pointer_id)
27+ void handle_mouse_button (bool is_down, const ruis::vec2 & pos, ruis::mouse_button button, unsigned pointer_id)
2828{
2929 auto & glue = get_glue ();
3030
@@ -44,7 +44,7 @@ void handle_mouse_button(bool is_down, const ruis::vector2& pos, ruis::mouse_but
4444
4545namespace {
4646void handle_mouse_move (
47- const ruis::vector2 & pos, //
47+ const ruis::vec2 & pos, //
4848 unsigned pointer_id
4949)
5050{
@@ -176,7 +176,7 @@ void handle_mouse_move(
176176 using std::round;
177177 handle_mouse_button (
178178 true , // is_down
179- round (ruis::vector2 (p.x * scale, p.y * scale)), // pos
179+ round (ruis::vec2 (p.x * scale, p.y * scale)), // pos
180180 ruis::mouse_button::left,
181181 0 // TODO: pointer id
182182 );
@@ -192,7 +192,7 @@ void handle_mouse_move(
192192
193193 using std::round;
194194 handle_mouse_move (
195- round (ruis::vector2 (p.x * scale, p.y * scale)), // pos
195+ round (ruis::vec2 (p.x * scale, p.y * scale)), // pos
196196 0 // TODO: pointer id
197197 );
198198 }
@@ -208,7 +208,7 @@ void handle_mouse_move(
208208 using std::round;
209209 handle_mouse_button (
210210 false , // is_down
211- round (ruis::vector2 (p.x * scale, p.y * scale)), // pos
211+ round (ruis::vec2 (p.x * scale, p.y * scale)), // pos
212212 ruis::mouse_button::left,
213213 0 // TODO: pointer id
214214 );
@@ -349,8 +349,8 @@ void native_window::set_fullscreen_internal(bool enable)
349349 // TODO: this was setting the viewport, is something still needed here?
350350 // update_window_rect(
351351 // ruis::rect(
352- // ruis::vector2 (0),
353- // ruis::vector2 (
352+ // ruis::vec2 (0),
353+ // ruis::vec2 (
354354 // round(this->ios_window.window.frame.size.width * scale),
355355 // round(this->ios_window.window.frame.size.height * scale)
356356 // )
@@ -371,8 +371,8 @@ void native_window::set_fullscreen_internal(bool enable)
371371 // TODO: this was setting the viewport, is something still needed here?
372372 // update_window_rect(
373373 // ruis::rect(
374- // ruis::vector2 (0),
375- // ruis::vector2 (
374+ // ruis::vec2 (0),
375+ // ruis::vec2 (
376376 // round(this->ios_window.window.frame.size.width * scale),
377377 // round((this->ios_window.window.frame.size.height - statusBarSize.height) * scale)
378378 // )
@@ -391,15 +391,15 @@ ruis::rect native_window::get_content_rect() const
391391
392392 if (this ->is_fullscreen ()) {
393393 return ruis::rect (
394- ruis::vector2 (0 ),
395- ruis::vector2 (round (w.frame .size .width * scale), round (w.frame .size .height * scale))
394+ ruis::vec2 (0 ),
395+ ruis::vec2 (round (w.frame .size .width * scale), round (w.frame .size .height * scale))
396396 );
397397 } else {
398398 CGSize statusBarSize = [[UIApplication sharedApplication] statusBarFrame].size ;
399399
400400 return ruis::rect (
401- ruis::vector2 (0 ),
402- ruis::vector2 (
401+ ruis::vec2 (0 ),
402+ ruis::vec2 (
403403 round (w.frame .size .width * scale),
404404 round ((w.frame .size .height - statusBarSize.height ) * scale)
405405 )
0 commit comments