aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-08 16:53:51 +0800
committercrupest <crupest@outlook.com>2022-02-08 16:53:51 +0800
commit74bb9cd27242b9320f99ff4d2b50c3051576cc14 (patch)
tree744bac5799c593d1d6f81e7b09581bea626f2cde /src/ui/render
parentb90c398de829d1ba5329651d75bae82f5e4085fe (diff)
downloadcru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.gz
cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.tar.bz2
cru-74bb9cd27242b9320f99ff4d2b50c3051576cc14.zip
...
Diffstat (limited to 'src/ui/render')
-rw-r--r--src/ui/render/BorderRenderObject.cpp20
-rw-r--r--src/ui/render/CanvasRenderObject.cpp2
-rw-r--r--src/ui/render/FlexLayoutRenderObject.cpp12
-rw-r--r--src/ui/render/LayoutHelper.cpp4
-rw-r--r--src/ui/render/RenderObject.cpp16
-rw-r--r--src/ui/render/ScrollBar.cpp34
-rw-r--r--src/ui/render/ScrollRenderObject.cpp12
-rw-r--r--src/ui/render/StackLayoutRenderObject.cpp8
-rw-r--r--src/ui/render/TextRenderObject.cpp16
9 files changed, 62 insertions, 62 deletions
diff --git a/src/ui/render/BorderRenderObject.cpp b/src/ui/render/BorderRenderObject.cpp
index 9b886348..61af27bc 100644
--- a/src/ui/render/BorderRenderObject.cpp
+++ b/src/ui/render/BorderRenderObject.cpp
@@ -1,13 +1,13 @@
-#include "cru/ui/render/BorderRenderObject.hpp"
-
-#include "../Helper.hpp"
-#include "cru/common/Logger.hpp"
-#include "cru/platform/graphics/Factory.hpp"
-#include "cru/platform/graphics/Geometry.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/ui/Base.hpp"
-#include "cru/ui/DebugFlags.hpp"
-#include "cru/ui/style/ApplyBorderStyleInfo.hpp"
+#include "cru/ui/render/BorderRenderObject.h"
+
+#include "../Helper.h"
+#include "cru/common/Logger.h"
+#include "cru/platform/graphics/Factory.h"
+#include "cru/platform/graphics/Geometry.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/ui/Base.h"
+#include "cru/ui/DebugFlags.h"
+#include "cru/ui/style/ApplyBorderStyleInfo.h"
#include <algorithm>
diff --git a/src/ui/render/CanvasRenderObject.cpp b/src/ui/render/CanvasRenderObject.cpp
index bf1155e1..985a2dae 100644
--- a/src/ui/render/CanvasRenderObject.cpp
+++ b/src/ui/render/CanvasRenderObject.cpp
@@ -1,4 +1,4 @@
-#include "cru/ui/render/CanvasRenderObject.hpp"
+#include "cru/ui/render/CanvasRenderObject.h"
namespace cru::ui::render {
CanvasRenderObject::CanvasRenderObject() : RenderObject(ChildMode::None) {}
diff --git a/src/ui/render/FlexLayoutRenderObject.cpp b/src/ui/render/FlexLayoutRenderObject.cpp
index 0e76995b..e4d16169 100644
--- a/src/ui/render/FlexLayoutRenderObject.cpp
+++ b/src/ui/render/FlexLayoutRenderObject.cpp
@@ -1,10 +1,10 @@
-#include "cru/ui/render/FlexLayoutRenderObject.hpp"
+#include "cru/ui/render/FlexLayoutRenderObject.h"
-#include "cru/common/Logger.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/ui/Base.hpp"
-#include "cru/ui/render/LayoutHelper.hpp"
-#include "cru/ui/render/MeasureRequirement.hpp"
+#include "cru/common/Logger.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/ui/Base.h"
+#include "cru/ui/render/LayoutHelper.h"
+#include "cru/ui/render/MeasureRequirement.h"
#include <algorithm>
#include <functional>
diff --git a/src/ui/render/LayoutHelper.cpp b/src/ui/render/LayoutHelper.cpp
index 5854a945..d7f6df8a 100644
--- a/src/ui/render/LayoutHelper.cpp
+++ b/src/ui/render/LayoutHelper.cpp
@@ -1,6 +1,6 @@
-#include "cru/ui/render/LayoutHelper.hpp"
+#include "cru/ui/render/LayoutHelper.h"
-#include "cru/common/Logger.hpp"
+#include "cru/common/Logger.h"
namespace cru::ui::render {
float CalculateAnchorByAlignment(Alignment alignment, float start_point,
diff --git a/src/ui/render/RenderObject.cpp b/src/ui/render/RenderObject.cpp
index 75bf1380..00488425 100644
--- a/src/ui/render/RenderObject.cpp
+++ b/src/ui/render/RenderObject.cpp
@@ -1,11 +1,11 @@
-#include "cru/ui/render/RenderObject.hpp"
-
-#include "cru/common/Logger.hpp"
-#include "cru/platform/GraphicsBase.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/ui/Base.hpp"
-#include "cru/ui/DebugFlags.hpp"
-#include "cru/ui/host/WindowHost.hpp"
+#include "cru/ui/render/RenderObject.h"
+
+#include "cru/common/Logger.h"
+#include "cru/platform/GraphicsBase.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/ui/Base.h"
+#include "cru/ui/DebugFlags.h"
+#include "cru/ui/host/WindowHost.h"
#include <algorithm>
#include <string>
diff --git a/src/ui/render/ScrollBar.cpp b/src/ui/render/ScrollBar.cpp
index 37aebeaf..e3cc006b 100644
--- a/src/ui/render/ScrollBar.cpp
+++ b/src/ui/render/ScrollBar.cpp
@@ -1,20 +1,20 @@
-#include "cru/ui/render/ScrollBar.hpp"
-
-#include "../Helper.hpp"
-#include "cru/common/Base.hpp"
-#include "cru/platform/GraphicsBase.hpp"
-#include "cru/platform/graphics/Factory.hpp"
-#include "cru/platform/graphics/Geometry.hpp"
-#include "cru/platform/graphics/Painter.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/platform/gui/Base.hpp"
-#include "cru/platform/gui/Cursor.hpp"
-#include "cru/ui/Base.hpp"
-#include "cru/ui/ThemeManager.hpp"
-#include "cru/ui/events/UiEvents.hpp"
-#include "cru/ui/helper/ClickDetector.hpp"
-#include "cru/ui/host/WindowHost.hpp"
-#include "cru/ui/render/ScrollRenderObject.hpp"
+#include "cru/ui/render/ScrollBar.h"
+
+#include "../Helper.h"
+#include "cru/common/Base.h"
+#include "cru/platform/GraphicsBase.h"
+#include "cru/platform/graphics/Factory.h"
+#include "cru/platform/graphics/Geometry.h"
+#include "cru/platform/graphics/Painter.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/platform/gui/Base.h"
+#include "cru/platform/gui/Cursor.h"
+#include "cru/ui/Base.h"
+#include "cru/ui/ThemeManager.h"
+#include "cru/ui/events/UiEvents.h"
+#include "cru/ui/helper/ClickDetector.h"
+#include "cru/ui/host/WindowHost.h"
+#include "cru/ui/render/ScrollRenderObject.h"
#include <algorithm>
#include <cassert>
diff --git a/src/ui/render/ScrollRenderObject.cpp b/src/ui/render/ScrollRenderObject.cpp
index bd9b8559..2400cc11 100644
--- a/src/ui/render/ScrollRenderObject.cpp
+++ b/src/ui/render/ScrollRenderObject.cpp
@@ -1,10 +1,10 @@
-#include "cru/ui/render/ScrollRenderObject.hpp"
+#include "cru/ui/render/ScrollRenderObject.h"
-#include "cru/platform/graphics/Painter.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/ui/Base.hpp"
-#include "cru/ui/controls/Control.hpp"
-#include "cru/ui/render/ScrollBar.hpp"
+#include "cru/platform/graphics/Painter.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/ui/Base.h"
+#include "cru/ui/controls/Control.h"
+#include "cru/ui/render/ScrollBar.h"
#include <algorithm>
#include <memory>
diff --git a/src/ui/render/StackLayoutRenderObject.cpp b/src/ui/render/StackLayoutRenderObject.cpp
index 1b6cc9fc..ea65fe02 100644
--- a/src/ui/render/StackLayoutRenderObject.cpp
+++ b/src/ui/render/StackLayoutRenderObject.cpp
@@ -1,8 +1,8 @@
-#include "cru/ui/render/StackLayoutRenderObject.hpp"
+#include "cru/ui/render/StackLayoutRenderObject.h"
-#include "cru/common/Logger.hpp"
-#include "cru/ui/render/LayoutHelper.hpp"
-#include "cru/ui/render/MeasureRequirement.hpp"
+#include "cru/common/Logger.h"
+#include "cru/ui/render/LayoutHelper.h"
+#include "cru/ui/render/MeasureRequirement.h"
#include <algorithm>
diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp
index f7665beb..675bac3c 100644
--- a/src/ui/render/TextRenderObject.cpp
+++ b/src/ui/render/TextRenderObject.cpp
@@ -1,11 +1,11 @@
-#include "cru/ui/render/TextRenderObject.hpp"
-
-#include "../Helper.hpp"
-#include "cru/common/Logger.hpp"
-#include "cru/platform/graphics/Factory.hpp"
-#include "cru/platform/graphics/TextLayout.hpp"
-#include "cru/platform/graphics/util/Painter.hpp"
-#include "cru/ui/DebugFlags.hpp"
+#include "cru/ui/render/TextRenderObject.h"
+
+#include "../Helper.h"
+#include "cru/common/Logger.h"
+#include "cru/platform/graphics/Factory.h"
+#include "cru/platform/graphics/TextLayout.h"
+#include "cru/platform/graphics/util/Painter.h"
+#include "cru/ui/DebugFlags.h"
#include <algorithm>
#include <limits>