HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes | Friends
v1::fixed< T, M > Struct Template Reference

Public Types

using value_type = T
 

Public Member Functions

 fixed (fixed const &)=default
 
fixedoperator= (fixed const &)=default
 
 fixed (fixed &&)=default
 
fixedoperator= (fixed &&)=default
 
constexpr fixed (std::floating_point auto other) noexcept
 
constexpr fixed (std::integral auto other) noexcept
 
 fixed (std::string const &other)
 
constexpr fixedoperator= (std::floating_point auto other) noexcept
 
constexpr fixedoperator= (std::integral auto other) noexcept
 
fixedoperator= (std::string const &other)
 
template<std::floating_point O>
 operator O () const noexcept
 
template<std::integral O>
 operator O () const noexcept
 
std::string string () const noexcept
 

Static Public Member Functions

static fixed from_raw_value (T value) noexcept
 

Data Fields

value
 

Static Public Attributes

static constexpr int multiplier = M
 

Friends

constexpr friend bool operator== (fixed const &lhs, fixed const &rhs) noexcept
 
constexpr friend auto operator<=> (fixed const &lhs, fixed const &rhs) noexcept
 
constexpr friend fixed operator+ (fixed const &lhs, fixed const &rhs) noexcept
 
constexpr friend fixed operator- (fixed const &lhs, fixed const &rhs) noexcept
 
std::string to_string (fixed const v)
 
std::ostreamoperator<< (std::ostream &lhs, fixed const &rhs)
 

The documentation for this struct was generated from the following file: