aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-10-01 17:11:11 +0000
committerYuqian Yang <crupest@outlook.com>2018-10-01 17:11:11 +0000
commit30ecda8bb354d5982978af97aa90b5f49d9ea195 (patch)
treea271bddb244fa2041f14f8d46d249457cee09e5f /src/ui/control.h
parent398b8f3ba535bb43c4b8593e3027c14894a7a211 (diff)
parent040a6c18f18100b825a56443a73aa1de64e4518c (diff)
downloadcru-30ecda8bb354d5982978af97aa90b5f49d9ea195.tar.gz
cru-30ecda8bb354d5982978af97aa90b5f49d9ea195.tar.bz2
cru-30ecda8bb354d5982978af97aa90b5f49d9ea195.zip
Merge branch '9-border' into 'master'
Resolve "Abstract out border control of button and border." Closes #9 See merge request crupest/CruUI!11
Diffstat (limited to 'src/ui/control.h')
-rw-r--r--src/ui/control.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/control.h b/src/ui/control.h
index 98d41d0d..964b61c4 100644
--- a/src/ui/control.h
+++ b/src/ui/control.h
@@ -309,6 +309,9 @@ namespace cru
virtual Size OnMeasure(const Size& available_size);
virtual void OnLayout(const Rect& rect);
+ Size DefaultMeasureWithPadding(const Size& available_size, const Thickness& padding);
+ void DefaultLayoutWithPadding(const Rect& rect, const Thickness& padding);
+
private:
// Only for layout manager to use.
// Check if the old position is updated to current position.