summaryrefslogtreecommitdiff
path: root/src/gui/widgets/window.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
commit30ba8a737da8b1811397786106085f2c13167803 (patch)
tree09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/widgets/window.h
parent03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff)
downloadmv-30ba8a737da8b1811397786106085f2c13167803.tar.gz
mv-30ba8a737da8b1811397786106085f2c13167803.tar.bz2
mv-30ba8a737da8b1811397786106085f2c13167803.tar.xz
mv-30ba8a737da8b1811397786106085f2c13167803.zip
Remove default parameters from window.
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r--src/gui/widgets/window.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h
index d089680af..cffc2f17d 100644
--- a/src/gui/widgets/window.h
+++ b/src/gui/widgets/window.h
@@ -111,10 +111,10 @@ class Window notfinal : public BasicContainer2,
* a window will never go below its parent window.
* @param skin The location where the window's skin XML can be found.
*/
- explicit Window(const std::string &caption = "Window",
- const Modal modal = Modal_false,
- Window *const parent = nullptr,
- std::string skin = "");
+ Window(const std::string &caption,
+ const Modal modal,
+ Window *const parent,
+ std::string skin);
A_DELETE_COPY(Window)
@@ -155,7 +155,8 @@ class Window notfinal : public BasicContainer2,
* Sets the location relative to the given enumerated position.
*/
void setLocationRelativeTo(const ImagePosition::Type &position,
- int offsetX = 0, int offsetY = 0);
+ int offsetX,
+ int offsetY);
/**
* Sets whether or not the window can be resized.
@@ -392,9 +393,11 @@ class Window notfinal : public BasicContainer2,
* This version of setDefaultSize sets the window's position based
* on a relative enumerated position, rather than a coordinate position.
*/
- void setDefaultSize(const int defaultWidth, const int defaultHeight,
+ void setDefaultSize(const int defaultWidth,
+ const int defaultHeight,
const ImagePosition::Type &position,
- const int offsetx = 0, const int offsetY = 0);
+ const int offsetx,
+ const int offsetY);
/**
* Reset the win pos and size to default. Don't forget to set defaults
@@ -428,13 +431,17 @@ class Window notfinal : public BasicContainer2,
* @param h if non-zero, force the window to this height.
* @note This function is meant to be called with fixed-size windows.
*/
- void reflowLayout(int w = 0, int h = 0);
+ void reflowLayout(int w,
+ int h);
/**
* Adds a widget to the window and sets it at given cell.
*/
- LayoutCell &place(const int x, const int y, Widget *const wg,
- const int w = 1, const int h = 1);
+ LayoutCell &place(const int x,
+ const int y,
+ Widget *const wg,
+ const int w,
+ const int h);
/**
* Returns a proxy for adding widgets in an inner table of the layout.
@@ -583,10 +590,10 @@ class Window notfinal : public BasicContainer2,
bool canMove() const A_WARN_UNUSED;
int getOption(const std::string &name,
- const int def = 0) const A_WARN_UNUSED;
+ const int def) const A_WARN_UNUSED;
bool getOptionBool(const std::string &name,
- const bool def = false) const A_WARN_UNUSED;
+ const bool def) const A_WARN_UNUSED;
void setTitlePadding(const int p) noexcept2
{ mTitlePadding = p; }