HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
axis.hpp File Reference

The axis data type. More...

#include "../utility/utility.hpp"
#include "../macros.hpp"
#include <compare>

Go to the source code of this file.

Namespaces

namespace  hi
 The HikoGUI namespace.
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Enumerations

enum class  hi::v1::axis : unsigned char {
  none = 0 , x = 1 , y = 2 , z = 4 ,
  both = x | y , all = x | y | z , horizontal = x , vertical = y
}
 An enumeration of the 3 axis for 3D geometry. More...
 

Functions

 hi_export_module (hikogui.geometry :axis)
 
constexpr axis hi::v1::operator& (axis const &lhs, axis const &rhs) noexcept
 AND the axis.
 
constexpr axis hi::v1::operator| (axis const &lhs, axis const &rhs) noexcept
 OR the axis.
 
constexpr bool hi::v1::to_bool (axis const &rhs) noexcept
 Check if any of the axis are set.
 

Detailed Description

The axis data type.