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 gui
    
    _main_
    Component root {
      Frame f ("myFrame", 0, 0, 500, 500)
      String s = "x: " + f.move.x + " y: " + f.move.y
      TextPrinter log
      s => log.input
    }
    
    run root
    run syshook