wex v24.10.0
|
Offers a collection of art, mapping window id's to art id's. More...
#include <wex/ui/art.h>
Public Types | |
enum class | art_t { BOTH , MATERIAL , STOCK , USER } |
The kind of art that will be used by the wex lib. More... | |
Public Member Functions | |
art (wxWindowID id) | |
Constructor, provide the window id. | |
const wxBitmapBundle | get_bitmap (const wxArtClient &client=wxART_OTHER, const wxSize &bitmap_size=wxDefaultSize, const wxColour &colour=wxNullColour) const |
If the window id is a stock id, returns stock bitmap bundle from the stock art map. | |
Static Public Member Functions | |
static bool | default_client (const wxArtClient &c) |
Sets the default bitmap client (for material art). | |
static wxColour | default_colour () |
Returns the default bitmap colour (for material art). | |
static bool | default_colour (const wxColour &c) |
Sets the default bitmap colour (for material art). | |
static void | insert (const std::unordered_map< wxWindowID, wxArtID > &ids) |
Inserts art ids. | |
static void | type (art_t t) |
Specify the art to use. | |
Offers a collection of art, mapping window id's to art id's.
Default the stock art and material design art is used. You can also choose to use your own art only.
|
strong |
|
static |
Sets the default bitmap client (for material art).
Returns false if client if not valid for material art.
|
static |
Sets the default bitmap colour (for material art).
Returns false if colour is not valid.
const wxBitmapBundle wex::art::get_bitmap | ( | const wxArtClient & | client = wxART_OTHER, |
const wxSize & | bitmap_size = wxDefaultSize, | ||
const wxColour & | colour = wxNullColour ) const |
If the window id is a stock id, returns stock bitmap bundle from the stock art map.
Check IsOk for valid bitmap.
|
static |
Specify the art to use.
If USER is used, the current art ids are cleared, and you should insert your new ones to get bitmaps.