ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Access to the platform render interface.

use crate::platform::IPlatformRenderInterface;
use crate::{FerroLocator, LocatorExtensions};
use std::rc::Rc;

/// The platform render interface registered by the rendering backend.
///
/// Panics if no rendering backend has been registered.
pub fn render_interface() -> Rc<dyn IPlatformRenderInterface> {
    FerroLocator::current().get_required_service::<dyn IPlatformRenderInterface>()
}