summaryrefslogtreecommitdiff
path: root/src/c_fl_window.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_window.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_window.cpp')
-rw-r--r--src/c_fl_window.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/c_fl_window.cpp b/src/c_fl_window.cpp
index 631c98b..806e66f 100644
--- a/src/c_fl_window.cpp
+++ b/src/c_fl_window.cpp
@@ -56,7 +56,7 @@ WINDOW new_fl_window2(int w, int h, char* label) {
}
void free_fl_window(WINDOW n) {
- delete reinterpret_cast<My_Window*>(n);
+ delete static_cast<My_Window*>(n);
}
@@ -64,186 +64,186 @@ void free_fl_window(WINDOW n) {
void fl_window_show(WINDOW n) {
// virtual, so disable dispatch
- reinterpret_cast<Fl_Window*>(n)->Fl_Window::show();
+ static_cast<Fl_Window*>(n)->Fl_Window::show();
}
void fl_window_show2(WINDOW n, int c, void * v) {
- reinterpret_cast<Fl_Window*>(n)->show(c, static_cast<char**>(v));
+ static_cast<Fl_Window*>(n)->show(c, static_cast<char**>(v));
}
void fl_window_hide(WINDOW n) {
// virtual, so disable dispatch
- reinterpret_cast<Fl_Window*>(n)->Fl_Window::hide();
+ static_cast<Fl_Window*>(n)->Fl_Window::hide();
}
int fl_window_shown(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->shown();
+ return static_cast<Fl_Window*>(n)->shown();
}
void fl_window_wait_for_expose(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->wait_for_expose();
+ static_cast<Fl_Window*>(n)->wait_for_expose();
}
void fl_window_iconize(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->iconize();
+ static_cast<Fl_Window*>(n)->iconize();
}
void fl_window_make_current(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->make_current();
+ static_cast<Fl_Window*>(n)->make_current();
}
void fl_window_free_position(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->free_position();
+ static_cast<Fl_Window*>(n)->free_position();
}
unsigned int fl_window_fullscreen_active(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->fullscreen_active();
+ return static_cast<Fl_Window*>(n)->fullscreen_active();
}
void fl_window_fullscreen(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->fullscreen();
+ static_cast<Fl_Window*>(n)->fullscreen();
}
void fl_window_fullscreen_off(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->fullscreen_off();
+ static_cast<Fl_Window*>(n)->fullscreen_off();
}
void fl_window_fullscreen_off2(WINDOW n, int x, int y, int w, int h) {
- reinterpret_cast<Fl_Window*>(n)->fullscreen_off(x,y,w,h);
+ static_cast<Fl_Window*>(n)->fullscreen_off(x,y,w,h);
}
void fl_window_fullscreen_screens(WINDOW n, int t, int b, int l, int r) {
- reinterpret_cast<Fl_Window*>(n)->fullscreen_screens(t,b,l,r);
+ static_cast<Fl_Window*>(n)->fullscreen_screens(t,b,l,r);
}
void fl_window_set_icon(WINDOW n, void * img) {
- reinterpret_cast<Fl_Window*>(n)->icon(reinterpret_cast<Fl_RGB_Image*>(img));
+ static_cast<Fl_Window*>(n)->icon(static_cast<Fl_RGB_Image*>(img));
}
void fl_window_default_icon(void * img) {
- Fl_Window::default_icon(reinterpret_cast<Fl_RGB_Image*>(img));
+ Fl_Window::default_icon(static_cast<Fl_RGB_Image*>(img));
}
const char * fl_window_get_iconlabel(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->iconlabel();
+ return static_cast<Fl_Window*>(n)->iconlabel();
}
void fl_window_set_iconlabel(WINDOW n, const char * s) {
- reinterpret_cast<Fl_Window*>(n)->iconlabel(s);
+ static_cast<Fl_Window*>(n)->iconlabel(s);
}
void fl_window_set_cursor(WINDOW n, int c) {
- reinterpret_cast<Fl_Window*>(n)->cursor(static_cast<Fl_Cursor>(c));
+ static_cast<Fl_Window*>(n)->cursor(static_cast<Fl_Cursor>(c));
}
void fl_window_set_cursor2(WINDOW n, void * img, int x, int y) {
- reinterpret_cast<Fl_Window*>(n)->cursor(reinterpret_cast<Fl_RGB_Image*>(img),x,y);
+ static_cast<Fl_Window*>(n)->cursor(static_cast<Fl_RGB_Image*>(img),x,y);
}
void fl_window_set_default_cursor(WINDOW n, int c) {
- reinterpret_cast<Fl_Window*>(n)->default_cursor(static_cast<Fl_Cursor>(c));
+ static_cast<Fl_Window*>(n)->default_cursor(static_cast<Fl_Cursor>(c));
}
unsigned int fl_window_get_border(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->border();
+ return static_cast<Fl_Window*>(n)->border();
}
void fl_window_set_border(WINDOW n, int b) {
- reinterpret_cast<Fl_Window*>(n)->border(b);
+ static_cast<Fl_Window*>(n)->border(b);
}
unsigned int fl_window_get_override(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->override();
+ return static_cast<Fl_Window*>(n)->override();
}
void fl_window_set_override(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->set_override();
+ static_cast<Fl_Window*>(n)->set_override();
}
unsigned int fl_window_modal(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->modal();
+ return static_cast<Fl_Window*>(n)->modal();
}
unsigned int fl_window_non_modal(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->non_modal();
+ return static_cast<Fl_Window*>(n)->non_modal();
}
void fl_window_clear_modal_states(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->clear_modal_states();
+ static_cast<Fl_Window*>(n)->clear_modal_states();
}
void fl_window_set_modal(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->set_modal();
+ static_cast<Fl_Window*>(n)->set_modal();
}
void fl_window_set_non_modal(WINDOW n) {
- reinterpret_cast<Fl_Window*>(n)->set_non_modal();
+ static_cast<Fl_Window*>(n)->set_non_modal();
}
const char * fl_window_get_label(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->label();
+ return static_cast<Fl_Window*>(n)->label();
}
void fl_window_set_label(WINDOW n, char* text) {
- reinterpret_cast<Fl_Window*>(n)->copy_label(text);
+ static_cast<Fl_Window*>(n)->copy_label(text);
}
void fl_window_hotspot(WINDOW n, int x, int y, int s) {
- reinterpret_cast<Fl_Window*>(n)->hotspot(x,y,s);
+ static_cast<Fl_Window*>(n)->hotspot(x,y,s);
}
void fl_window_hotspot2(WINDOW n, void * i, int s) {
- reinterpret_cast<Fl_Window*>(n)->hotspot(reinterpret_cast<Fl_Widget*>(i),s);
+ static_cast<Fl_Window*>(n)->hotspot(static_cast<Fl_Widget*>(i),s);
}
void fl_window_size_range(WINDOW n, int lw, int lh, int hw, int hh, int dw, int dh, int a) {
- reinterpret_cast<Fl_Window*>(n)->size_range(lw, lh, hw, hh, dw, dh, a);
+ static_cast<Fl_Window*>(n)->size_range(lw, lh, hw, hh, dw, dh, a);
}
void fl_window_shape(WINDOW n, void * p) {
- reinterpret_cast<Fl_Window*>(n)->shape(reinterpret_cast<Fl_Image*>(p));
+ static_cast<Fl_Window*>(n)->shape(static_cast<Fl_Image*>(p));
}
int fl_window_get_x_root(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->x_root();
+ return static_cast<Fl_Window*>(n)->x_root();
}
int fl_window_get_y_root(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->y_root();
+ return static_cast<Fl_Window*>(n)->y_root();
}
int fl_window_get_decorated_w(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->decorated_w();
+ return static_cast<Fl_Window*>(n)->decorated_w();
}
int fl_window_get_decorated_h(WINDOW n) {
- return reinterpret_cast<Fl_Window*>(n)->decorated_h();
+ return static_cast<Fl_Window*>(n)->decorated_h();
}
void fl_window_draw(WINDOW n) {
- reinterpret_cast<My_Window*>(n)->Fl_Window::draw();
+ static_cast<My_Window*>(n)->Fl_Window::draw();
}
int fl_window_handle(WINDOW n, int e) {
- return reinterpret_cast<My_Window*>(n)->Fl_Window::handle(e);
+ return static_cast<My_Window*>(n)->Fl_Window::handle(e);
}