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
create a Module
fn append(&mut self, e: Element)
append an Element to a Module
fn is_reference_with_name(&self, reference: &str) -> bool
check if a Module has a reference Element with the specified name
fn get_reference(&self) -> Option<&String>
get the Reference element from the Module if it exists
fn get_reference_text(&self) -> Option<&FpText>
fn get_reference2_text(&self) -> Option<&FpText>
fn has_smd_attr(&self) -> bool
fn get_value_text(&self) -> Option<&FpText>
fn get_tstamp(&self) -> Option<i64>
check if a Module has a tstamp Element and return it
fn get_tedit(&self) -> Option<i64>
check if a Module has a tedit Element and return it
fn set_reference(&mut self, reference: &str, reference2: &str)
update the name of the reference element specified by name, if found
fn at(&self) -> (f64, f64)
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
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)
adjust the At element contained in the module
fn is_front(&self) -> bool
check if the Module is on the front layer
fn rename_net(&mut self, old_name: &str, new_name: &str)
rename a net
fn pads(&self) -> Vec<&Pad>
fn lines(&self) -> Vec<&FpLine>
Trait Implementations
impl Debug for Module
[src]
impl Clone for Module
[src]
fn clone(&self) -> Module
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl BoundingBox for Module
[src]
fn bounding_box(&self) -> Bound
calculate the bounding box of a layout item
impl Adjust for Module
[src]
impl Flip for Module
[src]
fn flip(&mut self)
flip me