forked from xamarin/mac-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNestleView.cs
49 lines (40 loc) · 949 Bytes
/
NestleView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using CoreGraphics;
using Foundation;
using AppKit;
namespace Rulers
{
/// <summary>
/// NestleView's job is to provide a buffer zone around the ruler's
/// client, an instance of RectsView. I did this to test what happens
/// to the coordinate mapping when the client isn't the scroll view's
/// document view.
/// </summary>
public partial class NestleView : AppKit.NSView
{
#region Constructors
// Called when created from unmanaged code
public NestleView (IntPtr handle) : base(handle)
{
}
// Called when created directly from a XIB file
[Export("initWithCoder:")]
public NestleView (NSCoder coder) : base(coder)
{
}
[Export("initWithFrame:")]
public NestleView (CGRect frame) : base(frame)
{
}
#endregion
#region Class Overrides
public override bool IsFlipped {
get {
return true;
}
}
#endregion
}
}