pub mod bitmap;
pub mod drawing;
pub mod header;
pub mod object;
pub mod path;
pub mod state;
pub mod text;
use super::objects::{Header, LogBrush, LogFontW, LogPen, PointL, RectL, SizeL, XForm};
pub use bitmap::DibPatternBrush;
pub use bitmap::StretchDIBits;
pub use text::ExtTextOut;
#[derive(Debug, Clone)]
pub enum Record {
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>,
},
}