TextPrinter

Constructor

TextPrinter <id>

Action

Prints the input value on the console each time it is updated.

Predefined children

  • TextProperty: input.
  • Example

    
    use core
    use base
    use display
    use gui
    
    _main_
    Component root {
      Frame f ("myFrame", 0, 0, 500, 500)
      TextPrinter log
      "x: " + toString (f.move.x) + " y: " + toString (f.move.y) => log.input
    }