Struct kicad_parse_gen::footprint::Module
[−]
[src]
pub struct Module { pub name: String, pub elements: Vec<Element>, }
a Kicad module, with a name and a list of elements
Fields
name: String
name of the Kicad Module
elements: Vec<Element>
elements contained within the Kicad Module
Methods
impl Module
[src]
fn new(name: String) -> Module
[src]
create a Module
fn append(&mut self, e: Element)
[src]
append an Element to a Module
fn is_reference_with_name(&self, reference: &str) -> bool
[src]
check if a Module has a reference Element with the specified name
fn get_reference(&self) -> Option<&String>
[src]
get the Reference element from the Module if it exists
fn get_text(&self, which: &'static str) -> Option<&FpText>
[src]
get a FpText
field by name
fn get_text_mut(&mut self, which: &'static str) -> Option<&mut FpText>
[src]
mutably get a FpText
field by name
fn get_reference_text(&self) -> Option<&FpText>
[src]
get the reference FpText
fn get_reference_text_mut(&mut self) -> Option<&mut FpText>
[src]
mutably get the reference FpText
fn get_reference2_text(&self) -> Option<&FpText>
[src]
get the reference2 FpText
fn get_reference2_text_mut(&mut self) -> Option<&mut FpText>
[src]
mutably get the reference2 FpText
fn get_value_text_mut(&mut self) -> Option<&mut FpText>
[src]
mutably get the value FpText
fn has_smd_attr(&self) -> bool
[src]
check if the module has the "smd" attribute
fn get_value_text(&self) -> Option<&FpText>
[src]
get the value FpText
fn get_tstamp(&self) -> Option<i64>
[src]
check if a Module has a tstamp Element and return it
fn get_tedit(&self) -> Option<i64>
[src]
check if a Module has a tedit Element and return it
fn set_reference(&mut self, reference: &str, reference2: &str)
[src]
update the name of the reference element specified by name, if found
fn at(&self) -> (f64, f64)
[src]
check if there is an At element and return the coordinates found returns the default of (0.0,0.0) if not found
fn get_rotation(&self) -> f64
[src]
check if there is an At element and return the rotation found returns the default of 0.0 if not found
fn adjust_at(&mut self, x: f64, y: f64)
[src]
adjust the At element contained in the module
fn is_front(&self) -> bool
[src]
check if the Module is on the front layer
fn rename_net(&mut self, old_name: &str, new_name: &str)
[src]
rename a net
fn pads(&self) -> Vec<&Pad>
[src]
return a list of Pad
s contained in the module
fn lines(&self) -> Vec<&FpLine>
[src]
return a list of FpLine
s contained in the module
Trait Implementations
impl Debug for Module
[src]
impl Clone for Module
[src]
fn clone(&self) -> Module
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BoundingBox for Module
[src]
fn bounding_box(&self) -> Bound
[src]
calculate the bounding box of a layout item
impl Adjust for Module
[src]
impl Flip for Module
[src]
impl Rotate for Module
[src]
impl CheckFix for Module
[src]
fn check(&self, config: &Config) -> Vec<CheckFixData>
[src]
check an item against the KLC
fn fix(&mut self, config: &Config)
[src]
fix up an item against the KLC