/usr/share/mozart/doc/wp/node33.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>6.1 Getting Started</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node32.html">- Up -</A></TD><TD><A href="node34.html#section.canvas.barchart">Next >></A></TD></TR></TABLE><DIV id="section.canvas.widgets"><H2><A name="section.canvas.widgets">6.1 Getting Started</A></H2><DIV class="apropos"><P class="margin">items</P><P> A canvas widget displays <A name="label268"></A><EM>items</EM>. An item is created with the <CODE>create</CODE> command, followed by coordinates and options. The number of coordinates and the options depend on the particular type of item to be created. An item is of one the following types: </P><DL><DT><CODE>arc</CODE> </DT><DD><P><A name="label270"></A>An arc item displays a piece of a circle. </P></DD><DT><CODE>bitmap</CODE> </DT><DD><P><A name="label272"></A>A bitmap item displays a bitmap with a given name. </P></DD><DT><CODE>image</CODE> </DT><DD><P><A name="label274"></A>Displays an image. </P></DD><DT><CODE>line</CODE> </DT><DD><P><A name="label276"></A>A line item consists of several connected segments. It is possible to configure line items such that Bézier splines are used. </P></DD><DT><CODE>oval</CODE> </DT><DD><P><A name="label278"></A>An oval can either be a circle or an ellipsis. </P></DD><DT><CODE>polygon</CODE> </DT><DD><P><A name="label280"></A>A polygon is described by three or more line segments. As with line items, it is possible to use Bézier splines. </P></DD><DT><CODE>rectangle</CODE> </DT><DD><P><A name="label282"></A>Displays a rectangle. </P></DD><DT><CODE>text</CODE> </DT><DD><P><A name="label284"></A>Displays text consisting of a single or several lines. </P></DD><DT><CODE>window</CODE> </DT><DD><P><A name="label286"></A>Displays a widget in the canvas where the canvas widget serves as geometry manager for the widget. </P></DD></DL><P> </P></DIV><P> For example, <A name="label288"></A> </P><DL class="anonymous"><DD class="code"><CODE>C={New Tk<SPAN class="keyword">.</SPAN>canvas tkInit(parent:W)}<BR>{Tk<SPAN class="keyword">.</SPAN>send pack(C)}<BR>{C tk(create rectangle 10 10 1<SPAN class="keyword">#</SPAN>c 1<SPAN class="keyword">#</SPAN>c fill:red outline:blue)}</CODE></DD></DL><P> creates a red rectangle with a blue outline near to the upper left corner of the canvas widget <CODE>C</CODE>. More information on the different items can be found in <A href="../tcltk/TkCmd/canvas.htm"><KBD>canvas</KBD></A>. </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node32.html">- Up -</A></TD><TD><A href="node34.html#section.canvas.barchart">Next >></A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian Schulte</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|