Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

glut_winmisc.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <GL/glut.h>
#include "glutint.h"

Go to the source code of this file.


Functions

void glutSetWindowTitle (char *title)
void glutSetIconTitle (char *title)
void glutPositionWindow (int x, int y)
void glutReshapeWindow (int w, int h)
void glutPopWindow (void)
void glutPushWindow (void)
void glutIconifyWindow (void)
void glutShowWindow (void)
void glutHideWindow (void)

Function Documentation

void glutHideWindow void   
 

Definition at line 102 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_MAP_WORK.

00103 {
00104   __glutCurrentWindow->desiredMapState = WithdrawnState;
00105   __glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
00106 }

void glutIconifyWindow void   
 

Definition at line 87 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_MAP_WORK.

00088 {
00089   assert(!__glutCurrentWindow->parent);
00090   __glutCurrentWindow->desiredMapState = IconicState;
00091   __glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
00092 }

void glutPopWindow void   
 

Definition at line 71 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_CONFIGURE_WORK.

00072 {
00073   __glutCurrentWindow->desiredStack = Above;
00074   __glutCurrentWindow->desiredConfMask |= CWStackMode;
00075   __glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
00076 }

void glutPositionWindow int    x,
int    y
 

Definition at line 50 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_CONFIGURE_WORK.

00051 {
00052   __glutCurrentWindow->desiredX = x;
00053   __glutCurrentWindow->desiredY = y;
00054   __glutCurrentWindow->desiredConfMask |= CWX | CWY;
00055   __glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
00056 }

void glutPushWindow void   
 

Definition at line 79 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_CONFIGURE_WORK.

00080 {
00081   __glutCurrentWindow->desiredStack = Below;
00082   __glutCurrentWindow->desiredConfMask |= CWStackMode;
00083   __glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
00084 }

void glutReshapeWindow int    w,
int    h
 

Definition at line 59 of file glut_winmisc.c.

References __glutPutOnWorkList(), __glutWarning(), and GLUT_CONFIGURE_WORK.

00060 {
00061   if(w <= 0 || h <= 0) 
00062     __glutWarning("glutReshapeWindow: non-positive width or height not allowed");
00063 
00064   __glutCurrentWindow->desiredWidth = w;
00065   __glutCurrentWindow->desiredHeight = h;
00066   __glutCurrentWindow->desiredConfMask |= CWWidth | CWHeight;
00067   __glutPutOnWorkList(__glutCurrentWindow, GLUT_CONFIGURE_WORK);
00068 }

void glutSetIconTitle char *    title
 

Definition at line 35 of file glut_winmisc.c.

00036 {
00037   XTextProperty textprop;
00038 
00039   assert(!__glutCurrentWindow->parent);
00040   textprop.value = (unsigned char *) title;
00041   textprop.encoding = XA_STRING;
00042   textprop.format = 8;
00043   textprop.nitems = strlen(title);
00044   XSetWMIconName(__glutDisplay,
00045     __glutCurrentWindow->win, &textprop);
00046   XFlush(__glutDisplay);
00047 }

void glutSetWindowTitle char *    title
 

Definition at line 20 of file glut_winmisc.c.

00021 {
00022   XTextProperty textprop;
00023 
00024   assert(!__glutCurrentWindow->parent);
00025   textprop.value = (unsigned char *) title;
00026   textprop.encoding = XA_STRING;
00027   textprop.format = 8;
00028   textprop.nitems = strlen(title);
00029   XSetWMName(__glutDisplay,
00030     __glutCurrentWindow->win, &textprop);
00031   XFlush(__glutDisplay);
00032 }

void glutShowWindow void   
 

Definition at line 95 of file glut_winmisc.c.

References __glutPutOnWorkList(), and GLUT_MAP_WORK.

00096 {
00097   __glutCurrentWindow->desiredMapState = NormalState;
00098   __glutPutOnWorkList(__glutCurrentWindow, GLUT_MAP_WORK);
00099 }
 

Powered by Plone

This site conforms to the following standards: