ISurface::getWidth - dpw105f18/papago-api GitHub Wiki
Get width of surface
size_t getWidth()
Returns
Returns width of ISurface, which is smaller than the width of the window given.
Example of getWidth
#include "isurface.hpp"
int main()
{
/*
Creation of win32 window and hwnd omitted
*/
auto surface = ISurface::createWin32Surface(800, 600, hwnd);
auto surfaceWidth = surface->getWidth();
}