Turn comments into XML docs. Change NSDragOperation visibility

This commit is contained in:
Vlad K 2017-06-21 23:08:34 +03:00
parent 9486b4963b
commit a3ca402168
3 changed files with 22 additions and 12 deletions

View file

@ -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
/// <summary>
/// Used by draggingSourceOperationMask() <see cref="CocoaNativeWindow.DraggingEntered"/> 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
/// </summary>
internal enum NSDragOperation : int
{
None = 0,
Copy = 1,

View file

@ -1759,7 +1759,9 @@ namespace OpenTK.Platform.SDL2
public Int32 Data2;
}
// For detailed info look: https://wiki.libsdl.org/SDL_DropEvent
/// <summary>
/// Drop event for SDL2 interop. For detailed info look: https://wiki.libsdl.org/SDL_DropEvent
/// </summary>
struct DropEvent
{
public UInt32 Type;

View file

@ -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
/// <summary>
/// X11 has some defined values they are defined with c's #define in X.h
/// </summary>
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
/// <summary>
/// Universal null resource or null atom. From header: #define None 0L
/// </summary>
public static readonly IntPtr None = IntPtr.Zero;
//
/// <summary>
/// Special time value. From header: #define CurrentTime 0L
/// </summary>
public static readonly IntPtr CurrentTime = IntPtr.Zero; //
}
#region internal static class API