diff --git a/src/Widget.h b/src/Widget.h index ab8e5f2..6646a2e 100644 --- a/src/Widget.h +++ b/src/Widget.h @@ -76,9 +76,9 @@ namespace Codingfield { virtual void OnSizeUpdated() { } virtual void OnPositionUpdated() { } + Widget* parent = nullptr; Point position; Size size; - Widget* parent = nullptr; std::vector children; bool isSelected = false; bool isVisible = true; diff --git a/src/WidgetMosaic.h b/src/WidgetMosaic.h index bddb63a..26806e2 100644 --- a/src/WidgetMosaic.h +++ b/src/WidgetMosaic.h @@ -21,8 +21,8 @@ namespace Codingfield { private: int32_t indexSelected = 0; int32_t border = 5; - int32_t nbRows; int32_t nbColumns; + int32_t nbRows; Size ComputeWidgetSize(); Size ComputeWidgetSize(int32_t nbColumns, int32_t nbRows);