Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Small cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
migueldeicaza committed Dec 20, 2017
1 parent 3b53d53 commit 37e0327
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 32 deletions.
1 change: 1 addition & 0 deletions attrib.c
Expand Up @@ -111,6 +111,7 @@ main (int argc, char *argv [])
put2 ("End", KEY_END);
put2 ("DeleteChar", KEY_DC);
put2 ("InsertChar", KEY_IC);
put2 ("BackTab", KEY_BTAB);
put2 ("F1", KEY_F(1));
put2 ("F2", KEY_F(2));
put2 ("F3", KEY_F(3));
Expand Down
10 changes: 9 additions & 1 deletion binding.cs
Expand Up @@ -96,7 +96,11 @@ static public Window initscr ()
}
}

static internal bool CheckWinChange ()
//
// Returns true if the window changed since the last invocation, as a
// side effect, the Lines and Cols properties are updated
//
public static bool CheckWinChange ()
{
int l, c;

Expand Down Expand Up @@ -299,6 +303,10 @@ public static int addch (int ch)
[DllImport ("ncurses")]
extern internal static int use_default_colors ();
public static int UseDefaultColors () => use_default_colors ();

[DllImport ("ncurses")]
extern internal static int COLOR_PAIRS();
public static int ColorPairs => COLOR_PAIRS();


#endregion
Expand Down
19 changes: 0 additions & 19 deletions docs/Mono.Terminal/Action.xml

This file was deleted.

6 changes: 3 additions & 3 deletions docs/Mono.Terminal/MainLoop.xml
Expand Up @@ -148,9 +148,6 @@
<MemberSignature Language="C#" Value="public void Invoke (Mono.Terminal.Action action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Invoke(class Mono.Terminal.Action action) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
Expand All @@ -169,6 +166,9 @@
<MemberSignature Language="C#" Value="public void Invoke (Action action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void Invoke(class System.Action action) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
Expand Down
12 changes: 6 additions & 6 deletions docs/Mono.Terminal/MenuItem.xml
Expand Up @@ -15,16 +15,16 @@
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MenuItem (string title, string help, Mono.Terminal.Action action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string title, string help, class Mono.Terminal.Action action) cil managed" />
<MemberSignature Language="C#" Value="public MenuItem (string title, string help, Action action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string title, string help, class System.Action action) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="title" Type="System.String" />
<Parameter Name="help" Type="System.String" />
<Parameter Name="action" Type="Mono.Terminal.Action" />
<Parameter Name="action" Type="System.Action" />
</Parameters>
<Docs>
<param name="title">To be added.</param>
Expand All @@ -35,14 +35,14 @@
</Docs>
</Member>
<Member MemberName="Action">
<MemberSignature Language="C#" Value="public Mono.Terminal.Action Action { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Mono.Terminal.Action Action" />
<MemberSignature Language="C#" Value="public Action Action { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Action Action" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Mono.Terminal.Action</ReturnType>
<ReturnType>System.Action</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
Expand Down
1 change: 0 additions & 1 deletion docs/index.xml
Expand Up @@ -31,7 +31,6 @@
<Copyright>To be added.</Copyright>
<Types>
<Namespace Name="Mono.Terminal">
<Type Name="Action" Kind="Delegate" />
<Type Name="Application" Kind="Class" />
<Type Name="Button" Kind="Class" />
<Type Name="CheckBox" Kind="Class" />
Expand Down
2 changes: 0 additions & 2 deletions gui.cs
Expand Up @@ -70,8 +70,6 @@ class Keys
}


public delegate void Action ();

/// <summary>
/// Base class for creating curses widgets
/// </summary>
Expand Down

0 comments on commit 37e0327

Please sign in to comment.