summaryrefslogtreecommitdiff
path: root/src/c_fl_spinner.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_spinner.cpp
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_spinner.cpp')
-rw-r--r--src/c_fl_spinner.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/c_fl_spinner.cpp b/src/c_fl_spinner.cpp
index 71d86f8..a278c84 100644
--- a/src/c_fl_spinner.cpp
+++ b/src/c_fl_spinner.cpp
@@ -50,126 +50,126 @@ SPINNER new_fl_spinner(int x, int y, int w, int h, char* label) {
}
void free_fl_spinner(SPINNER n) {
- delete reinterpret_cast<My_Spinner*>(n);
+ delete static_cast<My_Spinner*>(n);
}
unsigned int fl_spinner_get_color(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->color();
+ return static_cast<Fl_Spinner*>(n)->color();
}
void fl_spinner_set_color(SPINNER n, unsigned int t) {
- reinterpret_cast<Fl_Spinner*>(n)->color(t);
+ static_cast<Fl_Spinner*>(n)->color(t);
}
unsigned int fl_spinner_get_selection_color(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->selection_color();
+ return static_cast<Fl_Spinner*>(n)->selection_color();
}
void fl_spinner_set_selection_color(SPINNER n, unsigned int t) {
- reinterpret_cast<Fl_Spinner*>(n)->selection_color(t);
+ static_cast<Fl_Spinner*>(n)->selection_color(t);
}
unsigned int fl_spinner_get_textcolor(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->textcolor();
+ return static_cast<Fl_Spinner*>(n)->textcolor();
}
void fl_spinner_set_textcolor(SPINNER n, unsigned int t) {
- reinterpret_cast<Fl_Spinner*>(n)->textcolor(t);
+ static_cast<Fl_Spinner*>(n)->textcolor(t);
}
int fl_spinner_get_textfont(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->textfont();
+ return static_cast<Fl_Spinner*>(n)->textfont();
}
void fl_spinner_set_textfont(SPINNER n, int t) {
- reinterpret_cast<Fl_Spinner*>(n)->textfont(t);
+ static_cast<Fl_Spinner*>(n)->textfont(t);
}
int fl_spinner_get_textsize(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->textsize();
+ return static_cast<Fl_Spinner*>(n)->textsize();
}
void fl_spinner_set_textsize(SPINNER n, int t) {
- reinterpret_cast<Fl_Spinner*>(n)->textsize(t);
+ static_cast<Fl_Spinner*>(n)->textsize(t);
}
double fl_spinner_get_minimum(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->minimum();
+ return static_cast<Fl_Spinner*>(n)->minimum();
}
void fl_spinner_set_minimum(SPINNER n, double t) {
- reinterpret_cast<Fl_Spinner*>(n)->minimum(t);
+ static_cast<Fl_Spinner*>(n)->minimum(t);
}
double fl_spinner_get_maximum(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->maximum();
+ return static_cast<Fl_Spinner*>(n)->maximum();
}
void fl_spinner_set_maximum(SPINNER n, double t) {
- reinterpret_cast<Fl_Spinner*>(n)->maximum(t);
+ static_cast<Fl_Spinner*>(n)->maximum(t);
}
void fl_spinner_range(SPINNER n, double a, double b) {
- reinterpret_cast<Fl_Spinner*>(n)->range(a,b);
+ static_cast<Fl_Spinner*>(n)->range(a,b);
}
double fl_spinner_get_step(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->step();
+ return static_cast<Fl_Spinner*>(n)->step();
}
void fl_spinner_set_step(SPINNER n, double t) {
- reinterpret_cast<Fl_Spinner*>(n)->step(t);
+ static_cast<Fl_Spinner*>(n)->step(t);
}
double fl_spinner_get_value(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->value();
+ return static_cast<Fl_Spinner*>(n)->value();
}
void fl_spinner_set_value(SPINNER n, double t) {
- reinterpret_cast<Fl_Spinner*>(n)->value(t);
+ static_cast<Fl_Spinner*>(n)->value(t);
}
const char * fl_spinner_get_format(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->format();
+ return static_cast<Fl_Spinner*>(n)->format();
}
void fl_spinner_set_format(SPINNER n, const char * f) {
- reinterpret_cast<Fl_Spinner*>(n)->format(f);
+ static_cast<Fl_Spinner*>(n)->format(f);
}
int fl_spinner_get_type(SPINNER n) {
- return reinterpret_cast<Fl_Spinner*>(n)->type();
+ return static_cast<Fl_Spinner*>(n)->type();
}
void fl_spinner_set_type(SPINNER n, int t) {
- reinterpret_cast<Fl_Spinner*>(n)->type(t);
+ static_cast<Fl_Spinner*>(n)->type(t);
}
void fl_spinner_resize(SPINNER n, int x, int y, int w, int h) {
- reinterpret_cast<Fl_Spinner*>(n)->resize(x, y, w, h);
+ static_cast<Fl_Spinner*>(n)->resize(x, y, w, h);
}
void fl_spinner_draw(SPINNER n) {
- reinterpret_cast<My_Spinner*>(n)->Fl_Spinner::draw();
+ static_cast<My_Spinner*>(n)->Fl_Spinner::draw();
}
int fl_spinner_handle(SPINNER n, int e) {
- return reinterpret_cast<My_Spinner*>(n)->Fl_Spinner::handle(e);
+ return static_cast<My_Spinner*>(n)->Fl_Spinner::handle(e);
}