Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2083

ciao-1.10p8-3mdv2010.0.i586.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 -->

<LINK rel="stylesheet" href="ciao.css" type="text/css">
<TITLE>The Ciao Prolog System               - shape_class (library)</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_137.html">previous</A>, <A HREF="ciao_139.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC578" HREF="ciao_toc.html#TOC578">shape_class (library)</A></H1>
<P>
<A NAME="IDX6442"></A>


<P>
<STRONG>Author(s):</STRONG> Montserrat Urraca.


<P>
<STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST)


<P>
<STRONG>Version of last change:</STRONG> 1.9#146 (2003/12/4, 17:34:49 CET)



<UL>
<LI><A HREF="ciao_138.html#SEC579">Usage and interface (shape_class)</A>
<LI><A HREF="ciao_138.html#SEC580">Documentation on exports (shape_class)</A>
</UL>



<H2><A NAME="SEC579" HREF="ciao_toc.html#TOC579">Usage and interface (<CODE>shape_class</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(shape_class)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX6443"></A>
<CODE>bg_color/1</CODE>, 
<A NAME="IDX6444"></A>
<CODE>border_width/1</CODE>, 
<A NAME="IDX6445"></A>
<CODE>shape_class/0</CODE>, 
<A NAME="IDX6446"></A>
<CODE>shape_class/1</CODE>.

</UL>

<LI><STRONG>Other modules used:</STRONG>


<UL>

<LI><EM>System library modules:</EM>

<A NAME="IDX6447"></A>
<CODE>objects/objects_rt</CODE>, 
<A NAME="IDX6448"></A>
<CODE>tcltk_obj/canvas_class</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC580" HREF="ciao_toc.html#TOC580">Documentation on exports (<CODE>shape_class</CODE>)</A></H2>
<P>
<A NAME="IDX6449"></A>
<A NAME="IDX6450"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>bg_color/1:</B>
<DD><A NAME="IDX6451"></A>


<P>
<STRONG>Usage 1:</STRONG> <CODE>bg_color(+BackgroundColor)</CODE>

<UL>
<LI><EM>Description:</EM> <CODE>Background Color</CODE> specifies the color to use for drawing the shape's outline. This option defaults to black.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+BackgroundColor</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

<P>
<STRONG>Usage 2:</STRONG> <CODE>bg_color(-BackgroundColor)</CODE>

<UL>
<LI><EM>Description:</EM> Gets the shape <CODE>Background Color</CODE>.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>-BackgroundColor</CODE> is currently instantiated to an atom.
 (<CODE>term_typing:atom/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX6452"></A>
<A NAME="IDX6453"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>border_width/1:</B>
<DD><A NAME="IDX6454"></A>


<P>
<STRONG>Usage 1:</STRONG> <CODE>border_width(+Width)</CODE>

<UL>
<LI><EM>Description:</EM> Specifies the <CODE>Width</CODE> that the canvas widget should request from its geometry manager.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Width</CODE> is a number.
 (<CODE>basic_props:num/1</CODE>)
</UL>

<P>
<STRONG>Usage 2:</STRONG> <CODE>border_width(-Width)</CODE>

<UL>
<LI><EM>Description:</EM> Gets the <CODE>Width</CODE> of the canvas widget.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>-Width</CODE> is a number.
 (<CODE>basic_props:num/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX6455"></A>
<A NAME="IDX6456"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>shape_class/0:</B>
<DD><A NAME="IDX6457"></A>


<P>
<STRONG>Usage:</STRONG> 

<UL>
<LI><EM>Description:</EM>  Creates a new shape object.

</UL>

</DL>

<P>
<A NAME="IDX6458"></A>
<A NAME="IDX6459"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>shape_class/1:</B>
<DD><A NAME="IDX6460"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>shape_class(+ShapeList)</CODE>

<UL>
<LI><EM>Description:</EM> Adds shapes of the list to the canvas object.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+ShapeList</CODE> is a list.
 (<CODE>basic_props:list/1</CODE>)
</UL>

</DL>

<P><HR><P>
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_137.html">previous</A>, <A HREF="ciao_139.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>