Trait components::rendering::backend::BaseRender
source · [−]pub trait BaseRender where
Self: AsRef<WidgetComponent>, {
Show 16 methods
fn internal_connect(&self) { ... }
fn internal_disconnect(&self) { ... }
fn scale(&self) -> f32 { ... }
fn sx(&self) -> f32 { ... }
fn sy(&self) -> f32 { ... }
fn sw(&self) -> f32 { ... }
fn sh(&self) -> f32 { ... }
fn cs(&self, value: f32) -> f32 { ... }
fn onscale(&self, scale: f32, prev: f32) { ... }
fn onvisible(&self, value: bool) { ... }
fn ondepth(&self, depth: f32) { ... }
fn ondestroy(&self) { ... }
fn onbounds(&self) { ... }
fn onclip(&self, disable: bool, x: f32, y: f32, w: f32, h: f32) { ... }
fn onchildadd(&self, control: WidgetComponent) { ... }
fn onchildremove(&self, control: WidgetComponent) { ... }
}
Expand description
The basic implementation for a control Renderer. This includes convenience functions and implementation of the base control events which are called to simplify integration. Be aware of the timing of signals. Implementation should contain:
rendering: Rendering, control: WidgetComponent,
Provided Methods
fn internal_connect(&self)
fn internal_connect(&self)
Don“t need to call this from Render subclasses
fn internal_disconnect(&self)
fn internal_disconnect(&self)
Don“t need to call this from Render subclasses