From a3ca40216882ac5389ab73e8e40c80aa1d3ea94a Mon Sep 17 00:00:00 2001 From: Vlad K Date: Wed, 21 Jun 2017 23:08:34 +0300 Subject: [PATCH] Turn comments into XML docs. Change NSDragOperation visibility --- .../Platform/MacOS/Cocoa/NSDragOperation.cs | 12 +++++++----- src/OpenTK/Platform/SDL2/Sdl2.cs | 4 +++- src/OpenTK/Platform/X11/API.cs | 18 ++++++++++++------ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/OpenTK/Platform/MacOS/Cocoa/NSDragOperation.cs b/src/OpenTK/Platform/MacOS/Cocoa/NSDragOperation.cs index ae16a4b8..b067eb2e 100644 --- a/src/OpenTK/Platform/MacOS/Cocoa/NSDragOperation.cs +++ b/src/OpenTK/Platform/MacOS/Cocoa/NSDragOperation.cs @@ -2,11 +2,13 @@ namespace OpenTK.Platform.MacOS { - // Values for enum : https://developer.apple.com/documentation/appkit/nsdragoperation?language=objc - // or for Mac users /System/Library/Frameworks/AppKit.framework/Headers - // Used by draggingSourceOperationMask(:) to get permission for dropped object - // also used for respones to drag source - enum NSDragOperation : int + /// + /// Used by draggingSourceOperationMask() to get permission for dropped object + /// also used for respones to drag source + /// Values for enum can be found here https://developer.apple.com/documentation/appkit/nsdragoperation?language=objc + /// or for Mac users /System/Library/Frameworks/AppKit.framework/Headers + /// + internal enum NSDragOperation : int { None = 0, Copy = 1, diff --git a/src/OpenTK/Platform/SDL2/Sdl2.cs b/src/OpenTK/Platform/SDL2/Sdl2.cs index bd6fffe0..d4042e1f 100644 --- a/src/OpenTK/Platform/SDL2/Sdl2.cs +++ b/src/OpenTK/Platform/SDL2/Sdl2.cs @@ -1759,7 +1759,9 @@ namespace OpenTK.Platform.SDL2 public Int32 Data2; } - // For detailed info look: https://wiki.libsdl.org/SDL_DropEvent + /// + /// Drop event for SDL2 interop. For detailed info look: https://wiki.libsdl.org/SDL_DropEvent + /// struct DropEvent { public UInt32 Type; diff --git a/src/OpenTK/Platform/X11/API.cs b/src/OpenTK/Platform/X11/API.cs index 1f3d3d44..2b6ed193 100644 --- a/src/OpenTK/Platform/X11/API.cs +++ b/src/OpenTK/Platform/X11/API.cs @@ -52,14 +52,20 @@ namespace OpenTK.Platform.X11 #endregion - // X11 has some defined values - // Whis values are defined with c's #define in X.h + /// + /// X11 has some defined values they are defined with c's #define in X.h + /// internal static class Consts { - // Universal null resource or null atom - public static readonly IntPtr None = IntPtr.Zero; // #define None 0L - // Special time value - public static readonly IntPtr CurrentTime = IntPtr.Zero; // #define CurrentTime 0L + /// + /// Universal null resource or null atom. From header: #define None 0L + /// + public static readonly IntPtr None = IntPtr.Zero; + // + /// + /// Special time value. From header: #define CurrentTime 0L + /// + public static readonly IntPtr CurrentTime = IntPtr.Zero; // } #region internal static class API