VCV Rack API v2
Loading...
Searching...
No Matches
rack::window::Image Struct Reference

Bitmap/raster image loaded in a particular Window context. More...

#include <Window.hpp>

Public Member Functions

 ~Image ()
 
void loadFile (const std::string &filename, NVGcontext *vg)
 Don't call this directly but instead use APP->window->loadImage()
 

Static Public Member Functions

static DEPRECATED std::shared_ptr< Imageload (const std::string &filename)
 Use APP->window->loadImage() instead.
 

Public Attributes

NVGcontext * vg
 
int handle = -1
 

Detailed Description

Bitmap/raster image loaded in a particular Window context.

Constructor & Destructor Documentation

◆ ~Image()

rack::window::Image::~Image ( )

Member Function Documentation

◆ loadFile()

void rack::window::Image::loadFile ( const std::string & filename,
NVGcontext * vg )

Don't call this directly but instead use APP->window->loadImage()

◆ load()

static DEPRECATED std::shared_ptr< Image > rack::window::Image::load ( const std::string & filename)
static

Use APP->window->loadImage() instead.

Member Data Documentation

◆ vg

NVGcontext* rack::window::Image::vg

◆ handle

int rack::window::Image::handle = -1

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