| Dimension |
|
typedict |
| |
A
Dimension
holds the horizontal and vertical dimensions of a rectangle.
The fields in a
Dimension
are:
| height |
A
double
that represents the vertical size of the rectangle.
| | width |
A
double
that represents the horizontal size of the rectangle.
|
Both numbers usually are distances in the default Yoix coordinate system,
where a value of 72 represents one inch.
| |
| Example: |
The program,
import yoix.thread.*;
Dimension d;
Frame f;
int n;
f.visible = TRUE;
for (n = 0; n < 10; n++) {
d = f.size; // gets current size
d.width += 18; // 0.25 inch wider
d.height += 18; // 0.25 inch higher
f.size = d; // grows the frame
sleep(1);
}
exit(0);
slowly grows an empty frame on your screen,
but only for about 10 seconds.
| | |
| See Also: |
Insets,
Point,
Rectangle
|
|
Yoix is a registered trademark of AT&T Inc.
|