Struct cognitive_aesthetics::Aesthetics
[−]
[src]
pub struct Aesthetics<'a, C> where
C: AestheticsCoordinationTrait, { /* fields omitted */ }
Aesthetics
manages tasks related to visual appearance. It uses the same API as exposed to
client frontends.
Methods
impl<'a, C> Aesthetics<'a, C> where
C: AestheticsCoordinationTrait + Clone,
[src]
C: AestheticsCoordinationTrait + Clone,
General methods.
fn new(coordinator: C, config: AestheticsConfig) -> Self
Constructs new Aesthetics
.
impl<'a, C> Aesthetics<'a, C> where
C: AestheticsCoordinationTrait + Clone,
[src]
C: AestheticsCoordinationTrait + Clone,
Notification handlers.
TODO: Don't use "on_" on method names of Background
and Cursor
.
fn on_cursor_surface_change(&mut self, sid: SurfaceId)
This method is called when changing cursor surface was requested.
fn on_background_surface_change(&mut self, sid: SurfaceId)
This method is called when changing background surface was requested.
fn on_pointer_focus_changed(
&mut self,
old_pfsid: SurfaceId,
new_pfsid: SurfaceId
)
&mut self,
old_pfsid: SurfaceId,
new_pfsid: SurfaceId
)
This method is called when pointer focus changed.
fn on_surface_destroyed(&mut self, sid: SurfaceId)
This method is called when surface was destroyed.
fn on_display_created(&mut self, output: &OutputInfo)
This method is called when new display was created.
fn on_workspace_state_changed(&mut self)
This method is called when state of workspaces changed.
fn on_timer_500(&mut self)
Handles 500 millisecond timer for redrawing panels.