Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ke Shan
cs349-code
Commits
2b5e44f3
Commit
2b5e44f3
authored
Sep 13, 2017
by
Daniel Vogel
Browse files
x readme
parent
500d3ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
x/readme.md
x/readme.md
+55
-0
No files found.
x/readme.md
0 → 100644
View file @
2b5e44f3
# CS 349 X Windows and XLib Example Code
To make ("compile and link") an example, use the included makefile with
the name of cpp file passed as a variable. For example, to make hello.cpp:
make NAME="hello"
Then, to run:
./hello
Or you can even compile, link, and run in one step:
make run NAME="hello"
## Examples
### Windowing Systems
hello.cpp Draws text in window, demos larger font choice.
null.min.cpp Creates and destroys a display (a good first test to see
if X Windows is working).
openwindow.min.cpp Opens a single blank window (minimal version)
openwindow.cpp Opens a single blank window
### Drawing
drawing.min.cpp Demos drawing and graphics context (minimal version)
drawing.cpp Demos drawing functions and graphics contexts
### Events
eventloop.min.cpp Demos events by displaying mouse motion events
to console (minimal version)
eventloop.cpp Demos events by drawing text at cursor location
animation.cpp Demos animation using non-blocking
event loop.
doublebuffer.cpp Demos double buffering (using same
demo as animation.cpp)
clipping.cpp Demos clipping using a mouse controlled clipping
rectangle to reveal a pattern of random lines.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment