pub struct Point {
pub x: f64,
pub y: f64,
pub edge_flag: Option<u8>,
pub color: Option<CT_Color>,
}Expand description
坐标点(ofd:Point),含可选边缘标志与颜色。
对应 Java: ofdrw Point。
Fields§
§x: f64X 坐标。
y: f64Y 坐标。
edge_flag: Option<u8>边缘标志(0 或 1,可选)。
color: Option<CT_Color>颜色(可选)。
Implementations§
Source§impl Point
impl Point
Sourcepub fn with_edge_flag(self, flag: u8) -> Self
pub fn with_edge_flag(self, flag: u8) -> Self
设置边缘标志。
Sourcepub fn with_color(self, color: CT_Color) -> Self
pub fn with_color(self, color: CT_Color) -> Self
设置颜色。
Trait Implementations§
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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