A
download xwins.h
Language: C
LOC: 24
Project Info
MultiSlice RTP Environment(yhs)
Server: SourceForge
Type: cvs
...eForge\y\yhs\yhs\root\root\
   app_glob.c
   command_run.c
   command_slice.c
   ctomass.c
   edge.c
   editing_tools.c
   exit.c
   FILE_ID.DIZ
   file_viewer.c
   file2.raw
   filters.c
   glxdino.c
   glxmotif.c
   glxsimple.c
   gpl.html
   icon.h
   initapp.c
   inject.c
   label.c
   log.h
   logmen.h
   logo.h
   main.h
   makefile.32
   makefile.64
   makefile.f32
   measure.c
   menu.c
   multislice.c
   neighbour.c
   open.c
   open.old.c
   paperplane.c
   print.c
   program1.c
   region.c
   region_ops.c
   save.c
   slice.c
   split_merge.c
   textfun.c
   version.c
   viewslice.c
   wals.study
   watershed.c
   xbutton.c
   xmenu.c
   xwins.h
   xwinutil.c
   ys_ext.c
   zoom.c
   zoom2.c

/*  File: xwins.h
 *
 *  Defines data structures for windows
 *
 */
#ifndef XWINS_H
#define XWINS_H

#include <stdlib.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>

typedef struct XWIN
{
    Window   xid;
    Window   parent;
    void     *data;
    int      (*event_handler)();
} XWIN;

/* Function prototypes */
void xwin_init(/* void */);
XWIN *MakeXButton(/* int x, int y,
      unsigned width, unsigned height, unsigned bdwidth,
      unsigned long bdcolor, unsigned long bgcolor,
      Window parent, char *text, int (*button_action)(),
      caddr_t action_data */);

XWIN *MakeXMenu(/*int x, int y, unsigned bdwidth,
      unsigned long bdcolor, unsigned long bgcolor,
      Window parent, int style,...*/);

/* Global variable */
#ifdef XWIN_UTIL

XContext      xwin_context;

#else

extern XContext       xwin_context;

#endif /* #ifdef XWIN_UTIL */

#endif /* #ifndef XWINS_H */

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us