~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/src/AppKit/NSWindow.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        public partial class NSWindow {
31
31
                static IntPtr selInitWithWindowRef = Selector.GetHandle ("initWithWindowRef:");
32
32
 
33
 
                [Export ("initWithWindowRef:")]
34
 
                public NSWindow (IntPtr windowRef, NSObjectFlag x) : base (NSObjectFlag.Empty)
 
33
                // Do not actually export because NSObjectFlag is not exportable.
 
34
                // The Objective C method already exists. This is just to allow
 
35
                // access on the managed side via the static method.
 
36
                //[Export ("initWithWindowRef:")]
 
37
                private NSWindow (IntPtr windowRef, NSObjectFlag x) : base (NSObjectFlag.Empty)
35
38
                {
36
39
                        if (IsDirectBinding) {
37
40
                                Handle = MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selInitWithWindowRef);
63
66
                        } else
64
67
                                _Close ();
65
68
                }
 
69
 
 
70
                // note: if needed override the protected Get|Set methods
 
71
                public string FrameAutosaveName { 
 
72
                        get { return GetFrameAutosaveName (); }
 
73
                        // ignore return value (bool)
 
74
                        set { SetFrameAutosaveName (value); }
 
75
                }
 
76
 
 
77
                public NSEvent NextEventMatchingMask (NSEventMask mask)
 
78
                {
 
79
                        return NextEventMatchingMask ((uint) mask);
 
80
                }
66
81
                
 
82
                public NSEvent NextEventMatchingMask (NSEventMask mask, NSDate expiration, string mode, bool deqFlag)
 
83
                {
 
84
                        return NextEventMatchingMask ((uint) mask, expiration, mode, deqFlag);
 
85
                }
 
86
 
 
87
                public void DiscardEventsMatchingMask (NSEventMask mask, NSEvent beforeLastEvent)
 
88
                {
 
89
                        DiscardEventsMatchingMask ((uint) mask, beforeLastEvent);
 
90
                }
 
91
 
67
92
// NSString NSWindowDidBecomeKeyNotification;
68
93
// NSString NSWindowDidBecomeMainNotification;
69
94
// NSString NSWindowDidChangeScreenNotification;