Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

DrawingDraw

 

class DrawingDraw : public Draw

DrawingDraw is a Draw able to store drawing operations of Draw and to create Drawing value that can be replayed using Draw::DrawDrawing.

 

 

Public Method List

 

void Create(int cx, int cy, bool dots = true)

void Create(Size sz, bool dots = true)

Starts a new recording session. The size of resulting Drawing is in fact only important to compute correct rescaling in Draw::DrawDrawing. dots determine DOTS flag in Draw:GetInfo(). If there are already any records stored in DrawingDraw, they are cleaned.

 


 

Size GetSize() const

Returns the size set by constructor or Create.

 


 

Drawing GetResult()

Returns actual result.

 


 

operator Drawing()

Returns GetResult().

 

 

Constructor detail

 

DrawingDraw()

Default constructor. Create has to be explicitly called on default constructed DrawingDraw.

 


 

DrawingDraw(int cx, int cy, bool dots = true)

DrawingDraw(Size sz, bool dots = true)

Calls Create to start a recording session.

 

 

Do you want to contribute?