|
Boost.UI
User Interface Boost library
|
Image class. More...
Public Types | |
| typedef void * | native_handle_type |
| Implementation-defined image type. | |
Public Member Functions | |
| image & | load (std::istream &s) |
| Loads image from the stream. More... | |
| coord_type | width () const |
| Returns image width. More... | |
| coord_type | height () const |
| Returns image height. More... | |
| size | dimensions () const |
| Returns image size. More... | |
| bool | valid () const noexcept |
| Returns true only if image is valid. | |
| native_handle_type | native_handle () |
| Returns the implementation-defined underlying image handle. | |
| const native_handle_type | native_handle () const |
| Returns the implementation-defined underlying image handle. | |
Static Public Member Functions | |
| static image | xdg (const char *name, coord_type width, coord_type height) |
| Returns standard freedesktop.org (XDG) icon by name. More... | |
Image class.
|
inline |
Returns image size.
| std::runtime_error | On invalid image |
| coord_type boost::ui::image::height | ( | ) | const |
Returns image height.
| std::runtime_error | On invalid image |
| image& boost::ui::image::load | ( | std::istream & | s | ) |
Loads image from the stream.
| std::runtime_error | On image load failure |
| coord_type boost::ui::image::width | ( | ) | const |
Returns image width.
| std::runtime_error | On invalid image |
|
static |
Returns standard freedesktop.org (XDG) icon by name.