예제 #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
 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
 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
 /// <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
 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
 public ColorWell(Rect frame)
     : base(frame)
 {
 }
예제 #14
0
 public ImageView(Rect rect)
 {
     NativeObject = (IntPtr) ObjCMessaging.objc_msgSend (NativeObject, "initWithFrame:", typeof (IntPtr), typeof (Rect), rect);
 }
예제 #15
0
 public Controller(Rect frame)
     : base(frame)
 {
     RegisterDragType (Pasteboard.Filenames);
 }