Skip to content

Commit

Permalink
Update Stethoscope.schelp
Browse files Browse the repository at this point in the history
- Go to subsection Show
- Correct the argument description
- add about width change to the argument description
- rearrange examples
  • Loading branch information
prko committed May 5, 2024
1 parent 7ea3085 commit 39802c6
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions HelpSource/Classes/Stethoscope.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,22 @@ SUBSECTION:: Display
METHOD:: window
The (parent) Window of the scope.

METHOD:: bounds
The position and size of the window. The position is relative to the bottom-left corner of the screen.
argument::
A link::Classes/Rect::, or any object responding to the link::Search#asRect:: method. The width less than 264 will be changed to 264, the minimum width.
returns::
A Rect.
code::
s.scope.bounds_(Rect(100, 200, 500, 600));
s.scope.bounds_([100, 200, 500, 600]);
s.scope.bounds_(Size(500, 600));
::
code::
s.scope.bounds_(Rect(0, 0, 500, 600));
s.scope.bounds_(500@600);
::

METHOD:: size
Sets the width and the height of the scope window.
argument::
Expand Down Expand Up @@ -170,23 +186,6 @@ METHOD:: style

argument::
One of the above Integers.


SUBSECTION:: Size and position

METHOD:: bounds
The position and size of the window. The position is relative to the bottom-left corner of the screen.
argument::
A Rect, a Point interpreted link::Classes/Point#-asRect#.asRect:: or anything that responds to it.
returns::
A Rect.
code::
s.scope.bounds_(Rect(100, 200, 500, 600));
s.scope.bounds_(500@600);
s.scope.bounds_([100, 200, 500, 600]);
s.scope.bounds_(Size(500, 600));
::



SUBSECTION:: Operation
Expand Down

0 comments on commit 39802c6

Please sign in to comment.