app_server: add Canvas::PenToLocalTransform
This commit is contained in:
parent
8511f6ac9b
commit
ae0468762f
@ -188,6 +188,17 @@ Canvas::PenToScreenTransform() const GCC_2_NRV(transform)
|
||||
}
|
||||
|
||||
|
||||
SimpleTransform
|
||||
Canvas::PenToLocalTransform() const GCC_2_NRV(transform)
|
||||
{
|
||||
#if __GNUC__ >= 3
|
||||
SimpleTransform transform;
|
||||
#endif
|
||||
fDrawState->Transform(transform);
|
||||
return transform;
|
||||
}
|
||||
|
||||
|
||||
SimpleTransform
|
||||
Canvas::ScreenToPenTransform() const GCC_2_NRV(transform)
|
||||
{
|
||||
@ -218,4 +229,3 @@ OffscreenCanvas::ResyncDrawState()
|
||||
{
|
||||
fDrawingEngine->SetDrawState(fDrawState);
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,7 @@ public:
|
||||
SimpleTransform LocalToScreenTransform() const;
|
||||
SimpleTransform ScreenToLocalTransform() const;
|
||||
SimpleTransform PenToScreenTransform() const;
|
||||
SimpleTransform PenToLocalTransform() const;
|
||||
SimpleTransform ScreenToPenTransform() const;
|
||||
|
||||
virtual DrawingEngine* GetDrawingEngine() const = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user