GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class ListSelector

    Represents a list selector widget in the UI, allowing the user to navigate and select items.

    Inheritance
    object
    Widget
    ListSelector
    Inherited Members
    Widget.AddChildren(Widget)
    Widget.OnInit(Game, Scene, Canvas)
    Widget.OnDispose(Game, Scene, Canvas)
    Widget.GetRelativePos(Canvas)
    Widget.GetChildren(string)
    Widget.GetRelativeBounds2D(Canvas)
    Widget.IsHover(Game, Scene, Canvas)
    Widget.FindChildren(string)
    Widget.Name
    Widget.Location
    Widget.Size
    Widget.Parent
    Widget.Children
    Widget.Enabled
    Widget.Debug
    Widget.MouseEnter
    Widget.MouseLeave
    Widget.Click
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.UI
    Assembly: Genesis.dll
    Syntax
    public class ListSelector : Widget

    Constructors

    ListSelector(string, Vec3, Font)

    Creates a new instance of the ListSelector class.

    Declaration
    public ListSelector(string name, Vec3 location, Font font)
    Parameters
    Type Name Description
    string name

    The name of the list selector.

    Vec3 location

    The location of the list selector.

    Font font

    The font used for rendering text in the list.

    Properties

    CenterText

    Gets or sets a value indicating whether the text should be centered within each line.

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

    Font

    Gets or sets the font used for rendering text in the list.

    Declaration
    public Font Font { get; set; }
    Property Value
    Type Description
    Font

    FontSize

    Gets or sets the font size used for rendering text in the list.

    Declaration
    public float FontSize { get; set; }
    Property Value
    Type Description
    float

    FontSpacing

    Gets or sets the font spacing used for rendering text in the list.

    Declaration
    public float FontSpacing { get; set; }
    Property Value
    Type Description
    float

    IndexChangedBehavior

    Gets or sets the behavior invoked when the selected index changes.

    Declaration
    public ListSelectorBehavior IndexChangedBehavior { get; set; }
    Property Value
    Type Description
    ListSelectorBehavior

    Items

    Gets or sets the list of items in the selector.

    Declaration
    public List<ListItem> Items { get; set; }
    Property Value
    Type Description
    List<ListItem>

    LineHeight

    Gets or sets the height of each line in the list.

    Declaration
    public float LineHeight { get; set; }
    Property Value
    Type Description
    float

    SelectedIndex

    Gets or sets the index of the currently selected item.

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

    Methods

    AddItem(ListItem)

    Adds an item to the list selector.

    Declaration
    public void AddItem(ListItem item)
    Parameters
    Type Name Description
    ListItem item

    The item to add.

    OnRender(Game, IRenderDevice, Scene, Canvas)

    Renders the list selector on the screen.

    Declaration
    public override void OnRender(Game game, IRenderDevice renderDevice, Scene scene, Canvas canvas)
    Parameters
    Type Name Description
    Game game

    The game instance.

    IRenderDevice renderDevice

    The render device.

    Scene scene

    The scene instance.

    Canvas canvas

    The canvas containing the list selector.

    Overrides
    Widget.OnRender(Game, IRenderDevice, Scene, Canvas)

    OnUpdate(Game, Scene, Canvas)

    Updates the list selector.

    Declaration
    public override void OnUpdate(Game game, Scene scene, Canvas canvas)
    Parameters
    Type Name Description
    Game game

    The game instance.

    Scene scene

    The scene instance.

    Canvas canvas

    The canvas containing the list selector.

    Overrides
    Widget.OnUpdate(Game, Scene, Canvas)
    In this article
    Back to top Generated by DocFX