28 #include "Portability.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 128 RectF getBounds()
const;
161 onSizeChange(m_size);
219 void setViewport(
const RectF& viewport);
241 void reset(
const RectF& rect);
275 void zoom(
float factor);
295 void zoom(
float factor,
Vector2f fixed);
317 Matrix3f getInverseTransform()
const;
339 virtual void onSizeChange(
Vector2f size);
349 void setViewportNoCallback(
const RectF& viewport);
356 virtual void onViewportChange(
const RectF& viewport);
431 void setInitialFramebufferSize(
Vector2i framebufferSize);
440 [[deprecated(
"You should use setInitialFramebufferSize() instead")]]
442 setInitialFramebufferSize(screenSize);
450 virtual void onFramebufferSizeChange(
Vector2i framebufferSize) = 0;
473 void processEvent(
const Event& event);
488 #ifndef DOXYGEN_SHOULD_SKIP_THIS 2D camera that defines what region is shown on framebuffer
Definition: View.h:94
A view adaptor for zooming/moving with the mouse.
Definition: View.h:458
AdaptativeView(const RectF &rect)
Construct the view from a rectangle.
Definition: View.h:408
float getRotation() const
Get the current orientation of the view.
Definition: View.h:195
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:90
const RectF & getViewport() const
Get the target viewport rectangle of the view.
Definition: View.h:228
The namespace for gf classes.
Definition: Action.h:35
float angle(Direction direction)
Get an angle from a direction.
void setRotation(float angle)
Set the orientation of the view.
Definition: View.h:184
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:328
Vector2f getCenter() const
Get the center of the view.
Definition: View.h:148
void setInitialScreenSize(Vector2i screenSize)
Set the initial screen size.
Definition: View.h:441
void setSize(Vector2f size)
Set the size of the view.
Definition: View.h:159
AdaptativeView()
Default constructor.
Definition: View.h:397
Vector2f getSize() const
Get the size of the view.
Definition: View.h:171
Defines a system event and its parameters.
Definition: Event.h:97
Adaptative view.
Definition: View.h:390
AdaptativeView(Vector2f center, Vector2f size)
Construct the view from its center and size.
Definition: View.h:420
An event is pending on the sockets.
Definition: SocketSelector.h:47
void setCenter(Vector2f center)
Set the center of the view.
Definition: View.h:137