|
cxxmcp 1.1.6
C++ MCP SDK
|
Icon descriptor used by tools, resources, resource templates, and prompts. More...
#include <types.hpp>
Public Member Functions | |
| Icon & | with_mime_type (std::string value) & |
| Sets the optional MIME type on an lvalue icon. | |
| Icon && | with_mime_type (std::string value) && |
| Sets the optional MIME type while preserving fluent temporary use. | |
| Icon & | with_sizes (std::vector< std::string > values) & |
| Sets optional size hints on an lvalue icon. | |
| Icon && | with_sizes (std::vector< std::string > values) && |
| Sets optional size hints while preserving fluent temporary use. | |
| Icon & | with_theme (IconTheme value) & |
| Sets the optional theme on an lvalue icon. | |
| Icon && | with_theme (IconTheme value) && |
| Sets the optional theme while preserving fluent temporary use. | |
Static Public Member Functions | |
| static Icon | from_src (std::string value) |
| Creates an icon with the required source field. | |
Public Attributes | |
| std::string | src |
| Required icon source URI or data URI. | |
| std::string | mime_type |
Optional MIME type such as image/png or image/svg+xml. | |
| std::vector< std::string > | sizes |
Optional size hints such as 16x16, 32x32, or any. | |
| std::optional< IconTheme > | theme |
| Optional theme specialization. | |
Icon descriptor used by tools, resources, resource templates, and prompts.