Lynkeos
Instance Methods | Public Attributes | List of all members
MyImageSelection Class Reference

Selection management model object. More...

#import <MyImageView.h>

Inheritance diagram for MyImageSelection:
Inheritance graph
[legend]
Collaboration diagram for MyImageSelection:
Collaboration graph
[legend]

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.
 

Detailed Description

Selection management model object.

Method Documentation

- (id) initWithRect: (LynkeosIntegerRect rect
movable: (BOOL)  move
resizable: (BOOL)  resize 

Dedicated initializer.

Parameters
rectSelection rectangle
moveWether the selection is can be resized
resizeWether the selection is moved
Returns
The new initialized selection

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.

Parameters
[out]rThe cursor rectangle
curThe cursor associated to this rectangle
swidth, height or side of the rectangle (or square)
hPosHorizontal order of this rectangle
vPosVertical order of this rectangle
vVisible rectangle for this view
viewThe view in which to place the cursor

References _rect, LynkeosIntegerSize::height, LynkeosIntegerRect::origin, LynkeosIntegerRect::size, LynkeosIntegerSize::width, LynkeosIntegerPoint::x, and LynkeosIntegerPoint::y.


The documentation for this class was generated from the following files: