Class GridView
Assembly: Genesis.dll
Syntax
public class GridView : Widget
Constructors
Declaration
public GridView(string name, Vec3 location, int columns, int rows, float cellSize, float spacing, WidgetAnchor anchor)
Parameters
Properties
BackgroundColor
Declaration
public Color BackgroundColor { get; set; }
Property Value
BorderColor
Declaration
public Color BorderColor { get; set; }
Property Value
CellSize
Declaration
public float CellSize { get; set; }
Property Value
Columns
Declaration
public int Columns { get; set; }
Property Value
Font
Declaration
public Font Font { get; set; }
Property Value
Items
Declaration
public List<IItem> Items { get; set; }
Property Value
Padding
Declaration
public float Padding { get; set; }
Property Value
Rows
Declaration
public int Rows { get; set; }
Property Value
Spacing
Declaration
public float Spacing { get; set; }
Property Value
Methods
CalculateSize(int, int, float, float)
Declaration
public static Vec3 CalculateSize(int columns, int rows, float cellSize, float spacing)
Parameters
Returns
OnRender(Game, IRenderDevice, Scene, Canvas)
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