diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-11-10 15:58:22 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <fltk@aljus.de> | 2025-11-10 16:23:04 +0100 |
| commit | 054fc9c8234784c4ab652a8968417ac631e4f748 (patch) | |
| tree | f6a46a88193c99207b3b54fc68c73d41af0f40f5 /src/Fl_Window.cxx | |
| parent | 93576abd0b88f33e10c1c3c318f343201800ec99 (diff) | |
Declare some methods of Fl_Window 'const'
These Fl_Window methods are 'const' but had not been declared 'const':
- uchar get_size_range(...) const
- int shown() const
- const Fl_Image *shape() const
- int screen_num() const
- fl_uintptr_t os_id() const
Diffstat (limited to 'src/Fl_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index d5a82a41b..d112b89f9 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -694,7 +694,7 @@ void Fl_Window::size_range(int minWidth, int minHeight, */ uchar Fl_Window::get_size_range(int *minWidth, int *minHeight, int *maxWidth, int *maxHeight, - int *deltaX, int *deltaY, int *aspectRatio) { + int *deltaX, int *deltaY, int *aspectRatio) const { if (minWidth) *minWidth = minw_; if (minHeight) *minHeight = minh_; if (maxWidth) *maxWidth = maxw_; @@ -892,7 +892,7 @@ int Fl_Window::is_resizable() { \since 1.4.0 */ -int Fl_Window::screen_num() { +int Fl_Window::screen_num() const { return pWindowDriver->screen_num(); } @@ -977,7 +977,7 @@ void Fl_Window::shape(const Fl_Image& img) {pWindowDriver->shape(&img);} \since 1.4.0 */ -const Fl_Image* Fl_Window::shape() {return pWindowDriver->shape();} +const Fl_Image* Fl_Window::shape() const {return pWindowDriver->shape();} /** Returns true when a window is being rescaled. @@ -997,7 +997,7 @@ bool Fl_Window::is_a_rescale() {return Fl_Window_Driver::is_a_rescale_;} \since 1.4.0 */ -fl_uintptr_t Fl_Window::os_id() { return pWindowDriver->os_id();} +fl_uintptr_t Fl_Window::os_id() const { return pWindowDriver->os_id(); } /** Maximizes a top-level window to its current screen. |
