Adding a uiOrientation enum.
Aperta
- Lingua principale
- C
- Stelle
- 10.9k
- Fork
- 612
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This enum would represent the orientation of control or other object, and could look like this:
```c
_UI_ENUM(uiOrientation) {
uiOrientationHorizontal,
uiOrientationVertical,
};
```
This would remove the need of separate methods for creation of these controls. For example, in `ui.h`, both sets of creation methods for `uiSeparator` and `uiBox` could be turned into one method for each, both looking something like:
```c
_UI_EXTERN uiBox uiNewBox(uiOrientation o);
_UI_EXTERN uiSeparator uiNewSeparator(uiOrientation o);
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.