blob: 2fd00e892ccf894353e553589994d4cf6a5fb6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* @file binres.hpp
* @author Manzerbredes
* @brief Binary resources functions
* @version 0.1
* @date 2023-05-12
*
* @copyright Copyright (c) 2023
*/
#pragma once
#include "ochess.hpp"
/**
* @brief Load an icon from embedded binary resources and rescale it
* to a specified @a size
*
* @param icon The icon name
* @param size Scale the icon to the specified size
* @return wxBitmap
* @ingroup binres
*/
wxBitmap LoadPNG(std::string icon, wxSize size);
/**
* @brief Load an icon from embedded binary resources
*
* @param icon
* @return wxBitmap the image or wxNullBitmap if not found
* @ingroup binres
*/
wxBitmap LoadPNG(std::string icon);
|