Commit 8f11431 1 parent 5a66064 commit 8f11431 Copy full SHA for 8f11431
File tree 1 file changed +32
-4
lines changed
lib/include/elements/element
1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ namespace cycfi::elements
28
28
view_limits limits (basic_context const & ctx) const override ;
29
29
void prepare_subject (context& ctx) override ;
30
30
31
- rect bounds () const { return _bounds; }
32
- void bounds (rect bounds_) { _bounds = bounds_; }
31
+ rect bounds () const ;
32
+ void bounds (rect bounds_);
33
33
34
34
private:
35
35
@@ -44,8 +44,7 @@ namespace cycfi::elements
44
44
* The element type which must satisfy the `Element` concept.
45
45
*
46
46
* \param bounds
47
- * A `rect` object specifying the initial bounds of the
48
- * `floating_element`.
47
+ * A `rect` specifying the initial bounds of the `floating_element`.
49
48
*
50
49
* \param subject
51
50
* The `Subject` that needs to be treated as floating.
@@ -60,6 +59,35 @@ namespace cycfi::elements
60
59
{
61
60
return {std::forward<Subject>(subject), bounds};
62
61
}
62
+
63
+ // //////////////////////////////////////////////////////////////////////////
64
+ // Inlines
65
+ // //////////////////////////////////////////////////////////////////////////
66
+ namespace inlines {}
67
+
68
+ /* *
69
+ * \brief
70
+ * Get the bounds of the `floating_element`.
71
+ *
72
+ * \returns
73
+ * The bounds of the `floating_element`.
74
+ */
75
+ inline rect floating_element::bounds () const
76
+ {
77
+ return _bounds;
78
+ }
79
+
80
+ /* *
81
+ * \brief
82
+ * Set the bounds of the floating element.
83
+ *
84
+ * \param bounds_
85
+ * A `rect` specifying the new bounds of the `floating_element`.
86
+ */
87
+ inline void floating_element::bounds (rect bounds_)
88
+ {
89
+ _bounds = bounds_;
90
+ }
63
91
}
64
92
65
93
#endif
You can’t perform that action at this time.
0 commit comments