lmms
Cross-platform music production software
Loading...
Searching...
No Matches
lmms::embed Namespace Reference

Functions

auto 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.
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).
widthA specific pixmap width. When this and height are provided, the pixmap is cached.
heightA specific pixmap height. When this and width are provided, the pixmap is cached.
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.