Struct cognitive_aesthetics::Background [] [src]

pub struct Background<C> where
    C: AestheticsCoordinationTrait
{ /* fields omitted */ }

State of the background.

Methods

impl<C> Background<C> where
    C: AestheticsCoordinationTrait
[src]

Constructs new Background.

Reads in background image file and creates surface to be displayed as background.

TODO: Background currently is placed at top left corner. Make it configurable to be centred, stretched, etc...

NOTE: image::open spawns four threads when opening JPEG images and does not close them.

impl<C> Background<C> where
    C: AestheticsCoordinationTrait
[src]

Handles background surface change request.

Handles creation of display.