Text.opCall

Replace the current string.

  1. void opCall(string text)
  2. void opCall(Text t)
    class Text
    final pure nothrow
    void
    opCall
    (
    ref const Text t
    )

Examples

Font fnt = new Font("samples/font/arial.ttf", 12);
Text t1 = new Text(font);
Text t2 = new Text(font);
t1("My new string");
t2(t1); // now both t's draw 'My new string' on screen.

Meta