コード例 #1
0
ファイル: View.cs プロジェクト: mono/cocoa-sharp
 public View(Rect frame)
     : base()
 {
     if (this.GetType ().IsSubclassOf (typeof (View)))
         NativeObject = (IntPtr) ObjCMessaging.objc_msgSendSuper (NativeObject, "initWithFrame:", typeof (IntPtr), typeof (Rect), frame);
     else
         throw new ArgumentException ("initWithFrame: directly on NSView is unsupported");
 }
コード例 #2
0
ファイル: TableView.cs プロジェクト: mono/cocoa-sharp
 public TableView(Rect frame)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithFrame:", typeof (IntPtr), typeof (Rect), frame);
 }
コード例 #3
0
ファイル: Color.cs プロジェクト: mono/cocoa-sharp
 public void DrawSwatchInRect( Rect rect )
 {
     ObjCMessaging.objc_msgSend (NativeObject, "drawSwatchInRect:", typeof (void), typeof (Rect), rect);
 }
コード例 #4
0
ファイル: Button.cs プロジェクト: mono/cocoa-sharp
 public Button(Rect frame)
     : base(frame)
 {
 }
コード例 #5
0
ファイル: ProgressIndicator.cs プロジェクト: mono/cocoa-sharp
 public ProgressIndicator(Rect rect)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithFrame:", typeof (IntPtr), typeof (Rect), rect);
 }
コード例 #6
0
ファイル: Window.cs プロジェクト: mono/cocoa-sharp
 public Window(Rect rect, WindowStyle stylemask, BackingStoreType backingstore, bool defer)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeClass.ToIntPtr (), "alloc", typeof (IntPtr));
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithContentRect:styleMask:backing:defer:", typeof (IntPtr), typeof (Rect), rect, typeof (int), stylemask, typeof (int), backingstore, typeof (bool), defer);
 }
コード例 #7
0
ファイル: Control.cs プロジェクト: mono/cocoa-sharp
 public Control(Rect frame)
     : base(frame)
 {
 }
コード例 #8
0
ファイル: BezierPath.cs プロジェクト: mono/cocoa-sharp
 /// <summary>
 /// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes
 /// </summary>
 /// <remarks>
 /// The path is drawn beginning at the rectangleÕs origin and proceeding in a
 /// counterclockwise direction. This method strokes the specified path immediately.
 /// </remarks>
 /// <param name="bounds">
 /// A rectangle in the current coordinate system.
 /// </param> 
 public static void StrokeRect(Rect bounds)
 {
     ObjCMessaging.objc_msgSend ((IntPtr) ObjCClass.FromType (typeof (BezierPath)).ToIntPtr (),
                                 "strokeRect:", typeof (void), typeof (Rect), bounds);
 }
コード例 #9
0
ファイル: OpenGLView.cs プロジェクト: mono/cocoa-sharp
 public OpenGLView(Rect frame)
     : base(frame)
 {
 }
コード例 #10
0
ファイル: View.cs プロジェクト: mono/cocoa-sharp
 public virtual void OnDrawRect(Rect aRect)
 {
 }
コード例 #11
0
ファイル: View.cs プロジェクト: mono/cocoa-sharp
 /// <summary>
 ///
 /// </summary>
 /// <param name"aRect"></param>
 public void NeedsDisplay( Rect aRect )
 {
     ObjCMessaging.objc_msgSend (NativeObject, "setNeedsDisplayInRect:", typeof (void), typeof (Rect), aRect);
 }
コード例 #12
0
ファイル: View.cs プロジェクト: mono/cocoa-sharp
 public void Invalidate(Rect bounds)
 {
     ObjCMessaging.objc_msgSend (NativeObject, "invalidate:", typeof (void), typeof (Rect), bounds);
 }
コード例 #13
0
ファイル: ColorWell.cs プロジェクト: mono/cocoa-sharp
 public ColorWell(Rect frame)
     : base(frame)
 {
 }
コード例 #14
0
ファイル: ImageView.cs プロジェクト: mono/cocoa-sharp
 public ImageView(Rect rect)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithFrame:", typeof (IntPtr), typeof (Rect), rect);
 }
コード例 #15
0
ファイル: DragNDrop.cs プロジェクト: mono/cocoa-sharp
 public Controller(Rect frame)
     : base(frame)
 {
     RegisterDragType (Pasteboard.Filenames);
 }