mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
using System.Runtime.InteropServices.Marshalling;
|
||||
using Brutal;
|
||||
using Brutal.Interop;
|
||||
using Brutal.Pointers;
|
||||
namespace Brutal.NotCursesApi
|
||||
{
|
||||
/// An input event. Cell coordinates are currently defined only for mouse
|
||||
/// events. It is not guaranteed that we can set the modifiers for a given
|
||||
/// ncinput. We encompass single Unicode codepoints, not complete EGCs.
|
||||
/// FIXME for abi4, combine the bools into |modifiers|
|
||||
public unsafe partial struct NcInput
|
||||
{
|
||||
public uint Id; // Unicode codepoint or synthesized NCKEY event
|
||||
public int Y; // y/x cell coordinate of event, -1 for undefined
|
||||
public int X; // y/x cell coordinate of event, -1 for undefined
|
||||
public fixed byte Utf8[5]; // utf8 representation, if one exists
|
||||
public Bool8 Alt; // was alt held?
|
||||
public Bool8 Shift; // was shift held?
|
||||
public Bool8 Ctrl; // was ctrl held?
|
||||
/// END DEPRECATION
|
||||
public NcInType Evtype;
|
||||
public uint Modifiers; // bitmask over NCKEY_MOD_*
|
||||
public int Ypx; // pixel offsets within cell, -1 for undefined
|
||||
public int Xpx; // pixel offsets within cell, -1 for undefined
|
||||
public fixed uint EffText[4]; // Effective
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue