GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::utility::paint Namespace Reference

Functions

GUI_FRAMEWORK_API_FUNCTION bool drawImageByIndex (const BaseWindow *window, const ImagesHolder &holder, int x, int y, uint16_t index)
 Draw single image from holder. Multiple calls doesn't work. Better use BaseWindow drawing.
 
GUI_FRAMEWORK_API_FUNCTION bool drawImageByPath (const BaseWindow *window, const ImagesHolder &holder, int x, int y, const filesystem::path &pathToImage)
 
GUI_FRAMEWORK_API_FUNCTION bool drawIconByIndex (const BaseWindow *window, const IconsHolder &holder, int x, int y, uint16_t index)
 Draw single icon from holder. Multiple calls doesn't work. Better use BaseWindow drawing.
 
GUI_FRAMEWORK_API_FUNCTION bool drawIconByPath (const BaseWindow *window, const IconsHolder &holder, int x, int y, const filesystem::path &pathToImage)
 
GUI_FRAMEWORK_API_FUNCTION bool drawImageByPath (const BaseWindow *window, const ImagesHolder &holder, int x, int y, const std::filesystem::path &pathToImage)
 Draw single image from holder. Multiple calls doesn't work. Better use BaseWindow drawing.
 
GUI_FRAMEWORK_API_FUNCTION bool drawIconByPath (const BaseWindow *window, const IconsHolder &holder, int x, int y, const std::filesystem::path &pathToIcon)
 Draw single icon from holder. Multiple calls doesn't work. Better use BaseWindow drawing.
 

Function Documentation

◆ drawIconByIndex()

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawIconByIndex ( const BaseWindow * window,
const IconsHolder & holder,
int x,
int y,
uint16_t index )

Draw single icon from holder. Multiple calls doesn't work. Better use BaseWindow drawing.

Parameters
window
holder
x
y
indexInternal index of image
Returns
Exceptions
std::out_of_rangeWrong index

Definition at line 24 of file Draw.cpp.

◆ drawIconByPath() [1/2]

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawIconByPath ( const BaseWindow * window,
const IconsHolder & holder,
int x,
int y,
const filesystem::path & pathToImage )

Definition at line 29 of file Draw.cpp.

◆ drawIconByPath() [2/2]

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawIconByPath ( const BaseWindow * window,
const IconsHolder & holder,
int x,
int y,
const std::filesystem::path & pathToIcon )

Draw single icon from holder. Multiple calls doesn't work. Better use BaseWindow drawing.

Parameters
window
holder
x
y
pathToImage
Returns
Exceptions
std::out_of_rangeWrong pathToImage

◆ drawImageByIndex()

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawImageByIndex ( const BaseWindow * window,
const ImagesHolder & holder,
int x,
int y,
uint16_t index )

Draw single image from holder. Multiple calls doesn't work. Better use BaseWindow drawing.

Parameters
window
holder
x
y
indexInternal index of image
Returns
Exceptions
std::out_of_rangeWrong index

Definition at line 14 of file Draw.cpp.

◆ drawImageByPath() [1/2]

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawImageByPath ( const BaseWindow * window,
const ImagesHolder & holder,
int x,
int y,
const filesystem::path & pathToImage )

Definition at line 19 of file Draw.cpp.

◆ drawImageByPath() [2/2]

GUI_FRAMEWORK_API_FUNCTION bool gui_framework::utility::paint::drawImageByPath ( const BaseWindow * window,
const ImagesHolder & holder,
int x,
int y,
const std::filesystem::path & pathToImage )

Draw single image from holder. Multiple calls doesn't work. Better use BaseWindow drawing.

Parameters
window
holder
x
y
pathToImage
Returns
Exceptions
std::out_of_rangeWrong pathToImage