SOURCE DUMP v1

This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit fb20299e9d
21 changed files with 768360 additions and 0 deletions

View file

@ -0,0 +1,12 @@
using System;
namespace Brutal.NotCursesApi
{
/// Alignment within a plane or terminal. Left/right-justified, or centered.
public enum NcAlign
{
Unaligned,
Left,
Center,
Right,
}
}

View file

@ -0,0 +1,12 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcAlpha : ulong
{
Blend = 0x10000000UL,
HighContrast = 0x30000000UL,
Opaque = 0x00000000UL,
Transparent = 0x20000000UL,
}
}

View file

@ -0,0 +1,20 @@
using System;
namespace Brutal.NotCursesApi
{
/// we never blit full blocks, but instead spaces (more efficient) with the
/// background set to the desired foreground. these need be kept in the same
/// order as the blitters[] definition in lib/blit.c.
public enum NcBlitter
{
Default, // let the ncvisual pick
_1x1, // space, compatible with ASCII
_2x1, // halves + 1x1 (space) ▄▀
_2x2, // quadrants + 2x1 ▗▐ ▖▀▟▌▙
_3x2, // sextants + 2x1 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬉🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞
_4x2, // octants + 2x2 there are a great many octants
Braille, // 4 rows, 2 cols (braille) ⡀⡄⡆⡇⢀⣀⣄⣆⣇⢠⣠⣤⣦⣧⢰⣰⣴⣶⣷⢸⣸⣼⣾⣿
Pixel, // pixel graphics
_4x1, // four vertical levels █▆▄▂
_8x1, // eight vertical levels █▇▆▅▄▃▂▁
}
}

View file

@ -0,0 +1,16 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcBoxOption
{
GradBottom = 0x0040,
GradLeft = 0x0080,
GradRight = 0x0020,
GradTop = 0x0010,
MaskBottom = 0x0004,
MaskLeft = 0x0008,
MaskRight = 0x0002,
MaskTop = 0x0001,
}
}

View file

@ -0,0 +1,14 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcDirectOption : ulong
{
DrainInput = 0x0004UL,
InhibitCBreak = 0x0002UL,
InhibitSetLocale = 0x0001UL,
NoQuitSigHandlers = 0x0008UL,
Verbose = 0x0010UL,
VeryVerbose = 0x0020UL,
}
}

View file

@ -0,0 +1,11 @@
using System;
namespace Brutal.NotCursesApi
{
public enum NcInType
{
Unknown,
Press,
Repeat,
Release,
}
}

View file

@ -0,0 +1,16 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcKeyModifier
{
Alt = 2,
Capslock = 64,
Ctrl = 4,
Hyper = 16,
Meta = 32,
Numlock = 128,
Shift = 1,
Super = 8,
}
}

View file

@ -0,0 +1,22 @@
using System;
namespace Brutal.NotCursesApi
{
/// These log levels consciously map cleanly to those of libav; Notcurses itself
/// does not use this full granularity. The log level does not affect the opening
/// and closing banners, which can be disabled via the notcurses_option struct's
/// 'suppress_banner'. Note that if stderr is connected to the same terminal on
/// which we're rendering, any kind of logging will disrupt the output (which is
/// undesirable). The "default" zero value is NCLOGLEVEL_PANIC.
public enum NcLogLevel
{
Silent = -1, // default. print nothing once fullscreen service begins
Panic = 0, // print diagnostics related to catastrophic failure
Fatal = 1, // we're hanging around, but we've had a horrible fault
Error = 2, // we can't keep doing this, but we can do other things
Warning = 3, // you probably don't want what's happening to happen
Info = 4, // "standard information"
Verbose = 5, // "detailed information"
Debug = 6, // this is honestly a bit much
Trace = 7, // there's probably a better way to do what you want
}
}

View file

@ -0,0 +1,10 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcMenuOption : ulong
{
Bottom = 0x0001UL,
Hiding = 0x0002UL,
}
}

View file

@ -0,0 +1,13 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcMiceEvent
{
AllEvents = 0x7,
ButtonEvent = 0x2,
DragEvent = 0x4,
MoveEvent = 0x1,
NoEvents = 0,
}
}

View file

@ -0,0 +1,26 @@
using System;
namespace Brutal.NotCursesApi
{
/// pixel blitting implementations. informative only; don't special-case
/// based off any of this information!
public enum NcPixelImpl
{
None = 0,
Sixel, // sixel
LinuxFb, // linux framebuffer
ITerm2, // iTerm2
/// C=1 (disabling scrolling) was only introduced in 0.20.0, at the same
/// time as animation. prior to this, graphics had to be entirely redrawn
/// on any change, and it wasn't possible to use the bottom line.
KittyStatic,
/// until 0.22.0's introduction of 'a=c' for self-referential composition, we
/// had to keep a complete copy of the RGBA data, in case a wiped cell needed
/// to be rebuilt. we'd otherwise have to unpack the glyph and store it into
/// the auxvec on the fly.
KittyAnimated,
/// with 0.22.0, we only ever write transparent cells after writing the
/// original image (which we now deflate, since we needn't unpack it later).
/// the only data we need keep is the auxvecs.
KittySelfRef,
}
}

View file

@ -0,0 +1,14 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcPlaneOption : ulong
{
Autogrow = 0x0010UL,
Fixed = 0x0008UL,
HorAligned = 0x0001UL,
Marginalized = 0x0004UL,
VerAligned = 0x0002UL,
Vscroll = 0x0020UL,
}
}

View file

@ -0,0 +1,14 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcPlotOption : uint
{
DetectMaxOnly = 0x0010U,
ExponentialD = 0x0002U,
LabelTicksD = 0x0001U,
NoDegrade = 0x0008U,
PrintSample = 0x0020U,
VerticalI = 0x0004U,
}
}

View file

@ -0,0 +1,9 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcProgbarOption : uint
{
Retrograde = 0x0001U,
}
}

View file

@ -0,0 +1,12 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcReaderOption : ulong
{
Cursor = 0x0008UL,
Horscroll = 0x0001UL,
Nocmdkeys = 0x0004UL,
Verscroll = 0x0002UL,
}
}

View file

@ -0,0 +1,10 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcReelOption : ulong
{
Circular = 0x0002UL,
Infinitescroll = 0x0001UL,
}
}

View file

@ -0,0 +1,18 @@
using System;
namespace Brutal.NotCursesApi
{
/// How to scale an ncvisual during rendering. NCSCALE_NONE will apply no
/// scaling. NCSCALE_SCALE scales a visual to the plane's size, maintaining
/// aspect ratio. NCSCALE_STRETCH stretches and scales the image in an attempt
/// to fill the entirety of the plane. NCSCALE_NONE_HIRES and
/// NCSCALE_SCALE_HIRES behave like their counterparts, but admit blitters
/// which don't preserve aspect ratio.
public enum NcScale
{
None,
Scale,
Stretch,
NoneHires,
ScaleHires,
}
}

View file

@ -0,0 +1,15 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcStyle : uint
{
Bold = 0x0002U,
Italic = 0x0010U,
Mask = 0xffffU,
None = 0,
Struck = 0x0001U,
Undercurl = 0x0004U,
Underline = 0x0008U,
}
}

View file

@ -0,0 +1,9 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcTabbedOption : ulong
{
Bottom = 0x0001UL,
}
}

View file

@ -0,0 +1,15 @@
using System;
namespace Brutal.NotCursesApi
{
[Flags]
public enum NcVisualOption : ulong
{
AddAlpha = 0x0010UL,
Blend = 0x0002UL,
ChildPlane = 0x0020UL,
HorAligned = 0x0004UL,
NoDegrade = 0x0001UL,
NoInterpolate = 0x0040UL,
VerAligned = 0x0008UL,
}
}

Some files were not shown because too many files have changed in this diff Show more