CtrlLib, Core, Doc: GUI23 tutorial takes into account changes in Rect constructor. Also, Rect_, Size_ and Point_ default constructors documentation has been updated.

This commit is contained in:
klugier 2025-06-22 21:07:18 +02:00
parent 3a73f06828
commit cc803d1d53
4 changed files with 21 additions and 8 deletions

View file

@ -3,7 +3,7 @@
using namespace Upp;
struct RandomRectCtrl : public Ctrl {
Rect rect = Rect(Size(0, 0));
Rect rect;
Color color;
void Paint(Draw& w) override {

View file

@ -1,5 +1,4 @@
topic "Point";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
@ -9,6 +8,7 @@ topic "Point";
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[2 $$0,0#00000000000000000000000000000000:Default]
[{_}%EN-US
[ {{10000@(113.42.0) [s0; [*@7;4 Point`_]]}}&]
[s3; &]
@ -51,7 +51,11 @@ ointf]&]
[ {{10000F(128)G(128)@1 [s0; [* Constructor List]]}}&]
[s3;%- &]
[s5;:Point`_`:`:Point`_`(`):%- [* Point`_]()&]
[s2; Creates an uninitialized [%-* Point`_].&]
[s0;l288;%- Creates a new [* Point`_] object with all its coordinates,
x and y, set to 0. This places the point at the origin (0,0).&]
[s2;%- &]
[s2;%- Consequently, calling the [*^topic`:`/`/Core`/src`/Point`_en`-us`#Point`_`:`:IsZero`(`)const^ I
sZero()] method on such a [* Point`_] object will return true.&]
[s3; &]
[s4;%- &]
[s5;:Point`_`:`:Point`_`(const Value`&`):%- [* Point`_]([@(0.0.255) const]_[_^Value^ Value][@(0.0.255) `&
@ -349,4 +353,4 @@ vl[@(64) (][^`:`:Point`_^@(64) Point`_][@(64) _][@3 a][@(64) , ][^`:`:Point`_^@(
][@3 b][@(64) )]&]
[s2; Returns [%-*@3 b] if [%-*@3 a] is Null, [%-*@3 a] otherwise.&]
[s3; &]
[s0; ]
[s0; ]]

View file

@ -63,7 +63,12 @@ as [* Rect`_].&]
[ {{10000F(128)G(128)@1 [s0;%% [* Constructor Detail]]}}&]
[s3; &]
[s5;:Rect`_`:`:Rect`_`(`): [* Rect`_]()&]
[s2;%% Creates an uninitialized [* Rect`_].&]
[s2;%% Creates a new [* Rect`_] object with all its coordinates, left,
top, right, and bottom, set to 0. Such a rectangle has no width
or height, sitting right at the (0,0) origin.&]
[s0;l288;%% &]
[s0;l288;%% Consequently, calling the [*^topic`:`/`/Core`/src`/Rect`_en`-us`#Rect`_`:`:IsEmpty`(`)const^ I
sEmpty()] method on such a [* Rect`_] object will return true.&]
[s3; &]
[s4; &]
[s5;:Rect`_`:`:Rect`_`(const Value`&`): [* Rect`_]([@(0.0.255) const]_[_^Value^ Value][@(0.0.255) `&

View file

@ -1,5 +1,4 @@
topic "Size";
[2 $$0,0#00000000000000000000000000000000:Default]
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
@ -9,6 +8,7 @@ topic "Size";
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[2 $$0,0#00000000000000000000000000000000:Default]
[{_}%EN-US
[ {{10000@(113.42.0) [s0; [*@7;4 Size`_]]}}&]
[s3; &]
@ -50,7 +50,11 @@ f]&]
[ {{10000F(128)G(128)@1 [s0; [* Constructor Detail]]}}&]
[s3;%- &]
[s5;:Size`_`:`:Size`_`(`):%- [* Size`_]()&]
[s2; Creates an uninitialized [* Size`_].&]
[s2; Creates a new [* Size`_] object with both its dimensions, cx (width)
and cy (height), set to 0.&]
[s0;l288; &]
[s0;l288; Consequently, calling the [*^topic`:`/`/Core`/src`/Size`_en`-us`#Size`_`:`:IsEmpty`(`)const^ I
sEmpty()] method on such a [* Size`_] object will return true.&]
[s3; &]
[s4; &]
[s5;:Size`_`:`:Size`_`(const Value`&`):%- [* Size`_]([@(0.0.255) const]_[_^Value^ Value][@(0.0.255) `&
@ -315,4 +319,4 @@ and ][%-* cy][%- equal to the square of ][%-*@3 a][%-* .cy].&]
]Length[@(64) (]Size`_[@(64) _][@3 a][@(64) )]&]
[s2; Returns the hypotenuse of the triangle described by [%-*@3 a].&]
[s3; &]
[s0; ]
[s0; ]]