fireplace_lib 3.0.2

Modular wayland window manager library
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Providers for `Widget`s to be rendered by `ConrodInstance`
//!

use conrod::UiCell;
use wlc::Output;

pub mod background;
pub use self::background::{BackgroundConfig, BackgroundHandler};
pub mod statusbar;
pub use self::statusbar::{StatusbarConfig, StatusbarHandler};

/// An Interface for dealing with types, that want to render on a
/// `ConrodInstance`
pub trait ConrodProvider {
    /// Render all `Widget`s managed by this provider via the provided
    /// `Cell` with the given context by `output`.
    fn render(&mut self, output: &Output, ui: &mut UiCell);
}