pub struct Layer { /* private fields */ }
Expand description
Layer struct
Implementations§
Source§impl Layer
impl Layer
Sourcepub fn new(
visible: bool,
frozen: bool,
on_map: bool,
color_rgb: u32,
module: u32,
dont_use_color: bool,
color_flags: u32,
button_off: bool,
name: String,
inherit: bool,
scale_index: u32,
min_track_radius: f64,
max_track_grade: f64,
tie_length: f64,
tie_width: f64,
tie_spacing: f64,
) -> Self
pub fn new( visible: bool, frozen: bool, on_map: bool, color_rgb: u32, module: u32, dont_use_color: bool, color_flags: u32, button_off: bool, name: String, inherit: bool, scale_index: u32, min_track_radius: f64, max_track_grade: f64, tie_length: f64, tie_width: f64, tie_spacing: f64, ) -> Self
Initialize a layer
§Parameters:
- visible is it visible?
- frozen is it frozen?
- on_map is it on map?
- color_rgb its colot
- module its module
- dont_use_color don’t use color?
- color_flags color flags
- button_off is it button off?
- name its name
- inherit inherit?
- scale_index its scale index
- min_track_radius minimum track radious
- max_track_grade maximum grade
- tie_length tie length
- tie_width tie width
- tie_spacing tie spacing
Returns an initialized Layer struct.
Sourcepub fn IsVisibleP(&self) -> bool
pub fn IsVisibleP(&self) -> bool
Sourcepub fn DontUseColotP(&self) -> bool
pub fn DontUseColotP(&self) -> bool
Sourcepub fn ColorFlags(&self) -> u32
pub fn ColorFlags(&self) -> u32
Sourcepub fn IsButtonOffP(&self) -> bool
pub fn IsButtonOffP(&self) -> bool
Sourcepub fn ScaleIndex(&self) -> u32
pub fn ScaleIndex(&self) -> u32
Sourcepub fn MinimumTrackRadius(&self) -> f64
pub fn MinimumTrackRadius(&self) -> f64
Sourcepub fn MaximumTrackGrade(&self) -> f64
pub fn MaximumTrackGrade(&self) -> f64
Sourcepub fn TieSPacing(&self) -> f64
pub fn TieSPacing(&self) -> f64
Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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