Struct qt_gui::q_color_space::TransferFunction
source · pub struct TransferFunction(/* private fields */);
Expand description
Predefined transfer functions or gamma curves.
C++ enum: QColorSpace::TransferFunction
.
Predefined transfer functions or gamma curves.
Implementations§
source§impl TransferFunction
impl TransferFunction
sourcepub const Custom: TransferFunction = _
pub const Custom: TransferFunction = _
The custom or null transfer function (C++ enum variant: Custom = 0
)
sourcepub const Linear: TransferFunction = _
pub const Linear: TransferFunction = _
The linear transfer functions (C++ enum variant: Linear = 1
)
sourcepub const Gamma: TransferFunction = _
pub const Gamma: TransferFunction = _
A transfer function that is a real gamma curve based on the value of gamma() (C++ enum variant: Gamma = 2
)
sourcepub const SRgb: TransferFunction = _
pub const SRgb: TransferFunction = _
The sRGB transfer function, composed of linear and gamma parts (C++ enum variant: SRgb = 3
)
sourcepub const ProPhotoRgb: TransferFunction = _
pub const ProPhotoRgb: TransferFunction = _
The ProPhoto RGB transfer function, composed of linear and gamma parts (C++ enum variant: ProPhotoRgb = 4
)
Trait Implementations§
source§impl Clone for TransferFunction
impl Clone for TransferFunction
source§fn clone(&self) -> TransferFunction
fn clone(&self) -> TransferFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransferFunction
impl Debug for TransferFunction
source§impl From<TransferFunction> for c_int
impl From<TransferFunction> for c_int
source§fn from(value: TransferFunction) -> Self
fn from(value: TransferFunction) -> Self
Converts to this type from the input type.
source§impl From<i32> for TransferFunction
impl From<i32> for TransferFunction
source§impl PartialEq for TransferFunction
impl PartialEq for TransferFunction
source§fn eq(&self, other: &TransferFunction) -> bool
fn eq(&self, other: &TransferFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TransferFunction
impl Eq for TransferFunction
impl StructuralEq for TransferFunction
impl StructuralPartialEq for TransferFunction
Auto Trait Implementations§
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnwindSafe for TransferFunction
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