Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
ds_grid.h
1/* Copyright (C) 2017 - 2024, Thornwave Labs Inc - All Rights Reserved.
2 * Unauthorized copying of this file, via any medium is strictly prohibited.
3 * Proprietary and confidential.
4 * Written by Razvan Turiac <razvan.turiac@thornwave.com>
5*/
6
7#ifndef _DS_GRID_H
8#define _DS_GRID_H
9
10
11#include <ds_view.h>
12
13
14class DsGrid: public DsView
15{
16public:
17 DsGrid(DsView* parent, uint32_t column_count, DsSize min_cell_size = DsSize(0, 0));
18
19 DsSize fitContent(void) override;
20
21private:
22 uint32_t mColumnCount;
23 DsSize mMinCellSize;
24
25 void onSizeChange(void) override;
26};
27
28#endif
Definition ds_grid.h:15
DsSize fitContent(void) override
Calculates the minimum size required by the view.
DsSize is class that represents the 2D size of a graphic object (width, height) as integer values.
Definition ds_geometry.h:780
DsView is a base class that represents any view on the screen.
Definition ds_view.h:40