10-24-2006
Try taking it in the other direction -- build a commandline client, then once you have that working, add GTK windows and such. Building it top-down will mean you'll be stuck changing the GUI every 5 minutes, and the code will end up scattered in callbacks instead of ordered rationally.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
A very n00b question: After compiling and installing software, where does the original source code reside? I'd like to study the source code of some of the ports I've installed. Thanks! :D (1 Reply)
Discussion started by: Aaron Van
1 Replies
2. Shell Programming and Scripting
I'm new to PERL, but I want to take the page source and write it to a file or standard output. I used perl.org as a test website. Here is the script:
use strict;
use warnings;
use LWP::Simple;
getprint('http://www.perl.org') or die 'Unable to get page';
exit 0;
... (1 Reply)
Discussion started by: wxornot
1 Replies
3. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
4. UNIX for Dummies Questions & Answers
Sir please tell me where can i get source code for some unix kernal and shell also. (1 Reply)
Discussion started by: VIPUL15
1 Replies
5. Shell Programming and Scripting
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
finally {
if (null != hibernateSession && hibernateSession.isOpen()) {
//hibernateSession.close();
}
}
It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies
6. Linux
I need the source code of fedora.
plz plz plz help me........... (1 Reply)
Discussion started by: neh
1 Replies
7. Shell Programming and Scripting
Need assistance in Source code compilation .
When installing a software compiling a source code . Whatever the output that prints on the screen i want to log it into a file. How can i see output and store the output to file
./configure
make
make install
Is there other way of seeing output... (5 Replies)
Discussion started by: ajayram_arya
5 Replies
8. UNIX for Dummies Questions & Answers
hii...
i am a biginner....and i have linux source code ,downloaded from some website ,a compressed file on windows and dont know how do compile them..... (4 Replies)
Discussion started by: M K Raju
4 Replies
LEARN ABOUT CENTOS
glutcreatesubwindow
UNTITLED
LOCAL UNTITLED
NAME
glutCreateSubWindow -- Create a subwindow
LIBRARY
OpenGLUT - window
SYNOPSIS
#include <openglut.h>
int
glutCreateSubWindow(int parentID, int x, int y, int w, int h);
PARAMETERS
parentID Parent window identifier
x Horizontal position of subwindow
y Vertical position of subwindow
w Width of subwindow
h Height of subwindow
DESCRIPTION
In almost every regard that is important to you, a subwindow is like a top-level window. It has a window id; it has its own set of event
callbacks; you can render to it; you are notified of its creation; ...
A subwindow lives inside of some other window (possibly a top-level window, possibly another subwindow). Because of this, it generally only
interacts with other windows of your own creation, hence it is not subjected to a window manager. This is the primary source for its differ-
ences from a top-level window:
- There are no borders or decorations.
- There is no title bar, hence no title.
- Requests tend to be acted on a little more directly, without interference from a window manager.
- The subwindow inherits the display mode of its parent.
Like a top-level window, you must register a display callback function if you wish to use glutMainloop().
A notable case where this function can fail is for offscreen windows. A coherent concept of a subwindow of an offscreen window would intro-
duce more complication than is presently believed to be worthwhile. Attempting such a window presently just fails. Failure is denoted by a
0 window id being returned.
Subwindows can be very useful for partitioning a window into GUI elements: They have their own input callbacks, so you don't have to figure
out which window an event is for. Graphics are clipped to the boundaries of your subwindows, so you do not need to worry much about where
your drawing goes. Because windows and subwindows work almost identically from the perspective of a GLUT program, it is relatively easy to
move a cluster of related controls into a separate top-level window---or, conversely, embed what was a top-level window inside of another
window. OpenGLUT can also report some basic statistics about your (sub)window, relieving you of the duty of tracking all of that information
for yourself.
SEE ALSO
glutCreateWindow(3) glutDestroyWindow(3) glutCreateMenuWindow(3)
Epoch