Next: , Previous: , Up: BLOX.BCanvas   [Index]


1.6.2 BLOX.BCanvas: geometry management

addChild: child

The widget identified by child has been added to the receiver. This method is public not because you can call it, but because it can be useful to override it, not forgetting the call to either the superclass implementation or #basicAddChild:, to perform some initialization on the children just added. Answer the new child.

child: child height: value

Set the given child’s height.

child: child heightOffset: value

Offset the given child’s height by value pixels.

child: child width: value

Set the given child’s width.

child: child widthOffset: value

Offset the given child’s width by value pixels.

child: child x: value

Set the given child’s top-left corner’s x coordinate, in pixels in the canvas’ coordinate system.

child: child xOffset: value

Offset the given child’s top-left x by value pixels.

child: child y: value

Set the given child’s top-left corner’s y coordinate, in pixels in the canvas’ coordinate system.

child: child yOffset: value

Offset the given child’s top-left y by value pixels.

heightChild: child

Answer the given child’s height in pixels.

widthChild: child

Answer the given child’s width in pixels.

xChild: child

Answer the given child’s top-left corner’s x coordinate, in pixels in the canvas’ coordinate system.

yChild: child

Answer the given child’s top-left corner’s y coordinate, in pixels in the canvas’ coordinate system.


Next: , Previous: , Up: BLOX.BCanvas   [Index]