pub struct GeoRegionLayout {
pub name: String,
pub path: Path,
pub center: Point,
}Expand description
One region of a map, in pixel space.
Fields§
§name: StringThe name of the region.
path: PathThe outline of the region, projected into the chart.
center: PointThe middle of the region, where its label goes.
Implementations§
Source§impl GeoRegionLayout
impl GeoRegionLayout
pub fn get_name(&self) -> &String
pub fn get_mut_name(&mut self) -> &mut String
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn get_path(&self) -> &Path
pub fn get_mut_path(&mut self) -> &mut Path
pub fn set_path(&mut self, val: Path) -> &mut Self
pub fn get_center(&self) -> &Point
pub fn get_mut_center(&mut self) -> &mut Point
pub fn set_center(&mut self, val: Point) -> &mut Self
Trait Implementations§
Source§impl Clone for GeoRegionLayout
impl Clone for GeoRegionLayout
Source§impl Debug for GeoRegionLayout
impl Debug for GeoRegionLayout
Source§impl PartialEq for GeoRegionLayout
impl PartialEq for GeoRegionLayout
impl StructuralPartialEq for GeoRegionLayout
Auto Trait Implementations§
impl Freeze for GeoRegionLayout
impl RefUnwindSafe for GeoRegionLayout
impl Send for GeoRegionLayout
impl Sync for GeoRegionLayout
impl Unpin for GeoRegionLayout
impl UnsafeUnpin for GeoRegionLayout
impl UnwindSafe for GeoRegionLayout
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