mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.Draw: GetPaintRect added to DrawDrawing
.Geom/Ctrl: different 'zoom full' icons for isotropic / anisotropic zoom mode git-svn-id: svn://ultimatepp.org/upp/trunk@2864 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
85420c618a
commit
368ac9ecb5
3 changed files with 8 additions and 0 deletions
|
|
@ -672,6 +672,8 @@ class DrawingDraw : public Draw {
|
|||
public:
|
||||
virtual dword GetInfo() const;
|
||||
virtual Size GetPageSize() const;
|
||||
virtual Rect GetPaintRect() const;
|
||||
|
||||
virtual void BeginOp();
|
||||
virtual void EndOp();
|
||||
virtual void OffsetOp(Point p);
|
||||
|
|
|
|||
|
|
@ -114,6 +114,11 @@ Size DrawingDraw::GetPageSize() const
|
|||
return size;
|
||||
}
|
||||
|
||||
Rect DrawingDraw::GetPaintRect() const
|
||||
{
|
||||
return Rect(size);
|
||||
}
|
||||
|
||||
void DrawingDraw::BeginOp()
|
||||
{
|
||||
DrawingOp(DRAWING_BEGIN);
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ void PlotterCtrl::FrameLayout(Rect& rc)
|
|||
horz_out .Enable(sbx);
|
||||
horz_full.SetFrameRect(rc.right - sbx, rc.bottom, sbx, box);
|
||||
full .SetFrameRect(rc.right, rc.bottom, box, box);
|
||||
full .SetImage(sbx ? PlotterImg::view_zoom_full_icon_old() : PlotterImg::view_zoom_full_icon());
|
||||
}
|
||||
|
||||
void PlotterCtrl::FrameAddSize(Size& sz)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue