Next:
Copyright
X WINDOWS
Dr A D Marshall
Room M 1.38
David Marshall 1994
Search for Keywords in X Windows Notes
Keyword Searcher
X COURSEWARE
Lecture notes etc.
Copyright
Books
Why Learn X Windows?
About this Course
Kernighan and Ritchie C
Course Structure
The X Window System
What is X Windows?
Why Use GUIs?
X Window Principles
Background
X System Concepts and definitions
Clients and Servers
Xlib, MOTIF and other Toolkits
The X Programming Model
Xlib
Intinsics
The MOTIF Toolkit
The Window Manager
A First MOTIF Program
What will our program do?
What will we learn from this program?
The
push.c
program
Calling Motif, Xt and Xlib functions
Header Files
Compiling Motif Programs
Basic Motif programming principles
Initializing the toolkit
Widget Creation
Managing Widgets
Events and Callbacks
Principles of Event Handling
Translation tables
Adding callbacks
Declaring callback functions
Finishing off - displaying widgets and event loops
Widget Basics
Primitive Widgets
Gadgets
Manager Widgets
Widget Resources
Shell Widgets
Constraint Widgets
Overriding Resource Defaults
.Xdefaults
file
Dymanic Control
Set Resource at Creation
Strings in Motif
Combining Widgets
How are we going to achieve this?
The RowColumn Widget
Forms
Simple Attachment -
form1.c
Attach positions -
form2.c
Opposite attchment -
form3.c
A more complete form program
The MainWindow Widget and Menus
The MainWindow widget
The MenuBar
A simple MenuBar
PullDown Menus
Other MainWindow children
Dialogs
The WarningDialog
The InformationDialog Widget
The
dialog1.c
program
Error, Working and Question Dialogs
Unwanted Dialog Buttons
The PromptDialog Widget
The
prompt.c
program
Selection and FileSelection Dialogs
User Defined Dialogs
Text Widgets
Text Widget Creation
Putting text into a Text Widget
Example Text Programs -
text.c, file_lister.c
Editing Text
Scrolling Control
Text Callbacks
List Widgets
List selection modes
List basics
Adding and removing list items
Selecting and Deselecting items
List Enquiry
List Callbacks
list.c
program
Scale Widgets
Scale basics
Scale Callbacks
The
scale.c
program
Scale Style
ScrolledWindow and ScrollBar Widgets
ScrolledWindow Widgets
ScrollBar Widgets
Toggle Widgets
Toggle Basics
Toggle Callbacks
The
toggle.c
program
Grouping Toggles
Xlib and Motif
Xlib Basics
Graphics Contexts
Two Dimensional Graphics
XEvents
XEvent Types
Writing Your Own Event Handler
Pixmaps
Colour
The DrawingArea Widget
Creating a DrawingArea Widget
DrawingArea Resources and Callbacks
Using DrawingAreas in Practice
draw.c
- Basic Drawing
draw_input.c
- Input to a DrawingArea
draw_input2.c
- drawing to a pixmap
Colour
Why is colour so complex?
Colour Basics
Displaying Colour
Colour in X/Motif
Colour Database
Explicit Colour Coding
About this document ...