b3-core 0.4.0

A cross-platform framework that provides access and management of the main elements of a graphical application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{ContextOwner, Error, IconType};

pub(crate) trait IconApi {
    fn from_data(
        ctx: &impl ContextOwner,
        icon_data: &Vec<u8>,
        icon_type: IconType,
    ) -> Result<Self, Error>
    where
        Self: Sized;
    fn from_str(ctx: &impl ContextOwner, title: &String) -> Result<Self, Error>
    where
        Self: Sized;
}