mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
RichText: ToImage ink now has default, ide: cosmetics
This commit is contained in:
parent
989bcd55d2
commit
70d3a6e3f0
2 changed files with 1 additions and 5 deletions
|
|
@ -198,7 +198,7 @@ public:
|
|||
void SetSize(Size sz) { SetSize(sz.cx, sz.cy); }
|
||||
Size GetSize() const { return size; }
|
||||
void Paint(Draw& w, Size sz, Color ink, void *context = NULL) const;
|
||||
Image ToImage(Size sz, Color ink, void *context = NULL) const;
|
||||
Image ToImage(Size sz, Color ink = Black(), void *context = NULL) const;
|
||||
Size GetPhysicalSize() const { return physical_size; }
|
||||
Size GetPixelSize() const { return pixel_size; }
|
||||
Size GetDefaultSize(Size maxsize, void *context = NULL) const { return type ? type->GetDefaultSize(data, maxsize, context) : physical_size; }
|
||||
|
|
|
|||
|
|
@ -399,10 +399,6 @@ void EscDraw::DrawLabel(EscEscape& e)
|
|||
{ // DrawLabel(x, y, cx, cy, text, font, ink, align, valign, orientation)
|
||||
if(e.GetCount() < 5 || e.GetCount() > 10)
|
||||
e.ThrowError("wrong number of arguments in call to 'DrawLabel'");
|
||||
int x = e.Int(0);
|
||||
int y = e.Int(1);
|
||||
int cx = e.Int(2);
|
||||
int cy = e.Int(3);
|
||||
|
||||
Upp::DrawLabel dl;
|
||||
int ii = 4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue