diff options
author | Björn Gustavsson <[email protected]> | 2016-06-27 11:48:03 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-06-27 11:49:57 +0200 |
commit | 6931dce17580d097351dd7be09ce7c9ed3f72827 (patch) | |
tree | 2456845e95ed0112c2f08ed8ab6e867686b91d7a /lib/gs/doc/src/examples/ex15.erl | |
parent | dfccd57cb2b69fc3ab01acd0ccbfc894a8403358 (diff) | |
download | otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.gz otp-6931dce17580d097351dd7be09ce7c9ed3f72827.tar.bz2 otp-6931dce17580d097351dd7be09ce7c9ed3f72827.zip |
Remove the gs application
The gs application ws deprecated in R15B01.
Diffstat (limited to 'lib/gs/doc/src/examples/ex15.erl')
-rw-r--r-- | lib/gs/doc/src/examples/ex15.erl | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/gs/doc/src/examples/ex15.erl b/lib/gs/doc/src/examples/ex15.erl deleted file mode 100644 index 864bdd93b2..0000000000 --- a/lib/gs/doc/src/examples/ex15.erl +++ /dev/null @@ -1,30 +0,0 @@ --module(ex15). --copyright('Copyright (c) 1991-97 Ericsson Telecom AB'). --vsn('$Revision: /main/release/3 $ '). - --export([start/0,init/0]). - -start() -> spawn(ex15, init, []). - -init() -> - I=gs:start(), - Win=gs:create(window, I, - [{width, 400},{height, 250}, - {title,"Font Demo"},{map, true}]), - E = gs:create(canvas, can1,Win, - [{x,0},{y, 0},{width,400},{height,250}]), - Fonts = [{times,19},{screen,16},{helvetica,bold,21}, - {symbol,12},{times,[bold,italic],33},{courier,6}], - show_fonts_in_boxes(Fonts,0), - receive - {gs,_Id,destroy,_Data,_Arg} -> bye - end. - -show_fonts_in_boxes([],_) -> done; -show_fonts_in_boxes([Font|Fonts],Y) -> - Txt = io_lib:format("Hi! ~p",[Font]), - {Width,Height} = gs:read(can1,{font_wh,{Font,Txt}}), - Y2=Y+Height+2, - gs:create(rectangle,can1,[{coords,[{0,Y},{Width,Y2}]}]), - gs:create(text,can1,[{font,Font},{text,Txt},{coords,[{0,Y+1}]}]), - show_fonts_in_boxes(Fonts,Y2+1). |