Trait components::SurfaceExt [−][src]
pub trait SurfaceExt: 'static { fn get_animating(&self) -> bool; fn set_animating(&self, animating: bool); fn connect_draw<F: Fn(&Self, &dyn CanvasContext<Pattern>, i32, i32) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_looped<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_animating_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required methods
fn get_animating(&self) -> bool
[src]
get_animating: @spinner: A #Surface widget
Determines whether the spinner is animating.
Returns: %true if the spinner is animating, %false otherwise
fn set_animating(&self, animating: bool)
[src]
set_animating: @spinner: A #Surface widget @animating: %true to enable animation, %false to disable
Sets whether the spinner is animating. A spinner can be stopped if the task it represents has finished, or to save energy.
fn connect_draw<F: Fn(&Self, &dyn CanvasContext<Pattern>, i32, i32) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
The Canvas::draw
signal is emitted each time a canvas is
invalidated.
It is safe to connect multiple handlers to this signal: each
handler invocation will be automatically protected by cairo_save
and cairo_restore
pairs.
cr
the Cairo context used to draw
width
the width of the canvas
height
the height of the canvas
Returns
true
if the signal emission should stop, and
false
otherwise
fn connect_looped<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_animating_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: Is<Surface>> SurfaceExt for O
[src]
fn get_animating(&self) -> bool
[src]
get_animating: @spinner: A #Surface widget
Determines whether the spinner is animating.
Returns: %true if the spinner is animating, %false otherwise
fn set_animating(&self, animating: bool)
[src]
set_animating: @spinner: A #Surface widget @animating: %true to enable animation, %false to disable
Sets whether the spinner is animating. A spinner can be stopped if the task it represents has finished, or to save energy.
fn connect_draw<F: Fn(&Self, &dyn CanvasContext<Pattern>, i32, i32) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
The Canvas::draw
signal is emitted each time a canvas is
invalidated.
It is safe to connect multiple handlers to this signal: each
handler invocation will be automatically protected by cairo_save
and cairo_restore
pairs.
cr
the Cairo context used to draw
width
the width of the canvas
height
the height of the canvas
Returns
true
if the signal emission should stop, and
false
otherwise
fn connect_looped<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_animating_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId