Skip to main content

Record

Enum Record 

Source
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

Fields

§handle: u32
§

CreateBrushIndirect

Fields

§handle: u32
§brush: LogBrush
§

CreateDibPatternBrush

Fields

§handle: u32
§

ExtCreateFontIndirectW

Fields

§handle: u32
§

SelectObject

Fields

§handle: u32
§

DeleteObject

Fields

§handle: u32
§

SaveDC

§

RestoreDC

Fields

§relative: i32
§

SetWorldTransform(XForm)

§

ModifyWorldTransform

Fields

§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

Fields

§rect: RectL
§corner_w: i32
§corner_h: i32
§

Ellipse(RectL)

§

Arc

Fields

§rect: RectL
§start: PointL
§

Chord

Fields

§rect: RectL
§start: PointL
§

Pie

Fields

§rect: RectL
§start: PointL
§

Polyline16

Fields

§bounds: RectL
§points: Vec<(i16, i16)>
§

Polygon16

Fields

§bounds: RectL
§points: Vec<(i16, i16)>
§

PolyPolygon16

Fields

§bounds: RectL
§polygons: Vec<Vec<(i16, i16)>>
§

PolyBezier16

Fields

§bounds: RectL
§points: Vec<(i16, i16)>
§

PolylineTo16

[#6577] EMR_POLYLINETO16 — 현재 위치에서 이어지는 선분열. 패스 기반 EMF(Office·Illustrator 내장본)의 주 구성 레코드다.

Fields

§bounds: RectL
§points: Vec<(i16, i16)>
§

PolyBezierTo16

[#6577] EMR_POLYBEZIERTO16 — 현재 위치에서 이어지는 3차 베지에열.

Fields

§bounds: RectL
§points: Vec<(i16, i16)>
§

IntersectClipRect(RectL)

[#6577] EMR_INTERSECTCLIPRECT — 현재 클립을 이 사각형과 교차시킨다.

§

ExtSelectClipRgn

EMR_EXTSELECTCLIPRGN — has_region 이 false 이고 mode 가 RGN_COPY(5) 면 클립을 기본(무제한)으로 되돌리라는 뜻이다.

Fields

§mode: u32
§has_region: bool
§

BeginPath

§

EndPath

§

CloseFigure

§

FillPath(RectL)

§

StrokePath(RectL)

§

StrokeAndFillPath(RectL)

§

ExtTextOutW(ExtTextOut)

§

StretchDIBits(StretchDIBits)

§

Unknown

미분기 레코드. payload는 type/size 8B를 제외한 나머지.

Fields

§record_type: u32
§payload: Vec<u8>

Trait Implementations§

Source§

impl Clone for Record

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Record

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more