Lynkeos
|
Selection management model object. More...
#import <MyImageView.h>
Instance Methods | |
(id) | - initWithRect:movable:resizable: |
Dedicated initializer. More... | |
(void) | - processCursorRect:cursor:size:horizontalOrder:verticalOrder:visible:view: |
Set a specific cursor rectangle. More... | |
Public Attributes | |
BOOL | _resizable |
Wether the selection is resizable. | |
BOOL | _movable |
Wether the selection is movable. | |
LynkeosIntegerRect | _rect |
Selection rectangle. | |
NSRect | _left |
Left side cursor rectangle. | |
NSRect | _right |
Right side cursor rectangle. | |
NSRect | _top |
Top side cursor rectangle. | |
NSRect | _bottom |
Bttom side cursor rectangle. | |
NSRect | _topLeft |
Top left corner cursor rectangle. | |
NSRect | _topRight |
Top right side corner rectangle. | |
NSRect | _bottomLeft |
Bottom left side corner rectangle. | |
NSRect | _bottomRight |
Bottom right side corner rectangle. | |
NSRect | _inside |
Interior cursor rectangle. | |
Selection management model object.
- (id) initWithRect: | (LynkeosIntegerRect) | rect | |
movable: | (BOOL) | move | |
resizable: | (BOOL) | resize | |
Dedicated initializer.
rect | Selection rectangle |
move | Wether the selection is can be resized |
resize | Wether the selection is moved |
References _bottom, _bottomLeft, _bottomRight, _inside, _left, _movable, _rect, _resizable, _right, _top, _topLeft, and _topRight.
- (void) processCursorRect: | (NSRect*) | r | |
cursor: | (NSCursor*) | cur | |
size: | (float) | s | |
horizontalOrder: | (SelectionPosition_t) | hPos | |
verticalOrder: | (SelectionPosition_t) | vPos | |
visible: | (NSRect) | v | |
view: | (NSView*) | view | |
Set a specific cursor rectangle.
[out] | r | The cursor rectangle |
cur | The cursor associated to this rectangle | |
s | width, height or side of the rectangle (or square) | |
hPos | Horizontal order of this rectangle | |
vPos | Vertical order of this rectangle | |
v | Visible rectangle for this view | |
view | The view in which to place the cursor |
References _rect, LynkeosIntegerSize::height, LynkeosIntegerRect::origin, LynkeosIntegerRect::size, LynkeosIntegerSize::width, LynkeosIntegerPoint::x, and LynkeosIntegerPoint::y.