VSTGUI
4.10
Graphical User Interface Framework not only for VST plugins
|
an injection class for views that draw frames of a CMultiFrameBitmap More...
Public Member Functions | |
void | setMultiFrameBitmapRange (int32_t startIndex, int32_t endIndex) |
set the range of the CMultiBitmapFrame this view will use for drawing | |
std::pair< int32_t, int32_t > | getMultiFrameBitmapRange () const |
get the range of the CMulitBitmapFrame this view will use for drawing | |
uint16_t | getMultiFrameBitmapRangeLength (const CMultiFrameBitmap &mfb) const |
get the number of frames this view will use for drawing | |
uint16_t | getInverseIndex (const CMultiFrameBitmap &mfb, uint16_t index) const |
get the inverse index | |
uint16_t | getMultiFrameBitmapIndex (const CMultiFrameBitmap &mfb, float normValue) const |
get the frame index for a normalized value | |
float | getNormValueFromMultiFrameBitmapIndex (const CMultiFrameBitmap &mfb, uint16_t index) const |
get the normalized value for a frame index | |
an injection class for views that draw frames of a CMultiFrameBitmap
a view/control can inherit from this class to support drawing only frames in a range of the multi-frame bitmap.
|
inline |
get the inverse index
mfb | the bitmap |
index | the index |
|
inline |
get the frame index for a normalized value
mfb | the bitmap |
normValue | the normalized value |
|
inline |
get the range of the CMulitBitmapFrame this view will use for drawing
|
inline |
get the number of frames this view will use for drawing
mfb | the bitmap |
|
inline |
get the normalized value for a frame index
mfb | the bitmap |
index | the frame index |
|
inline |
set the range of the CMultiBitmapFrame this view will use for drawing
startIndex | the first frame to draw |
endIndex | the last frame to draw |