neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::view Class Reference

#include <view.hpp>

Public Types

enum class  geometry_policy : std::uint32_t { Automatic = 0x00000001 , Specified = 0x00000002 }
 

Public Member Functions

 view ()
 
geometry_policy view_port_geometry_policy () const
 
void set_view_port_geometry_policy (geometry_policy aGeometryPolicy)
 
geometry_policy view_geometry_policy () const
 
void set_view_geometry_policy (geometry_policy aGeometryPolicy)
 
optional_rect view_port () const
 
void set_view_port (optional_rect const &aViewPort)
 
vec2 const & center () const
 
void set_center (vec2 const &aCenter)
 
void move (vec2 const &aOffset)
 
vec2 const & size () const
 
void set_size (vec2 const &aSize)
 
void zoom (scalar aFactor)
 
scalar rotation () const
 
void set_rotation (scalar aAngle)
 
void rotate (scalar aAngle)
 
mat33 const & transformation () const
 

Detailed Description

Definition at line 28 of file view.hpp.

Member Enumeration Documentation

◆ geometry_policy

enum class neogfx::view::geometry_policy : std::uint32_t
strong
Enumerator
Automatic 

Parent widget moves/resizes the view port and/or view according to the widget's client rect.

Specified 

View port and/or view's position/size is specified (i.e. set explicitly).

Definition at line 31 of file view.hpp.

Constructor & Destructor Documentation

◆ view()

neogfx::view::view ( )

Member Function Documentation

◆ center()

vec2 const & neogfx::view::center ( ) const

◆ move()

void neogfx::view::move ( vec2 const &  aOffset)

◆ rotate()

void neogfx::view::rotate ( scalar  aAngle)

◆ rotation()

scalar neogfx::view::rotation ( ) const

◆ set_center()

void neogfx::view::set_center ( vec2 const &  aCenter)

◆ set_rotation()

void neogfx::view::set_rotation ( scalar  aAngle)

◆ set_size()

void neogfx::view::set_size ( vec2 const &  aSize)

◆ set_view_geometry_policy()

void neogfx::view::set_view_geometry_policy ( geometry_policy  aGeometryPolicy)

◆ set_view_port()

void neogfx::view::set_view_port ( optional_rect const &  aViewPort)

◆ set_view_port_geometry_policy()

void neogfx::view::set_view_port_geometry_policy ( geometry_policy  aGeometryPolicy)

◆ size()

vec2 const & neogfx::view::size ( ) const

◆ transformation()

mat33 const & neogfx::view::transformation ( ) const

◆ view_geometry_policy()

geometry_policy neogfx::view::view_geometry_policy ( ) const

◆ view_port()

optional_rect neogfx::view::view_port ( ) const

◆ view_port_geometry_policy()

geometry_policy neogfx::view::view_port_geometry_policy ( ) const

◆ zoom()

void neogfx::view::zoom ( scalar  aFactor)

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