GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • DirectionalLight
      • Game
      • GameElement
      • GameEventHandler
      • IGameBehavior
      • Input
      • Input.Keys
      • Layer
      • Light
      • Light2D
      • PointLight
      • Scene
      • Scene2D
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
      • Window
      • Window.WindowEventHandler
      • WindowUtilities
      • WindowUtilities.POINT
      • WindowUtilities.RECT
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • BoxRigidBody
      • BoxTrigger
      • CapsuleCollider
      • CapsuleRigidBody
      • CompoundMeshCollider
      • ConvexHullBehavior
      • ConvexHullCollider
      • MeshCollider
      • QubeConvexHull
      • SphereCollider
      • SphereRigidBody
      • SphereTrigger
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • FindPathAsynchResult
      • GridCell
      • Model
      • NavMesh
      • Obstacle
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sphere
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
      • Waypoint
    • Genesis.Graphics
      • Animation
      • AnimationCallback
      • AnimationCallback.AnimationEvent
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Frustum
      • Glyphe
      • IRenderDevice
      • InstancedElement
      • InstancedMesh
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • RenderInstanceContainer
      • RenderSettings
      • Shader
      • ShaderProgram
      • SpriteSheet
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • GLRenderer
      • LegacyRenerer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • BorderCircleShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • Element3DShader
      • FXScreenSpaceShadowShader
      • InstanceShader2D
      • InstancedShader
      • Light2DShader
      • LightmapShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SolidShapeShader
      • SpecularShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • CircleShape
      • FrameShape
      • GlypheShape
      • Light2DShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SphereShape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • ColliderBehavior2D
      • ColliderBehavior3D
      • CollisionGroup
      • CollisionGroupExtensions
      • HitResult
      • HitResult2D
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Ray2D
      • Raycast
      • Raycast2D
      • RigidBodyBehavior2D
      • RigidBodyBehavior3D
      • TriggerBehavior2D
      • TriggerBehavior3D
    • Genesis.UI
      • Button
      • Canvas
      • GridView
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget
      • WidgetAnchor
    • Genesis.UI.Items
      • GridViewImageIcon
      • IItem

    Class GridView

    Inheritance
    object
    Widget
    GridView
    Inherited Members
    Widget.AddChildren(Widget)
    Widget.OnInit(Game, Scene, Canvas)
    Widget.OnUpdate(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.TransformBounds(Rect, WidgetAnchor)
    Widget.Hovered()
    Widget.OnClick(Game, Scene, Canvas)
    Widget.Name
    Widget.Location
    Widget.Size
    Widget.Parent
    Widget.Children
    Widget.Enabled
    Widget.Debug
    Widget.Anchor
    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 GridView : Widget

    Constructors

    GridView(string, Vec3, int, int, float, float, WidgetAnchor)

    Declaration
    public GridView(string name, Vec3 location, int columns, int rows, float cellSize, float spacing, WidgetAnchor anchor)
    Parameters
    Type Name Description
    string name
    Vec3 location
    int columns
    int rows
    float cellSize
    float spacing
    WidgetAnchor anchor

    Properties

    BackgroundColor

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type Description
    Color

    BorderColor

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type Description
    Color

    CellSize

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

    Columns

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

    Font

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

    Items

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

    Padding

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

    Rows

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

    Spacing

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

    Methods

    CalculateSize(int, int, float, float)

    Declaration
    public static Vec3 CalculateSize(int columns, int rows, float cellSize, float spacing)
    Parameters
    Type Name Description
    int columns
    int rows
    float cellSize
    float spacing
    Returns
    Type Description
    Vec3

    OnRender(Game, IRenderDevice, Scene, Canvas)

    Renders the widget.

    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 used for rendering.

    Scene scene

    The current scene.

    Canvas canvas

    The canvas used for rendering.

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