Skip to content

Adding a uiOrientation enum. #312

Open
@simplexidev

Description

@simplexidev

This enum would represent the orientation of control or other object, and could look like this:

_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:

_UI_EXTERN uiBox uiNewBox(uiOrientation o);
_UI_EXTERN uiSeparator uiNewSeparator(uiOrientation o);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions