Struct librgbmatrix_sys::RGBLedMatrixOptions
source · [−]#[repr(C)]pub struct RGBLedMatrixOptions {Show 19 fields
pub hardware_mapping: *const c_char,
pub rows: c_int,
pub cols: c_int,
pub chain_length: c_int,
pub parallel: c_int,
pub pwm_bits: c_int,
pub pwm_lsb_nanoseconds: c_int,
pub pwm_dither_bits: c_int,
pub brightness: c_int,
pub scan_mode: c_int,
pub row_address_type: c_int,
pub multiplexing: c_int,
pub led_rgb_sequence: *const c_char,
pub pixel_mapper_config: *const c_char,
pub panel_type: *const c_char,
pub disable_hardware_pulsing: c_char,
pub show_refresh_rate: c_char,
pub inverse_colors: c_char,
pub limit_refresh_rate_hz: c_int,
}
Expand description
Parameters to create a new matrix.
To get the defaults, non-set values have to be initialized to zero, so you should zero out this struct before setting anything.
Fields
hardware_mapping: *const c_char
rows: c_int
cols: c_int
chain_length: c_int
parallel: c_int
pwm_bits: c_int
pwm_lsb_nanoseconds: c_int
pwm_dither_bits: c_int
brightness: c_int
scan_mode: c_int
row_address_type: c_int
multiplexing: c_int
led_rgb_sequence: *const c_char
pixel_mapper_config: *const c_char
panel_type: *const c_char
disable_hardware_pulsing: c_char
The following are boolean flags, all off by default
show_refresh_rate: c_char
inverse_colors: c_char
limit_refresh_rate_hz: c_int
Trait Implementations
sourceimpl Clone for RGBLedMatrixOptions
impl Clone for RGBLedMatrixOptions
sourcefn clone(&self) -> RGBLedMatrixOptions
fn clone(&self) -> RGBLedMatrixOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RGBLedMatrixOptions
impl Debug for RGBLedMatrixOptions
impl Copy for RGBLedMatrixOptions
Auto Trait Implementations
impl RefUnwindSafe for RGBLedMatrixOptions
impl !Send for RGBLedMatrixOptions
impl !Sync for RGBLedMatrixOptions
impl Unpin for RGBLedMatrixOptions
impl UnwindSafe for RGBLedMatrixOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more