igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
graphic::IWindow2 Interface Referenceabstract

A window that can draw 2D. Adds only the 2D drawing surface on top of IWindow's lifecycle/input. More...

#include <IWindow2.hpp>

Inheritance diagram for graphic::IWindow2:
Collaboration diagram for graphic::IWindow2:

Public Member Functions

virtual ~IWindow2 ()=default
 
virtual void beginDraw ()=0
 allowing to draw 2D on the window
 
virtual void drawPoly (IPolygon *polygon)=0
 draw a polygon
 
virtual void drawSprite (ISprite *sprite)=0
 draw a sprite
 
virtual void drawText (IText *text)=0
 draw a text
 
virtual void endDraw ()=0
 end the 2D drawing
 
- Public Member Functions inherited from graphic::IWindow
virtual ~IWindow ()=default
 Destroy the IWindow object.
 
virtual bool isOpen ()=0
 notice if the window is open
 
virtual void close ()=0
 close the window
 
virtual Vector2f getPosition ()=0
 Where the window sits on the desktop, in pixels, origin top-left of the primary screen.
 
virtual void setPosition (Vector2f position)=0
 Move the window on the desktop.
 
virtual Vector2f getSize ()=0
 The drawable area, in pixels - NOT the desktop size. A hit-test built on IMouse::getPosition() compares against this one.
 
virtual void setSize (Vector2f size)=0
 Resize the drawable area.
 
virtual void setFrameLimit (int32_t limit)=0
 Set the Frame Limit object.
 
virtual void setMouseVisibility (bool visible)=0
 Show or hide the system cursor over THIS window.
 
virtual int32_t getDelta ()=0
 Get the Delta object.
 
virtual bool pollEvent ()=0
 Drains the whole native queue for this frame and refreshes device state. This is the frame's event pump.
 
virtual void eventClose ()=0
 notice the window that a close was requested
 

Detailed Description

A window that can draw 2D. Adds only the 2D drawing surface on top of IWindow's lifecycle/input.

Constructor & Destructor Documentation

◆ ~IWindow2()

virtual graphic::IWindow2::~IWindow2 ( )
virtualdefault

Member Function Documentation

◆ beginDraw()

virtual void graphic::IWindow2::beginDraw ( )
pure virtual

allowing to draw 2D on the window

◆ drawPoly()

virtual void graphic::IWindow2::drawPoly ( IPolygon polygon)
pure virtual

draw a polygon

Parameters
polygon

◆ drawSprite()

virtual void graphic::IWindow2::drawSprite ( ISprite sprite)
pure virtual

draw a sprite

Parameters
sprite

◆ drawText()

virtual void graphic::IWindow2::drawText ( IText text)
pure virtual

draw a text

◆ endDraw()

virtual void graphic::IWindow2::endDraw ( )
pure virtual

end the 2D drawing


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