rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Public Member Functions | List of all members
rolmodl::DstRectXY Struct Reference

Rectangle specifying the destination rectangle for a rendering operation by its top left and bottom right corner coordinates. More...

#include <Ren.hpp>

Inheritance diagram for rolmodl::DstRectXY:
rolmodl::geom::RectXY

Public Member Functions

constexpr DstRectWH wh () const noexcept
 Convert to an equivalent rolmodl::DstRectWH.
 
- Public Member Functions inherited from rolmodl::geom::RectXY
constexpr RectXY (const int argX, const int argY, const int argX1, const int argY1) noexcept
 Initialize with the given top left corner x and y, and the bottom right corner x and y. More...
 
constexpr RectXY (const SDL_Rect r) noexcept
 Initialize from the given SDL_Rect converted from a width-height rectangle.
 
constexpr RectWH wh () const noexcept
 Convert to an equivalent rolmodl::geom::RectWH.
 
constexpr SDL_Rect sdl () const noexcept
 Convert to an SDL_Rect width-height rectangle.
 

Additional Inherited Members

- Public Attributes inherited from rolmodl::geom::RectXY
int x
 
int y
 
int x1
 
int y1
 

Detailed Description

Rectangle specifying the destination rectangle for a rendering operation by its top left and bottom right corner coordinates.

Definition at line 282 of file Ren.hpp.


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