25#ifndef SFML_RENDERWINDOW_HPP
26#define SFML_RENDERWINDOW_HPP
31#include <SFML/Graphics/Image.hpp>
32#include <SFML/Graphics/RenderTarget.hpp>
33#include <SFML/Window/Window.hpp>
87 virtual unsigned int GetWidth()
const;
115 sf::Vector2f
ConvertCoords(
unsigned int WindowX,
unsigned int WindowY,
const View* TargetView = NULL)
const;
123 virtual void OnCreate();
129 virtual bool Activate(
bool Active);
Abstract base class for every object that can be drawn into a render window.
Image is the low-level class for loading and manipulating images.
RenderTarget()
Default constructor.
sf::Vector2f ConvertCoords(unsigned int WindowX, unsigned int WindowY, const View *TargetView=NULL) const
Convert a point in window coordinates into view coordinates.
virtual unsigned int GetHeight() const
Get the height of the rendering region of the window.
virtual unsigned int GetWidth() const
Get the width of the rendering region of the window.
RenderWindow()
Default constructor.
Image Capture() const
Save the content of the window to an image.
VideoMode defines a video mode (width, height, bpp, frequency) and provides static functions for gett...
This class defines a view (position, size, etc.) ; you can consider it as a 2D camera.
Window()
Default constructor.
@ Resize
Titlebar + resizable border + maximize button.
@ Close
Titlebar + close button.
Structure defining the creation settings of windows.