Table Of Contents
1
Introduction
1.1
Conventions
1.2
Getting
EZwgl
1.3
Credits
1.4
License
2
Using The
EZ
Widget Library
2.1
Data Types
2.2
Structure of an
EZwgl
Application
2.2.1
Example 1, Hello World
2.2.2
Compling and Linking
2.2.3
Running an
EZwgl
Application
2.3
The
EZwgl
Header File
2.4
Initialization
2.4.1
Setting the Default Background
2.4.2
Setting the Default Fonts
2.4.3
Disable Button Highlighting/Offseting
2.4.4
Disable Slider Depression
2.4.5
Disable Image Dithering
2.5
Creating and Configuring Widgets
2.5.1
Options for Configuring the Geometry
2.5.2
Options for Configuring Border and Padding
2.5.3
Options for Setting Foreground/Background Color
2.5.4
Options for Arranging Children Widgets
2.5.5
Options for Setting Client Data
2.5.6
Miscellaneous Attributes
2.5.7
Options for Setting a Label
2.5.8
Setting the Return Value for a Menu Item
2.5.9
About Pixmap Labels
2.5.10
Other Configuration Routines
2.5.11
Example 2, The 15 Puzzle
2.5.12
Example 3, A DirTree
2.6
Registering Callbacks and Event Handlers
2.6.1
Prototypes for Callbacks and Event Handlers
2.6.2
Example 4, Button with a Menu
2.6.3
Example 5, Button with a Menu Again
2.6.4
Example 6, Read the Pixel
2.6.5
Registering Widget Callbacks
2.6.6
Registering Event Handlers
2.7
Displaying a Widget
2.8
Processing Events
2.8.1
Example 7, Catch the Moving Label
2.9
Widget Interaction Functions
2.9.1
Setting and Extracting Client Data
2.9.2
Inquring about the Geometry of a Widget
2.9.3
Disable a Widget
2.9.4
Destroying a Widget
2.9.5
Temporarily Freezing a Widget
2.9.6
Hiding a Widget
2.9.7
Grabing a Widget
2.9.8
Example 8, A Dialogue
2.9.9
Focusing a Widget
2.9.10
Example 9, The Dialogue Again
2.9.11
Destroying Widget Windows
2.10
Writting a Client Message Handler
2.10.1
Example 10, A ClientMessage handler
3
The
EZ
Widgets
3.1
Frames
3.2
ListTree
3.2.1
Special Configuration Options
3.2.2
Interaction Routines
3.3
Icons
3.4
Fancy ListBoxes
3.4.1
Special Configuration Options
3.4.2
Interaction Routines
3.4.3
An Example
3.5
Executors
3.5.1
Interaction Routines
4
Events
4.1
X Events
4.1.1
Global Variables
4.1.2
Symbolic Event Names
4.1.3
A Sample Event Handler
4.1.4
Enter Events
5
Using the Graphics Library
5.1
Getting Started
5.1.1
Example G1, A Polygon
5.2
The 3DCanvas Widget
5.3
The Color Map
5.4
Setting the Display Mode
5.4.1
Choosing a Color Mode
5.4.2
Choosing a Back Buffer
5.4.3
Choosing a Shading Model
5.4.4
Clear Color
5.4.5
Example G2, The Sine Curve
5.5
EZ_Enable and EZ_Disable
5.6
Default State Attributes
5.7
Manipulating Matrices
5.7.1
Example G3, Using Matrices
5.8
Specifying Geometric Objects
5.8.1
EZ_Begin and EZ_End
5.8.2
A Brief Description of Geometrical Primitives
5.8.3
EZ_Vertex{23}f{v} and EZ_Normal3f{v}
5.9
Lighting
5.9.1
Example G4, Lighting
5.9.2
Setting Light Source Properties
5.9.3
Setting Light Model Properties
5.9.4
Setting Material Properties
5.9.5
Convinence Routines
5.10
ColorMaterial
5.11
Logical Operations
5.12
Fog
5.13
Text
5.14
Polyhedra, Sphere and Tube
5.14.1
Tetrahedron
5.14.2
Cube
5.14.3
Octahedron
5.14.4
Dodecahedron
5.14.5
Icosahedron
5.14.6
Sphere
5.14.7
Tube
5.15
Polygon Modes
5.16
Display Lists
5.17
Miscellaneous Commands
HTML Documentation Maintainance:
Arturo Espinosa <arturo@nuclecu.unam.mx>