1 ! Copyright (C) 2009 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors arrays kernel tools.test ui.gadgets.editors
4 ui.gadgets.line-support ui.gadgets.line-support.private ui.text ;
8 { 0 0 } <multiline-editor>
9 [ 1 >>min-rows line-gadget-height ]
15 { 0 0 } <multiline-editor>
16 [ 1 >>min-cols line-gadget-width ]
23 [ 1 >>min-rows 1 >>min-cols pref-viewport-dim* ] [
24 [ font>> "m" text-width ] [ line-height ] bi 2array