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

Rectangle specifying the source rectangle for a rendering operation by its top left corner coordinates, width, and height. More...

#include <Ren.hpp>

Inheritance diagram for rolmodl::SrcRectWH:
rolmodl::geom::RectWH

Public Member Functions

constexpr SrcRectXY xy () const noexcept
 Convert to an equivalent rolmodl::SrcRectXY.
 
- Public Member Functions inherited from rolmodl::geom::RectWH
constexpr RectWH (const int argX, const int argY, const int argW, const int argH) noexcept
 Initialize with the given top left corner x and y, width, and height. More...
 
constexpr RectWH (const SDL_Rect r) noexcept
 Initialize from the given SDL_Rect.
 
constexpr RectXY xy () const noexcept
 Convert to an equivalent rolmodl::geom::RectXY.
 
constexpr SDL_Rect sdl () const noexcept
 Convert to an SDL_Rect.
 

Additional Inherited Members

- Public Attributes inherited from rolmodl::geom::RectWH
int x
 
int y
 
int w
 
int h
 

Detailed Description

Rectangle specifying the source rectangle for a rendering operation by its top left corner coordinates, width, and height.

Definition at line 256 of file Ren.hpp.


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