DISTRHO Plugin Framework
 All Classes Functions Variables Modules Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
NanoImage Class Reference

#include <NanoVG.hpp>

Public Member Functions

 ~NanoImage ()
 
Size< uint > getSize () const noexcept
 
void updateImage (const uchar *const data)
 

Protected Member Functions

 NanoImage (NVGcontext *const context, const int imageId) noexcept
 

Friends

class NanoVG
 

Detailed Description

NanoVG Image class.

This implements NanoVG images as a C++ class where deletion is handled automatically. Images need to be created within a NanoVG or NanoWidget class.

Constructor & Destructor Documentation

NanoImage::~NanoImage ( )

Destructor.

NanoImage::NanoImage ( NVGcontext *const  context,
const int  imageId 
)
protectednoexcept

Constructors are protected. NanoImages must be created within a NanoVG or NanoWidget class.

Member Function Documentation

Size<uint> NanoImage::getSize ( ) const
noexcept

Get size.

void NanoImage::updateImage ( const uchar *const  data)

Update image data.


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