CrabUI
Loading...
Searching...
No Matches
CUIGrid.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4
5using Barotrauma;
6using Microsoft.Xna.Framework;
7using Microsoft.Xna.Framework.Input;
8using Microsoft.Xna.Framework.Graphics;
9
10namespace CrabUI
11{
12 /// <summary>
13 /// A Grid containing children in its cells
14 /// </summary>
15 public class CUIGrid : CUIComponent
16 {
17 public override CUILayout Layout
18 {
19 get => layout;
20 set
21 {
22 layout = new CUILayoutGrid(this);
23 }
24 }
25
26
27
28 public CUILayoutGrid GridLayout => (CUILayoutGrid)Layout;
29
30
31
32 public CUIGrid() : base()
33 {
34 //Layout = new CUILayoutGrid();
35 }
36
37 }
38}
Base class for all components.
A Grid containing children in its cells.
Definition CUIGrid.cs:16
A Grid containing children in its cells Dividing host into rows and columns basing on GridTemplate ...
Base class for all layouts.
Definition CUILayout.cs:18