pub struct FxProp {
pub typ: u8,
pub dec: u8,
pub slot: u8,
pub flags: u8,
pub name: &'static str,
pub min: f64,
pub max: f64,
pub def: f64,
pub def_y: f64,
pub choices: &'static [&'static str],
}Expand description
a property (FXPROP); slot i of the parameter block belongs to property i, except FP_PAN (2 slots) and FP_BLOB (max slots)
Fields§
§typ: u8§dec: u8§slot: u8§flags: u8§name: &'static str§min: f64§max: f64§def: f64the default (FP_COLOR: the bits of this f64 are the ARGB colour)
def_y: f64FP_PAN: the y default (FXP_CHOICES of the asm record)
choices: &'static [&'static str]Implementations§
Source§impl FxProp
impl FxProp
Sourcepub const fn new(
typ: u8,
dec: u8,
slot: u8,
flags: u8,
name: &'static str,
min: f64,
max: f64,
def: f64,
) -> FxProp
pub const fn new( typ: u8, dec: u8, slot: u8, flags: u8, name: &'static str, min: f64, max: f64, def: f64, ) -> FxProp
an FP_INT / DEC / BOOL / ANGLE / SEED / BLOB property (FXPROP)
Sourcepub const fn choice(
slot: u8,
name: &'static str,
max: f64,
def: f64,
choices: &'static [&'static str],
) -> FxProp
pub const fn choice( slot: u8, name: &'static str, max: f64, def: f64, choices: &'static [&'static str], ) -> FxProp
an FP_CHOICE property
Sourcepub const fn color(slot: u8, name: &'static str, argb: u32) -> FxProp
pub const fn color(slot: u8, name: &'static str, argb: u32) -> FxProp
an FP_COLOR property (FXPROPC: the default’s bits are the colour)
Auto Trait Implementations§
impl Forget for FxProp
impl Freeze for FxProp
impl RefUnwindSafe for FxProp
impl Send for FxProp
impl Sync for FxProp
impl Unpin for FxProp
impl UnsafeUnpin for FxProp
impl UnwindSafe for FxProp
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