pub struct ColorStop { /* private fields */ }
Expand description
A color stop in a gradient node.
GLib type: Inline allocated boxed type with stack copy semantics.
Implementations§
Source§impl ColorStop
impl ColorStop
pub fn as_ptr(&self) -> *mut GskColorStop
Sourcepub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GskColorStop) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>(ptr: *const GskColorStop) -> &'a Self
Borrows the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut GskColorStop,
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut GskColorStop, ) -> &'a mut Self
Borrows the underlying C value mutably.
Source§impl ColorStop
impl ColorStop
pub fn new(offset: f32, color: RGBA) -> Self
Sourcepub fn builder() -> ColorStopBuilder
pub fn builder() -> ColorStopBuilder
Creates a new builder-pattern struct instance to construct ColorStop
objects.
This method returns an instance of
ColorStopBuilder
which can be
used to create ColorStop
objects.
pub fn offset(&self) -> f32
pub fn color(&self) -> &RGBA
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorStop
impl RefUnwindSafe for ColorStop
impl Send for ColorStop
impl Sync for ColorStop
impl Unpin for ColorStop
impl UnwindSafe for ColorStop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)