pub enum Record {
Show 48 variants
Header(Header),
Eof,
CreatePen {
handle: u32,
pen: LogPen,
},
CreateBrushIndirect {
handle: u32,
brush: LogBrush,
},
CreateDibPatternBrush {
handle: u32,
brush: DibPatternBrush,
},
ExtCreateFontIndirectW {
handle: u32,
font: LogFontW,
},
SelectObject {
handle: u32,
},
DeleteObject {
handle: u32,
},
SaveDC,
RestoreDC {
relative: i32,
},
SetWorldTransform(XForm),
ModifyWorldTransform {
xform: XForm,
mode: u32,
},
SetMapMode(u32),
SetWindowExtEx(SizeL),
SetWindowOrgEx(PointL),
SetViewportExtEx(SizeL),
SetViewportOrgEx(PointL),
SetBkMode(u32),
SetPolyFillMode(u32),
SetBrushOrgEx(PointL),
SetTextAlign(u32),
SetTextColor(u32),
SetBkColor(u32),
MoveToEx(PointL),
LineTo(PointL),
Rectangle(RectL),
RoundRect {
rect: RectL,
corner_w: i32,
corner_h: i32,
},
Ellipse(RectL),
Arc {
rect: RectL,
start: PointL,
end: PointL,
},
Chord {
rect: RectL,
start: PointL,
end: PointL,
},
Pie {
rect: RectL,
start: PointL,
end: PointL,
},
Polyline16 {
bounds: RectL,
points: Vec<(i16, i16)>,
},
Polygon16 {
bounds: RectL,
points: Vec<(i16, i16)>,
},
PolyPolygon16 {
bounds: RectL,
polygons: Vec<Vec<(i16, i16)>>,
},
PolyBezier16 {
bounds: RectL,
points: Vec<(i16, i16)>,
},
PolylineTo16 {
bounds: RectL,
points: Vec<(i16, i16)>,
},
PolyBezierTo16 {
bounds: RectL,
points: Vec<(i16, i16)>,
},
IntersectClipRect(RectL),
ExtSelectClipRgn {
mode: u32,
has_region: bool,
},
BeginPath,
EndPath,
CloseFigure,
FillPath(RectL),
StrokePath(RectL),
StrokeAndFillPath(RectL),
ExtTextOutW(ExtTextOut),
StretchDIBits(StretchDIBits),
Unknown {
record_type: u32,
payload: Vec<u8>,
},
}Expand description
파싱된 EMF 레코드.
Variants§
Header(Header)
Eof
CreatePen
CreateBrushIndirect
CreateDibPatternBrush
ExtCreateFontIndirectW
SelectObject
DeleteObject
SaveDC
RestoreDC
SetWorldTransform(XForm)
ModifyWorldTransform
SetMapMode(u32)
SetWindowExtEx(SizeL)
SetWindowOrgEx(PointL)
SetViewportExtEx(SizeL)
SetViewportOrgEx(PointL)
SetBkMode(u32)
SetPolyFillMode(u32)
SetBrushOrgEx(PointL)
SetTextAlign(u32)
SetTextColor(u32)
SetBkColor(u32)
MoveToEx(PointL)
LineTo(PointL)
Rectangle(RectL)
RoundRect
Ellipse(RectL)
Arc
Chord
Pie
Polyline16
Polygon16
PolyPolygon16
PolyBezier16
PolylineTo16
[#6577] EMR_POLYLINETO16 — 현재 위치에서 이어지는 선분열.
패스 기반 EMF(Office·Illustrator 내장본)의 주 구성 레코드다.
PolyBezierTo16
[#6577] EMR_POLYBEZIERTO16 — 현재 위치에서 이어지는 3차 베지에열.
IntersectClipRect(RectL)
[#6577] EMR_INTERSECTCLIPRECT — 현재 클립을 이 사각형과 교차시킨다.
ExtSelectClipRgn
EMR_EXTSELECTCLIPRGN — has_region 이 false 이고 mode 가 RGN_COPY(5) 면
클립을 기본(무제한)으로 되돌리라는 뜻이다.
BeginPath
EndPath
CloseFigure
FillPath(RectL)
StrokePath(RectL)
StrokeAndFillPath(RectL)
ExtTextOutW(ExtTextOut)
StretchDIBits(StretchDIBits)
Unknown
미분기 레코드. payload는 type/size 8B를 제외한 나머지.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.