C# Class Smartmobili.Cocoa.NSView

Inheritance: NSResponder
Show file Open project: smartmobili/CocoaBuilder Class Usage Examples

Public Properties

Property Type Description
Class Class

Protected Properties

Property Type Description
_allocate_gstate bool
_autoresizes_subviews bool
_autoresizingFrameError NSRect
_autoresizingMask uint
_bounds NSRect
_boundsMatrix NSAffineTransform
_coordinates_valid bool
_cursor_rects NSMutableArray
_focusRingType NSFocusRingType
_frame NSRect
_frameMatrix NSAffineTransform
_gstate int
_in_live_resize bool
_invalidRect NSRect
_is_hidden bool
_is_rotated_from_base bool
_is_rotated_or_scaled_from_base bool
_matrixFromWindow NSAffineTransform
_matrixToWindow NSAffineTransform
_nextKeyView id
_post_bounds_changes bool
_post_frame_changes bool
_previousKeyView id
_rFlags _rFlagsType
_renew_gstate bool
_sub_views NSMutableArray
_super_view NSView
_tracking_rects NSMutableArray
_visibleRect NSRect
_window NSWindow

Public Methods

Method Description
AddSubview ( NSView aView ) : void
AddSubview ( NSView aView, NSWindowOrderingMode place, NSView otherView ) : void
AncestorSharedWithView ( NSView aView ) : NSView
Autoresize ( double oldContainerSize, double newContainerSize, double &contentPositionInOut, double &contentSizeInOut, bool minMarginFlexible, bool sizeFlexible, bool maxMarginFlexible ) : void
CenterScanRect ( NSRect aRect ) : NSRect
ConvertPointFromBase ( NSPoint aPoint ) : NSPoint
ConvertPointFromView ( NSPoint aPoint, NSView aView ) : NSPoint
ConvertPointToBase ( NSPoint aPoint ) : NSPoint
ConvertPointToView ( NSPoint aPoint, NSView aView ) : NSPoint
ConvertRectFromBase ( NSRect aRect ) : NSRect
ConvertRectFromView ( NSRect aRect, NSView aView ) : NSRect
ConvertRectToBase ( NSRect aRect ) : NSRect
ConvertRectToView ( NSRect aRect, NSView aView ) : NSRect
ConvertSizeFromBase ( NSSize aSize ) : NSSize
ConvertSizeFromView ( NSSize aSize, NSView aView ) : NSSize
ConvertSizeToBase ( NSSize aSize ) : NSSize
ConvertSizeToView ( NSSize aSize, NSView aView ) : NSSize
Description ( ) : NSString
DidAddSubview ( NSView subview ) : void
DiscardCursorRects ( ) : void
Display ( ) : void
DisplayIfNeeded ( ) : void
DisplayIfNeededIgnoringOpacity ( ) : void
DisplayIfNeededInRect ( NSRect aRect ) : void
DisplayIfNeededInRectIgnoringOpacity ( NSRect aRect ) : void
DisplayRect ( NSRect aRect ) : void
DisplayRectIgnoringOpacity ( NSRect aRect ) : void
DisplayRectIgnoringOpacity ( NSRect aRect, NSGraphicsContext context ) : void
DrawRect ( NSRect rect ) : void
FocusView ( ) : NSView
GSGetDragTypes ( NSView obj ) : NSArray
GSRemoveDragTypes ( NSView obj ) : void
GSSetDragTypes ( NSView obj, NSArray types ) : NSArray
GetAutoresizesSubviews ( ) : bool
GetAutoresizingMask ( ) : uint
GetBounds ( ) : NSRect
GetBoundsRotation ( ) : double
GetDefaultFocusRingType ( ) : NSFocusRingType
GetFocusRingType ( ) : NSFocusRingType
GetFrame ( ) : NSRect
GetFrameRotation ( ) : double
GetIsOpaque ( ) : bool
GetNeedsDisplay ( ) : bool
GetSubviews ( ) : NSArray
GetSuperview ( ) : NSView
GetTag ( ) : int
GetVisibleRect ( ) : NSRect
GetWindow ( ) : NSWindow
Init ( ) : id
InitWithCoder ( NSCoder aDecoder ) : id
InitWithFrame ( NSRect frameRect ) : id
IsDescendantOf ( NSView aView ) : bool
IsFlipped ( ) : bool
IsHidden ( ) : bool
IsHiddenOrHasHiddenAncestor ( ) : bool
IsRotatedFromBase ( ) : bool
IsRotatedOrScaledFromBase ( ) : bool
NSView ( ) : System
OpaqueAncestor ( ) : NSView
RemoveFromSuperview ( ) : void
RemoveFromSuperviewWithoutNeedingDisplay ( ) : void
RemoveSubview ( NSView aView ) : void
ReplaceSubviewWith ( NSView oldView, NSView newView ) : void
ResetCursorRects ( ) : void
ResizeSubviewsWithOldSize ( NSSize oldSize ) : void
ResizeWithOldSuperviewSize ( NSSize oldSize ) : void
RotateByAngle ( double angle ) : void
ScaleUnitSquareToSize ( NSSize newSize ) : void
SetAutoresizesSubviews ( bool flag ) : void
SetAutoresizingMask ( uint mask ) : void
SetBounds ( NSRect aRect ) : void
SetBoundsOrigin ( NSPoint newOrigin ) : void
SetBoundsRotation ( double angle ) : void
SetBoundsSize ( NSSize newSize ) : void
SetFocusRingType ( NSFocusRingType focusRingType ) : void
SetFrame ( NSRect frameRect ) : void
SetFrameOrigin ( NSPoint newOrigin ) : void
SetFrameRotation ( double angle ) : void
SetFrameSize ( NSSize newSize ) : void
SetHidden ( bool flag ) : void
SetNeedsDisplay ( bool flag ) : void
SetNeedsDisplayInRect ( NSRect invalidRect ) : void
SetPostsBoundsChangedNotifications ( bool flag ) : void
SetPostsFrameChangedNotifications ( bool flag ) : void
SetSubviews ( NSArray newSubviews ) : void
TranslateOriginToPoint ( NSPoint point ) : void
ViewDidMoveToSuperview ( ) : void
ViewDidMoveToWindow ( ) : void
ViewWillMoveToSuperview ( NSView newSuper ) : void
ViewWillMoveToWindow ( NSWindow newWindow ) : void
WillRemoveSubview ( NSView subview ) : void
_FlagDescription ( ) : NSString
_ResizeDescription ( ) : NSString
_SetFrameAndClearAutoresizingError ( NSRect frameRect ) : void
_SubtreeDescription ( ) : NSString

Protected Methods

Method Description
ReleaseGState ( ) : void
_FrameExtend ( ) : NSRect
_InvalidateCoordinates ( ) : void
_MatrixFromWindow ( ) : NSAffineTransform
_MatrixToWindow ( ) : NSAffineTransform
_RebuildCoordinates ( ) : void
_SubtreeDescriptionWithPrefix ( NSString prefix ) : NSString
_ViewDidMoveToWindow ( ) : void
_ViewWillMoveToSuperview ( NSView newSuper ) : void
_ViewWillMoveToWindow ( NSWindow newWindow ) : void

Private Methods

Method Description
_computeScale ( NSSize fs, NSSize bs ) : NSSize
convert_rect_using_matrices ( NSRect aRect, NSAffineTransform matrix1, NSAffineTransform matrix2 ) : NSRect

Method Details

AddSubview() public method

public AddSubview ( NSView aView ) : void
aView NSView
return void

AddSubview() public method

public AddSubview ( NSView aView, NSWindowOrderingMode place, NSView otherView ) : void
aView NSView
place NSWindowOrderingMode
otherView NSView
return void

AncestorSharedWithView() public method

public AncestorSharedWithView ( NSView aView ) : NSView
aView NSView
return NSView

Autoresize() public static method

public static Autoresize ( double oldContainerSize, double newContainerSize, double &contentPositionInOut, double &contentSizeInOut, bool minMarginFlexible, bool sizeFlexible, bool maxMarginFlexible ) : void
oldContainerSize double
newContainerSize double
contentPositionInOut double
contentSizeInOut double
minMarginFlexible bool
sizeFlexible bool
maxMarginFlexible bool
return void

CenterScanRect() public method

public CenterScanRect ( NSRect aRect ) : NSRect
aRect NSRect
return NSRect

ConvertPointFromBase() public method

public ConvertPointFromBase ( NSPoint aPoint ) : NSPoint
aPoint NSPoint
return NSPoint

ConvertPointFromView() public method

public ConvertPointFromView ( NSPoint aPoint, NSView aView ) : NSPoint
aPoint NSPoint
aView NSView
return NSPoint

ConvertPointToBase() public method

public ConvertPointToBase ( NSPoint aPoint ) : NSPoint
aPoint NSPoint
return NSPoint

ConvertPointToView() public method

public ConvertPointToView ( NSPoint aPoint, NSView aView ) : NSPoint
aPoint NSPoint
aView NSView
return NSPoint

ConvertRectFromBase() public method

public ConvertRectFromBase ( NSRect aRect ) : NSRect
aRect NSRect
return NSRect

ConvertRectFromView() public method

public ConvertRectFromView ( NSRect aRect, NSView aView ) : NSRect
aRect NSRect
aView NSView
return NSRect

ConvertRectToBase() public method

public ConvertRectToBase ( NSRect aRect ) : NSRect
aRect NSRect
return NSRect

ConvertRectToView() public method

public ConvertRectToView ( NSRect aRect, NSView aView ) : NSRect
aRect NSRect
aView NSView
return NSRect

ConvertSizeFromBase() public method

public ConvertSizeFromBase ( NSSize aSize ) : NSSize
aSize NSSize
return NSSize

ConvertSizeFromView() public method

public ConvertSizeFromView ( NSSize aSize, NSView aView ) : NSSize
aSize NSSize
aView NSView
return NSSize

ConvertSizeToBase() public method

public ConvertSizeToBase ( NSSize aSize ) : NSSize
aSize NSSize
return NSSize

ConvertSizeToView() public method

public ConvertSizeToView ( NSSize aSize, NSView aView ) : NSSize
aSize NSSize
aView NSView
return NSSize

Description() public method

public Description ( ) : NSString
return NSString

DidAddSubview() public method

public DidAddSubview ( NSView subview ) : void
subview NSView
return void

DiscardCursorRects() public method

public DiscardCursorRects ( ) : void
return void

Display() public method

public Display ( ) : void
return void

DisplayIfNeeded() public method

public DisplayIfNeeded ( ) : void
return void

DisplayIfNeededIgnoringOpacity() public method

public DisplayIfNeededIgnoringOpacity ( ) : void
return void

DisplayIfNeededInRect() public method

public DisplayIfNeededInRect ( NSRect aRect ) : void
aRect NSRect
return void

DisplayIfNeededInRectIgnoringOpacity() public method

public DisplayIfNeededInRectIgnoringOpacity ( NSRect aRect ) : void
aRect NSRect
return void

DisplayRect() public method

public DisplayRect ( NSRect aRect ) : void
aRect NSRect
return void

DisplayRectIgnoringOpacity() public method

public DisplayRectIgnoringOpacity ( NSRect aRect ) : void
aRect NSRect
return void

DisplayRectIgnoringOpacity() public method

public DisplayRectIgnoringOpacity ( NSRect aRect, NSGraphicsContext context ) : void
aRect NSRect
context NSGraphicsContext
return void

DrawRect() public method

public DrawRect ( NSRect rect ) : void
rect NSRect
return void

FocusView() public static method

public static FocusView ( ) : NSView
return NSView

GSGetDragTypes() public method

public GSGetDragTypes ( NSView obj ) : NSArray
obj NSView
return NSArray

GSRemoveDragTypes() public static method

public static GSRemoveDragTypes ( NSView obj ) : void
obj NSView
return void

GSSetDragTypes() public static method

public static GSSetDragTypes ( NSView obj, NSArray types ) : NSArray
obj NSView
types NSArray
return NSArray

GetAutoresizesSubviews() public method

public GetAutoresizesSubviews ( ) : bool
return bool

GetAutoresizingMask() public method

public GetAutoresizingMask ( ) : uint
return uint

GetBounds() public method

public GetBounds ( ) : NSRect
return NSRect

GetBoundsRotation() public method

public GetBoundsRotation ( ) : double
return double

GetDefaultFocusRingType() public static method

public static GetDefaultFocusRingType ( ) : NSFocusRingType
return NSFocusRingType

GetFocusRingType() public method

public GetFocusRingType ( ) : NSFocusRingType
return NSFocusRingType

GetFrame() public method

public GetFrame ( ) : NSRect
return NSRect

GetFrameRotation() public method

public GetFrameRotation ( ) : double
return double

GetIsOpaque() public method

public GetIsOpaque ( ) : bool
return bool

GetNeedsDisplay() public method

public GetNeedsDisplay ( ) : bool
return bool

GetSubviews() public method

public GetSubviews ( ) : NSArray
return NSArray

GetSuperview() public method

public GetSuperview ( ) : NSView
return NSView

GetTag() public method

public GetTag ( ) : int
return int

GetVisibleRect() public method

public GetVisibleRect ( ) : NSRect
return NSRect

GetWindow() public method

public GetWindow ( ) : NSWindow
return NSWindow

Init() public method

public Init ( ) : id
return id

InitWithCoder() public method

public InitWithCoder ( NSCoder aDecoder ) : id
aDecoder NSCoder
return id

InitWithFrame() public method

public InitWithFrame ( NSRect frameRect ) : id
frameRect NSRect
return id

IsDescendantOf() public method

public IsDescendantOf ( NSView aView ) : bool
aView NSView
return bool

IsFlipped() public method

public IsFlipped ( ) : bool
return bool

IsHidden() public method

public IsHidden ( ) : bool
return bool

IsHiddenOrHasHiddenAncestor() public method

public IsHiddenOrHasHiddenAncestor ( ) : bool
return bool

IsRotatedFromBase() public method

public IsRotatedFromBase ( ) : bool
return bool

IsRotatedOrScaledFromBase() public method

public IsRotatedOrScaledFromBase ( ) : bool
return bool

NSView() public method

public NSView ( ) : System
return System

OpaqueAncestor() public method

public OpaqueAncestor ( ) : NSView
return NSView

ReleaseGState() protected method

protected ReleaseGState ( ) : void
return void

RemoveFromSuperview() public method

public RemoveFromSuperview ( ) : void
return void

RemoveFromSuperviewWithoutNeedingDisplay() public method

public RemoveFromSuperviewWithoutNeedingDisplay ( ) : void
return void

RemoveSubview() public method

public RemoveSubview ( NSView aView ) : void
aView NSView
return void

ReplaceSubviewWith() public method

public ReplaceSubviewWith ( NSView oldView, NSView newView ) : void
oldView NSView
newView NSView
return void

ResetCursorRects() public method

public ResetCursorRects ( ) : void
return void

ResizeSubviewsWithOldSize() public method

public ResizeSubviewsWithOldSize ( NSSize oldSize ) : void
oldSize NSSize
return void

ResizeWithOldSuperviewSize() public method

public ResizeWithOldSuperviewSize ( NSSize oldSize ) : void
oldSize NSSize
return void

RotateByAngle() public method

public RotateByAngle ( double angle ) : void
angle double
return void

ScaleUnitSquareToSize() public method

public ScaleUnitSquareToSize ( NSSize newSize ) : void
newSize NSSize
return void

SetAutoresizesSubviews() public method

public SetAutoresizesSubviews ( bool flag ) : void
flag bool
return void

SetAutoresizingMask() public method

public SetAutoresizingMask ( uint mask ) : void
mask uint
return void

SetBounds() public method

public SetBounds ( NSRect aRect ) : void
aRect NSRect
return void

SetBoundsOrigin() public method

public SetBoundsOrigin ( NSPoint newOrigin ) : void
newOrigin NSPoint
return void

SetBoundsRotation() public method

public SetBoundsRotation ( double angle ) : void
angle double
return void

SetBoundsSize() public method

public SetBoundsSize ( NSSize newSize ) : void
newSize NSSize
return void

SetFocusRingType() public method

public SetFocusRingType ( NSFocusRingType focusRingType ) : void
focusRingType NSFocusRingType
return void

SetFrame() public method

public SetFrame ( NSRect frameRect ) : void
frameRect NSRect
return void

SetFrameOrigin() public method

public SetFrameOrigin ( NSPoint newOrigin ) : void
newOrigin NSPoint
return void

SetFrameRotation() public method

public SetFrameRotation ( double angle ) : void
angle double
return void

SetFrameSize() public method

public SetFrameSize ( NSSize newSize ) : void
newSize NSSize
return void

SetHidden() public method

public SetHidden ( bool flag ) : void
flag bool
return void

SetNeedsDisplay() public method

public SetNeedsDisplay ( bool flag ) : void
flag bool
return void

SetNeedsDisplayInRect() public method

public SetNeedsDisplayInRect ( NSRect invalidRect ) : void
invalidRect NSRect
return void

SetPostsBoundsChangedNotifications() public method

public SetPostsBoundsChangedNotifications ( bool flag ) : void
flag bool
return void

SetPostsFrameChangedNotifications() public method

public SetPostsFrameChangedNotifications ( bool flag ) : void
flag bool
return void

SetSubviews() public method

public SetSubviews ( NSArray newSubviews ) : void
newSubviews NSArray
return void

TranslateOriginToPoint() public method

public TranslateOriginToPoint ( NSPoint point ) : void
point NSPoint
return void

ViewDidMoveToSuperview() public method

public ViewDidMoveToSuperview ( ) : void
return void

ViewDidMoveToWindow() public method

public ViewDidMoveToWindow ( ) : void
return void

ViewWillMoveToSuperview() public method

public ViewWillMoveToSuperview ( NSView newSuper ) : void
newSuper NSView
return void

ViewWillMoveToWindow() public method

public ViewWillMoveToWindow ( NSWindow newWindow ) : void
newWindow NSWindow
return void

WillRemoveSubview() public method

public WillRemoveSubview ( NSView subview ) : void
subview NSView
return void

_FlagDescription() public method

public _FlagDescription ( ) : NSString
return NSString

_FrameExtend() protected method

protected _FrameExtend ( ) : NSRect
return NSRect

_InvalidateCoordinates() protected method

protected _InvalidateCoordinates ( ) : void
return void

_MatrixFromWindow() protected method

protected _MatrixFromWindow ( ) : NSAffineTransform
return NSAffineTransform

_MatrixToWindow() protected method

protected _MatrixToWindow ( ) : NSAffineTransform
return NSAffineTransform

_RebuildCoordinates() protected method

protected _RebuildCoordinates ( ) : void
return void

_ResizeDescription() public method

public _ResizeDescription ( ) : NSString
return NSString

_SetFrameAndClearAutoresizingError() public method

public _SetFrameAndClearAutoresizingError ( NSRect frameRect ) : void
frameRect NSRect
return void

_SubtreeDescription() public method

public _SubtreeDescription ( ) : NSString
return NSString

_SubtreeDescriptionWithPrefix() protected method

protected _SubtreeDescriptionWithPrefix ( NSString prefix ) : NSString
prefix NSString
return NSString

_ViewDidMoveToWindow() protected method

protected _ViewDidMoveToWindow ( ) : void
return void

_ViewWillMoveToSuperview() protected method

protected _ViewWillMoveToSuperview ( NSView newSuper ) : void
newSuper NSView
return void

_ViewWillMoveToWindow() protected method

protected _ViewWillMoveToWindow ( NSWindow newWindow ) : void
newWindow NSWindow
return void

Property Details

Class public static property

public static Class,Smartmobili.Cocoa Class
return Class

_allocate_gstate protected property

protected bool _allocate_gstate
return bool

_autoresizes_subviews protected property

protected bool _autoresizes_subviews
return bool

_autoresizingFrameError protected property

protected NSRect,Smartmobili.Cocoa _autoresizingFrameError
return NSRect

_autoresizingMask protected property

protected uint _autoresizingMask
return uint

_bounds protected property

protected NSRect,Smartmobili.Cocoa _bounds
return NSRect

_boundsMatrix protected property

protected NSAffineTransform,Smartmobili.Cocoa _boundsMatrix
return NSAffineTransform

_coordinates_valid protected property

protected bool _coordinates_valid
return bool

_cursor_rects protected property

protected NSMutableArray,Smartmobili.Cocoa _cursor_rects
return NSMutableArray

_focusRingType protected property

protected NSFocusRingType _focusRingType
return NSFocusRingType

_frame protected property

protected NSRect,Smartmobili.Cocoa _frame
return NSRect

_frameMatrix protected property

protected NSAffineTransform,Smartmobili.Cocoa _frameMatrix
return NSAffineTransform

_gstate protected property

protected int _gstate
return int

_in_live_resize protected property

protected bool _in_live_resize
return bool

_invalidRect protected property

protected NSRect,Smartmobili.Cocoa _invalidRect
return NSRect

_is_hidden protected property

protected bool _is_hidden
return bool

_is_rotated_from_base protected property

protected bool _is_rotated_from_base
return bool

_is_rotated_or_scaled_from_base protected property

protected bool _is_rotated_or_scaled_from_base
return bool

_matrixFromWindow protected property

protected NSAffineTransform,Smartmobili.Cocoa _matrixFromWindow
return NSAffineTransform

_matrixToWindow protected property

protected NSAffineTransform,Smartmobili.Cocoa _matrixToWindow
return NSAffineTransform

_nextKeyView protected property

protected id,Smartmobili.Cocoa _nextKeyView
return id

_post_bounds_changes protected property

protected bool _post_bounds_changes
return bool

_post_frame_changes protected property

protected bool _post_frame_changes
return bool

_previousKeyView protected property

protected id,Smartmobili.Cocoa _previousKeyView
return id

_rFlags protected property

protected _rFlagsType _rFlags
return _rFlagsType

_renew_gstate protected property

protected bool _renew_gstate
return bool

_sub_views protected property

protected NSMutableArray,Smartmobili.Cocoa _sub_views
return NSMutableArray

_super_view protected property

protected NSView,Smartmobili.Cocoa _super_view
return NSView

_tracking_rects protected property

protected NSMutableArray,Smartmobili.Cocoa _tracking_rects
return NSMutableArray

_visibleRect protected property

protected NSRect,Smartmobili.Cocoa _visibleRect
return NSRect

_window protected property

protected NSWindow,Smartmobili.Cocoa _window
return NSWindow