28 #include "Portability.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 154 onSizeChange(m_size);
212 void setViewport(
const RectF& viewport);
234 void reset(
const RectF& rect);
268 void zoom(
float factor);
288 void zoom(
float factor,
Vector2f fixed);
310 Matrix3f getInverseTransform()
const;
332 virtual void onSizeChange(
Vector2f size);
342 void setViewportNoCallback(
const RectF& viewport);
349 virtual void onViewportChange(
const RectF& viewport);
424 void setInitialScreenSize(
Vector2u screenSize);
431 virtual void onScreenSizeChange(
Vector2u screenSize) = 0;
454 void processEvent(
const Event& event);
469 #ifndef DOXYGEN_SHOULD_SKIP_THIS 2D camera that defines what region is shown on screen
Definition: View.h:94
A view adaptor for zooming/moving with the mouse.
Definition: View.h:439
AdaptativeView(const RectF &rect)
Construct the view from a rectangle.
Definition: View.h:401
float getRotation() const
Get the current orientation of the view.
Definition: View.h:188
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
const RectF & getViewport() const
Get the target viewport rectangle of the view.
Definition: View.h:221
The namespace for gf classes.
Definition: Action.h:34
Matrix3f rotation(float angle)
Get a rotation matrix.
Definition: Transform.h:391
float angle(Direction direction)
Get an angle from a direction.
void rotate(Matrix3f &mat, float angle)
Combine the current transform with a rotation.
void setSizeNoCallback(Vector2f size)
Set the world size, without calling onSizeChange()
Definition: View.h:321
Vector2f getCenter() const
Get the center of the view.
Definition: View.h:141
void setSize(Vector2f size)
Set the size of the view.
Definition: View.h:152
AdaptativeView()
Default constructor.
Definition: View.h:390
Vector2f getSize() const
Get the size of the view.
Definition: View.h:164
Defines a system event and its parameters.
Definition: Event.h:118
Adaptative view.
Definition: View.h:383
void setRotation(float rotation)
Set the orientation of the view.
Definition: View.h:177
AdaptativeView(Vector2f center, Vector2f size)
Construct the view from its center and size.
Definition: View.h:413
void setCenter(Vector2f center)
Set the center of the view.
Definition: View.h:130