Widgets: Force parent parameter to be present (#172)

This commit is contained in:
S6066 2018-07-31 13:24:28 +02:00 committed by Jérôme Leclercq
parent abedc30747
commit d91c48ab50
7 changed files with 8 additions and 7 deletions

View File

@ -179,6 +179,7 @@ Nazara Development Kit:
- Fixed GraphicsComponent reflective material count which was not initialized - Fixed GraphicsComponent reflective material count which was not initialized
- Added PhysicsComponent2D::ClosestPointQuery - Added PhysicsComponent2D::ClosestPointQuery
- Fix GraphicsComponent copy constructor not copying scissor rect - Fix GraphicsComponent copy constructor not copying scissor rect
- Force parent parameter to be present in widgets constructor
# 0.4: # 0.4:

View File

@ -23,7 +23,7 @@ namespace Ndk
class NDK_API ButtonWidget : public BaseWidget class NDK_API ButtonWidget : public BaseWidget
{ {
public: public:
ButtonWidget(BaseWidget* parent = nullptr); ButtonWidget(BaseWidget* parent);
ButtonWidget(const ButtonWidget&) = delete; ButtonWidget(const ButtonWidget&) = delete;
ButtonWidget(ButtonWidget&&) = default; ButtonWidget(ButtonWidget&&) = default;
~ButtonWidget() = default; ~ButtonWidget() = default;

View File

@ -28,7 +28,7 @@ namespace Ndk
friend class Sdk; friend class Sdk;
public: public:
CheckboxWidget(BaseWidget* parent = nullptr); CheckboxWidget(BaseWidget* parent);
CheckboxWidget(const CheckboxWidget&) = delete; CheckboxWidget(const CheckboxWidget&) = delete;
CheckboxWidget(CheckboxWidget&&) = default; CheckboxWidget(CheckboxWidget&&) = default;
~CheckboxWidget() = default; ~CheckboxWidget() = default;

View File

@ -19,7 +19,7 @@ namespace Ndk
class NDK_API ImageWidget : public BaseWidget class NDK_API ImageWidget : public BaseWidget
{ {
public: public:
ImageWidget(BaseWidget* parent = nullptr); ImageWidget(BaseWidget* parent);
ImageWidget(const ImageWidget&) = delete; ImageWidget(const ImageWidget&) = delete;
ImageWidget(ImageWidget&&) = default; ImageWidget(ImageWidget&&) = default;
~ImageWidget() = default; ~ImageWidget() = default;

View File

@ -21,7 +21,7 @@ namespace Ndk
class NDK_API LabelWidget : public BaseWidget class NDK_API LabelWidget : public BaseWidget
{ {
public: public:
LabelWidget(BaseWidget* parent = nullptr); LabelWidget(BaseWidget* parent);
LabelWidget(const LabelWidget&) = delete; LabelWidget(const LabelWidget&) = delete;
LabelWidget(LabelWidget&&) = default; LabelWidget(LabelWidget&&) = default;
~LabelWidget() = default; ~LabelWidget() = default;

View File

@ -1,4 +1,4 @@
// Copyright (C) 2017 Samy Bensaid // Copyright (C) 2017 Samy Bensaid
// This file is part of the "Nazara Development Kit" // This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequisites.hpp // For conditions of distribution and use, see copyright notice in Prerequisites.hpp
@ -23,7 +23,7 @@ namespace Ndk
friend class Sdk; friend class Sdk;
public: public:
ProgressBarWidget(BaseWidget* parent = nullptr); ProgressBarWidget(BaseWidget* parent);
ProgressBarWidget(const ProgressBarWidget&) = delete; ProgressBarWidget(const ProgressBarWidget&) = delete;
ProgressBarWidget(ProgressBarWidget&&) = default; ProgressBarWidget(ProgressBarWidget&&) = default;
~ProgressBarWidget() = default; ~ProgressBarWidget() = default;

View File

@ -18,7 +18,7 @@ namespace Ndk
class NDK_API TextAreaWidget : public BaseWidget class NDK_API TextAreaWidget : public BaseWidget
{ {
public: public:
TextAreaWidget(BaseWidget* parent = nullptr); TextAreaWidget(BaseWidget* parent);
TextAreaWidget(const TextAreaWidget&) = delete; TextAreaWidget(const TextAreaWidget&) = delete;
TextAreaWidget(TextAreaWidget&&) = default; TextAreaWidget(TextAreaWidget&&) = default;
~TextAreaWidget() = default; ~TextAreaWidget() = default;