pub struct FrameOffsetRegion {
pub node_id: String,
pub node_offset: Box<Vector>,
pub region_height: f64,
pub region_width: f64,
pub comment_pin_corner: Option<CommentPinCorner>,
}Expand description
FrameOffsetRegion : Position of a region comment relative to the frame to which it is attached.
Fields§
§node_id: StringUnique id specifying the frame.
node_offset: Box<Vector>2D vector offset within the frame from the top-left corner.
region_height: f64The height of the comment region. Must be greater than 0.
region_width: f64The width of the comment region. Must be greater than 0.
comment_pin_corner: Option<CommentPinCorner>The corner of the comment region to pin to the node’s corner as a string enum.
Implementations§
Trait Implementations§
Source§impl Clone for FrameOffsetRegion
impl Clone for FrameOffsetRegion
Source§fn clone(&self) -> FrameOffsetRegion
fn clone(&self) -> FrameOffsetRegion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameOffsetRegion
impl Debug for FrameOffsetRegion
Source§impl Default for FrameOffsetRegion
impl Default for FrameOffsetRegion
Source§fn default() -> FrameOffsetRegion
fn default() -> FrameOffsetRegion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameOffsetRegion
impl<'de> Deserialize<'de> for FrameOffsetRegion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameOffsetRegion
impl PartialEq for FrameOffsetRegion
Source§impl Serialize for FrameOffsetRegion
impl Serialize for FrameOffsetRegion
impl StructuralPartialEq for FrameOffsetRegion
Auto Trait Implementations§
impl Freeze for FrameOffsetRegion
impl RefUnwindSafe for FrameOffsetRegion
impl Send for FrameOffsetRegion
impl Sync for FrameOffsetRegion
impl Unpin for FrameOffsetRegion
impl UnwindSafe for FrameOffsetRegion
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