WindowHandleView is a view that acts as a drag handle for it's parent window. This is generally useful for windows without titlebars.
Creates a new instance of View and makes it a child of another View or Window, effectively placing it within the parent's visual space. If there is a decorator installed on the parent, it will manage the position of the new View.
The 'bounds' argument may be omitted, in which case the view will be created with its preferred size at position (0,0).
If a parent is given and there is a layout installed on it, the layout will manage the position and size of this view and the 'bounds' argument will have no effect.
parent |
The instance of View or Window that the new View will become a child of. |
bounds |
A Rect or a Point describing size and position of the new View. If a Point is given, its coordinates will denote the view's size, while the view's position will be (0,0). Position is measured relative to the parent's top-left corner. |
Set the background image for the view. Default option is to x-y tile, unlike base class implementation of this function.
image |
An image for the background. Can be nil for no background image. Defaults to a crosshatch pattern. |