|
sandbox
|
Public Types | |
| enum class | kind : std::uint8_t { fixed , named } |
Public Member Functions | |
| auto | scale () const noexcept -> const math::vector2f & |
| auto | offset () const noexcept -> const math::vector2i & |
| auto | size () const noexcept -> const std::optional< math::vector2u > & |
| auto | is_fixed () const noexcept -> bool |
| auto | is_named () const noexcept -> bool |
| auto | name () const noexcept -> const std::string & |
Static Public Member Functions | |
| static auto | fixed (const math::vector2u &size) -> viewport |
| static auto | fixed (const std::uint32_t width, const std::uint32_t height) -> viewport |
| static auto | window (const math::vector2f &scale=math::vector2f{1.0f, 1.0f}) -> viewport |
| static auto | named (std::string name, const math::vector2f &scale=math::vector2f{1.0f, 1.0f}) -> viewport |
Static Public Attributes | |
| static constexpr auto | window_name = std::string_view{"window"} |