LMMS
Loading...
Searching...
No Matches
lmms::embed Namespace Reference

Functions

auto getIconPixmap (std::string_view name, int width, int height, const char *const *xpm) -> QPixmap
auto getText (std::string_view name) -> QString
auto logicalSize (const QPixmap &pixmap) noexcept
 Temporary shim for QPixmap::deviceIndependentSize.

Function Documentation

◆ getIconPixmap()

auto LMMS_EXPORT lmms::embed::getIconPixmap ( std::string_view name,
int width = -1,
int height = -1,
const char *const * xpm = nullptr ) -> QPixmap

Return an image for the icon pixmap cache.

Parameters
nameIdentifier for the pixmap. If it is not in the icon pixmap cache, it will be loaded from the artwork QDir search paths (exceptions are compiled-in XPMs, you need to provide xpm for loading them).
xpmMust be XPM data if the source should be raw XPM data instead of a file

◆ getText()

auto LMMS_EXPORT lmms::embed::getText ( std::string_view name) -> QString

◆ logicalSize()

auto lmms::embed::logicalSize ( const QPixmap & pixmap)
inlinenoexcept

Temporary shim for QPixmap::deviceIndependentSize.

Parameters
pixmapThe pixmap to get the size of.
Returns
The device-independent size of the pixmap.