andlabs / andlabs/libui

Adding a uiOrientation enum.

オープン
#312 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
10.9k
フォーク
612
PR マージ指標
30日以内にマージされた PR はありません

説明

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);
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。