Struct ms_oforms::properties::Position
source · pub struct Position {
pub left: SignedHiMetric,
pub top: SignedHiMetric,
}
Expand description
Specifies a pair of signed integers that specify a position relative to a reference point.
Definition: 2.4.1 fmPosition
Note: The MS-OFORMS spec has the field order reversed for all versions up to and including 7.0. To quote from the relevant Q&A:
The fmPosition struct matches the Windows API
POINT
structure (x then y)
— https://learn.microsoft.com/en-us/answers/questions/1414725/are-the-fields-in-ms-oforms-in-fmposition-swapped
Fields§
§left: SignedHiMetric
A signed integer that specifies, in HIMETRIC units, a distance to the right of the reference point.
top: SignedHiMetric
A signed integer that specifies, in HIMETRIC units, a distance below the reference point.
Implementations§
source§impl Position
impl Position
pub fn new(left: SignedHiMetric, top: SignedHiMetric) -> Self
Trait Implementations§
source§impl PartialEq<Position> for Position
impl PartialEq<Position> for Position
impl Copy for Position
impl Eq for Position
impl StructuralEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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