sfView Class Reference

sfView defines a view (position, size and zoom) ; you can consider it as a camera More...

#include <View.hpp>

List of all members.


Public Member Functions

 sfView ()
 Default constructor.
 sfView (float ViewLeft, float ViewTop, float ViewWidth, float ViewHeight, float ViewZoom=1.f)
 Construct the view with position and size.

Public Attributes

float Left
 Left position of view.
float Top
 Top position of view.
float Width
 Width of view.
float Height
 Height of view.
float Zoom
 Zoom (less than 1 is unzoom, greater than 1 is zoom).

Detailed Description

sfView defines a view (position, size and zoom) ; you can consider it as a camera

Definition at line 38 of file View.hpp.


Constructor & Destructor Documentation

sfView::sfView (  ) 

Default constructor.

Definition at line 34 of file View.cpp.

sfView::sfView ( float  ViewLeft,
float  ViewTop,
float  ViewWidth,
float  ViewHeight,
float  ViewZoom = 1.f 
)

Construct the view with position and size.

Parameters:
ViewLeft : Left position of view
ViewTop : Top position of view
ViewWidth : Width of view
ViewHeight : Height of view
ViewZoom : Zoom (1 by default)

Definition at line 48 of file View.cpp.


Member Data Documentation

float sfView::Left

Left position of view.

Definition at line 63 of file View.hpp.

float sfView::Top

Top position of view.

Definition at line 64 of file View.hpp.

float sfView::Width

Width of view.

Definition at line 65 of file View.hpp.

float sfView::Height

Height of view.

Definition at line 66 of file View.hpp.

float sfView::Zoom

Zoom (less than 1 is unzoom, greater than 1 is zoom).

Definition at line 67 of file View.hpp.


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