help me learn to read documentation
Robin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 1 19:33:09 PDT 2015
On Friday, 2 October 2015 at 01:20:50 UTC, Adam D. Ruppe wrote:
> On Thursday, 1 October 2015 at 19:15:39 UTC, Robin wrote:
>> [...]
>
> Those describe simple class members, so you can set them
> through assignment:
>
> Text CurrentFps = new Text(dejavu);
> // change to white on black
> CurrentFps.foreground = Color4b.White;
> CurrentFps.background = Color4b.Black;
> // change mode
> CurrentFps.mode = Font.Mode.Shaded;
>
>
> I haven't actually used this library, but since the doc
> describes it with variable syntax (`Color4b foreground;`) that
> means you should be able to just assign to them like ordinary
> object member variables.
Wow, thank you so much. I have never seen code like that before
but the documentation there made me scratch my head.
Thank you.
More information about the Digitalmars-d-learn
mailing list