Search Results for

    Show / Hide Table of Contents

    Class Selection

    Selection cyclic renderer

    Inheritance
    object
    CyclicWriter
    GraphicalCyclicWriter
    Selection
    Inherited Members
    GraphicalCyclicWriter.Left
    GraphicalCyclicWriter.Top
    GraphicalCyclicWriter.Width
    GraphicalCyclicWriter.Height
    GraphicalCyclicWriter.Padding
    GraphicalCyclicWriter.Margins
    GraphicalCyclicWriter.SetMargins
    GraphicalCyclicWriter.HitboxStartPos
    GraphicalCyclicWriter.HitboxEndPos
    GraphicalCyclicWriter.GenerateHitbox(Func<PointerEventContext, object>)
    GraphicalCyclicWriter.GenerateHitbox(Action<PointerEventContext>)
    Namespace: Terminaux.Writer.CyclicWriters.Graphical
    Assembly: Terminaux.dll
    Syntax
    public class Selection : GraphicalCyclicWriter

    Constructors

    | Edit this page View Source

    Selection()

    Makes a new selection instance

    Declaration
    public Selection()
    | Edit this page View Source

    Selection(InputChoiceCategoryInfo[])

    Makes a new selection instance

    Declaration
    public Selection(InputChoiceCategoryInfo[] categories)
    Parameters
    Type Name Description
    InputChoiceCategoryInfo[] categories

    Categories

    | Edit this page View Source

    Selection(InputChoiceGroupInfo[])

    Makes a new selection instance

    Declaration
    public Selection(InputChoiceGroupInfo[] groups)
    Parameters
    Type Name Description
    InputChoiceGroupInfo[] groups

    Groups

    | Edit this page View Source

    Selection(InputChoiceInfo[])

    Makes a new selection instance

    Declaration
    public Selection(InputChoiceInfo[] choices)
    Parameters
    Type Name Description
    InputChoiceInfo[] choices

    Choices

    Properties

    | Edit this page View Source

    AltBackgroundColor

    Alternative option background color

    Declaration
    public Color AltBackgroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    AltChoicePos

    Alternative choice position (one-based)

    Declaration
    public int AltChoicePos { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    AltForegroundColor

    Alternative option foreground color

    Declaration
    public Color AltForegroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    AltSelectedBackgroundColor

    Selected alternative option background color

    Declaration
    public Color AltSelectedBackgroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    AltSelectedForegroundColor

    Selected alternative option foreground color

    Declaration
    public Color AltSelectedForegroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    BackgroundColor

    Option background color

    Declaration
    public Color BackgroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    CurrentSelection

    Current selection (zero-based)

    Declaration
    public int CurrentSelection { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Use this property only if either CurrentSelections is not null or if ShowRadioButtons is not true. Otherwise, rely on the value of SelectedChoice

    | Edit this page View Source

    CurrentSelections

    Current selections (null for single selection)

    Declaration
    public int[]? CurrentSelections { get; set; }
    Property Value
    Type Description
    int[]
    | Edit this page View Source

    DisabledBackgroundColor

    Disabled option background color

    Declaration
    public Color DisabledBackgroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    DisabledForegroundColor

    Disabled option foreground color

    Declaration
    public Color DisabledForegroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    Ellipsis

    Whether to use ellipsis for selection entries or not

    Declaration
    public bool Ellipsis { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ForegroundColor

    Option foreground color

    Declaration
    public Color ForegroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    SelectedBackgroundColor

    Selected option background color

    Declaration
    public Color SelectedBackgroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    SelectedChoice

    Selected choice (zero-based, -1 if ShowRadioButtons is not true or if CurrentSelections is not null)

    Declaration
    public int SelectedChoice { get; set; }
    Property Value
    Type Description
    int
    Remarks

    Use this property only if CurrentSelections is null and ShowRadioButtons is true. Otherwise, rely on the value of CurrentSelection

    | Edit this page View Source

    SelectedForegroundColor

    Selected option foreground color

    Declaration
    public Color SelectedForegroundColor { get; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    Selections

    List of selection categories

    Declaration
    public InputChoiceCategoryInfo[] Selections { get; set; }
    Property Value
    Type Description
    InputChoiceCategoryInfo[]
    | Edit this page View Source

    Settings

    Selection style settings

    Declaration
    public SelectionStyleSettings Settings { get; set; }
    Property Value
    Type Description
    SelectionStyleSettings
    | Edit this page View Source

    ShowRadioButtons

    Whether to show the radio buttons or not (ignored when CurrentSelections is not null)

    Declaration
    public bool ShowRadioButtons { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SwapSelectedColors

    Whether to swap the selected colors or not

    Declaration
    public bool SwapSelectedColors { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    UseColors

    Whether to use colors or not

    Declaration
    public bool UseColors { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    CanGenerateSelectionHitbox(int, int, out (PointerHitbox hitbox, ChoiceHitboxType type, int related))

    Checks to see whether the generation of the selection hitboxes is possible

    Declaration
    public bool CanGenerateSelectionHitbox(int selectionIdx, int hitboxIdx, out (PointerHitbox hitbox, ChoiceHitboxType type, int related) hitbox)
    Parameters
    Type Name Description
    int selectionIdx

    Selection index from all choices

    int hitboxIdx

    Hitbox index

    (PointerHitbox hitbox, ChoiceHitboxType type, int related) hitbox

    Pointer hitbox instances that are built for each selection

    Returns
    Type Description
    bool

    True if generation is possible; false otherwise

    | Edit this page View Source

    CanGenerateSelectionHitbox(int, out (PointerHitbox hitbox, ChoiceHitboxType type, int related))

    Checks to see whether the generation of the selection hitboxes is possible

    Declaration
    public bool CanGenerateSelectionHitbox(int hitboxIdx, out (PointerHitbox hitbox, ChoiceHitboxType type, int related) hitbox)
    Parameters
    Type Name Description
    int hitboxIdx

    Hitbox index

    (PointerHitbox hitbox, ChoiceHitboxType type, int related) hitbox

    Pointer hitbox instances that are built for each selection

    Returns
    Type Description
    bool

    True if generation is possible; false otherwise

    | Edit this page View Source

    GenerateSelectionHitbox(int)

    Generates the selection hitboxes

    Declaration
    public (PointerHitbox hitbox, ChoiceHitboxType type, int related) GenerateSelectionHitbox(int hitboxIdx)
    Parameters
    Type Name Description
    int hitboxIdx

    Hitbox index

    Returns
    Type Description
    (PointerHitbox hitbox, ChoiceHitboxType type, int related)

    Pointer hitbox instances that are built for each selection

    | Edit this page View Source

    GenerateSelectionHitbox(int, int)

    Generates the selection hitboxes

    Declaration
    public (PointerHitbox hitbox, ChoiceHitboxType type, int related) GenerateSelectionHitbox(int selectionIdx, int hitboxIdx)
    Parameters
    Type Name Description
    int selectionIdx

    Selection index from all choices

    int hitboxIdx

    Hitbox index

    Returns
    Type Description
    (PointerHitbox hitbox, ChoiceHitboxType type, int related)

    Pointer hitbox instances that are built for each selection

    | Edit this page View Source

    GenerateSelectionHitboxes()

    Generates the selection hitboxes

    Declaration
    public (PointerHitbox hitbox, ChoiceHitboxType type, int related)[] GenerateSelectionHitboxes()
    Returns
    Type Description
    (PointerHitbox hitbox, ChoiceHitboxType type, int related)[]

    Pointer hitbox instances that are built for each selection

    | Edit this page View Source

    GenerateSelectionHitboxes(int)

    Generates the selection hitboxes

    Declaration
    public (PointerHitbox hitbox, ChoiceHitboxType type, int related)[] GenerateSelectionHitboxes(int selectionIdx)
    Parameters
    Type Name Description
    int selectionIdx

    Selection index from all choices

    Returns
    Type Description
    (PointerHitbox hitbox, ChoiceHitboxType type, int related)[]

    Pointer hitbox instances that are built for each selection

    | Edit this page View Source

    Render()

    Renders a selection

    Declaration
    public override string Render()
    Returns
    Type Description
    string

    A string representation of the selection

    Overrides
    CyclicWriter.Render()
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX