mirror of https://github.com/buggins/dlangui.git
whitespace remove
This commit is contained in:
parent
5eec0f91cf
commit
b2be31ac9f
|
|
@ -134,11 +134,11 @@ class TextWidget : Widget {
|
||||||
applyAlign(rc, sz);
|
applyAlign(rc, sz);
|
||||||
font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags);
|
font.drawText(buf, rc.left, rc.top, text, textColor, 4, 0, textFlags);
|
||||||
} else {
|
} else {
|
||||||
SimpleTextFormatter fmt;
|
SimpleTextFormatter fmt;
|
||||||
Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags);
|
Point sz = fmt.format(text, font, maxLines, rc.width, 4, 0, textFlags);
|
||||||
applyAlign(rc, sz);
|
applyAlign(rc, sz);
|
||||||
// TODO: apply align to alignment lines
|
// TODO: apply align to alignment lines
|
||||||
fmt.draw(buf, rc.left, rc.top, font, textColor);
|
fmt.draw(buf, rc.left, rc.top, font, textColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -178,10 +178,10 @@ class ImageWidget : Widget {
|
||||||
@property string drawableId() { return _drawableId; }
|
@property string drawableId() { return _drawableId; }
|
||||||
/// set drawable image id
|
/// set drawable image id
|
||||||
@property ImageWidget drawableId(string id) {
|
@property ImageWidget drawableId(string id) {
|
||||||
_drawableId = id;
|
_drawableId = id;
|
||||||
_drawable.clear();
|
_drawable.clear();
|
||||||
requestLayout();
|
requestLayout();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
/// get drawable
|
/// get drawable
|
||||||
@property ref DrawableRef drawable() {
|
@property ref DrawableRef drawable() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue