From 1a08b1e2030618f7941db7152abea70a8332a42e Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 22 Sep 2009 17:16:55 +0000 Subject: [PATCH] Draw: AttrText docs git-svn-id: svn://ultimatepp.org/upp/trunk@1582 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/src.tpp/Display$en-us.tpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/uppsrc/Draw/src.tpp/Display$en-us.tpp b/uppsrc/Draw/src.tpp/Display$en-us.tpp index 45eebaef6..f2205f094 100644 --- a/uppsrc/Draw/src.tpp/Display$en-us.tpp +++ b/uppsrc/Draw/src.tpp/Display$en-us.tpp @@ -124,6 +124,14 @@ for the text painted.&] ALIGN`_CENTER.&] [s7;%- &] [s8;%- &] +[s5;:AttrText`:`:img:%- [_^Image^@0 Image][@0 _img]&] +[s2; Icon aligned to the left side.&] +[s7;%- &] +[s8;%- &] +[s5;:AttrText`:`:imgspc:%- [@(0.0.255) int][@0 _imgspc]&] +[s2; Space between icon and text.&] +[s7;%- &] +[s8;%- &] [s5;:AttrText`:`:Ink`(Color`):%- [_^AttrText^@0 AttrText][@(0.0.255) `&][@0 _Ink(][_^Color^@0 C olor][@0 _][@3 c][@0 )]&] [s2; Sets the text color.&] @@ -163,6 +171,12 @@ ALIGN`_CENTER and ALIGN`_RIGHT.&] [s2; Aligns the text right.&] [s7;%- &] [s8;%- &] +[s5;:AttrText`:`:SetImage`(const Image`&`,int`):%- [_^AttrText^@0 AttrText][@(0.0.255) `& +][@0 _SetImage(][@(0.0.255) const][@0 _][_^Image^@0 Image][@(0.0.255) `&][@0 _][@3 m][@0 , +][@(0.0.255) int][@0 _][@3 spc][@0 _`=_][@3 4][@0 )]&] +[s2; Sets the icon and space between the icon and text.&] +[s7; &] +[s8;%- &] [s5;:AttrText`:`:operator Value`(`)const:%- [@0 operator_Value()_][@(0.0.255) const]&] [s4; [*/ Return value]-|AttrText as raw Value.&] [s7;%- &]