09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Rotate(w, a, x, y, z,. . . ) rotates subsequent objects drawn on 3D window w by angle a degrees, in<br />

the direction (x,y,z). The display list element is returned.<br />

Scale(w, x, y, z) : record<br />

scale objects<br />

Scale(w, x, y, z,. . . ) scales subsequent objects drawn on 3D window w according to the given<br />

coordinates. The display list element is returned.<br />

Texcoord(w, x, y, ...) : list<br />

define texture coordinates<br />

Texcoord(W, x 1 , y 1 , . . . , x n , y n ) sets the texture coordinates to x 1 , y 1 , . . . , x n , y n in 3D window<br />

w. Each x, y, pair forms one texture coordinate. Texcoord(W, L) sets the texture coordinates to<br />

those specified in the list L. Texcoord(W, s) sets the texture coordinates to those specified by s.<br />

The string s must be “auto” otherwise the procedure will fail. In all cases the display list element<br />

is returned.<br />

TextWidth(w, s) : integer<br />

pixel width of text<br />

TextWidth(w,s) computes the pixel width of string s in the font currently defined for window w.<br />

Texture(w, s) : record<br />

apply texture<br />

Texture(w, s) specifies a texture image that is applied to subsequent objects drawn on 3D window<br />

w. The string s specifies the texture image as a filename, a string of the form width,pallet,data<br />

or width,#,data, where pallet is a pallet from the <strong>Unicon</strong> 2D graphics facilities and data is the<br />

hexadecimal representation of an image. Texture(w1, w2) specifies that the contents of 2D or 3D<br />

window w2 be used as a texture image that is applied to subsequent objects on the window w1.<br />

The display list element is returned.<br />

Translate(w, x, y, z, ...) : record<br />

translate object positions<br />

Translate(w, x, y, z,. . . ) moves objects drawn subsequently on 3D window w in the direction<br />

(x,y,z). The display list element is returned.<br />

Uncouple(w) : window<br />

release binding<br />

Uncouple(w) releases the binding associated with file w. Uncouple() closes the window only if all<br />

other bindings associated with that window are also closed.<br />

WAttrib(w, s1, ...) : x, ...<br />

generate or set attributes<br />

WAttrib(w, s1, ...) retrieves and/or sets window and context attributes. If called with exactly one<br />

attribute, integers are produced for integer-value attributes; all other values are represented by<br />

strings. If called with more than one attribute argument, WAttrib() produces one string result per<br />

argument, prefixing each value by the attribute name and an equals sign (=). If xi is a window,<br />

subsequent attributes apply to xi. WAttrib() fails if an attempt is made to set the attribute font,<br />

fg, bg, or pattern to a value that is not supported. A run-time error occurs for an invalid attribute<br />

name or invalid value.<br />

WDefault(w, program, option) : string<br />

query user preference<br />

WDefault(w,program,option) returns the value of option for program as registered with the X<br />

resource manager. In typical use this supplies the program with a default value for window<br />

39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!