Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::test::Image Struct Reference

#include <aurore/test/harness.hpp>

Public Member Functions

bool empty () const
 
const unsigned char * at (int x, int y) const
 
Image crop (int x, int y, int w, int h) const
 
bool savePng (const std::string &path) const
 

Static Public Member Functions

static Image loadPng (const std::string &path)
 

Public Attributes

int width = 0
 
int height = 0
 
std::vector< unsigned char > rgba
 

Member Function Documentation

◆ at()

const unsigned char * aurore::test::Image::at ( int  x,
int  y 
) const
inline

◆ crop()

Image aurore::test::Image::crop ( int  x,
int  y,
int  w,
int  h 
) const

◆ empty()

bool aurore::test::Image::empty ( ) const
inline

◆ loadPng()

static Image aurore::test::Image::loadPng ( const std::string &  path)
static

◆ savePng()

bool aurore::test::Image::savePng ( const std::string &  path) const

Member Data Documentation

◆ height

int aurore::test::Image::height = 0

◆ rgba

std::vector<unsigned char> aurore::test::Image::rgba

◆ width

int aurore::test::Image::width = 0

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