nanogui: Mouse pointer does not change in FLTK + nxlib + nano-X


Previous by date: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Martin Kajdas
Next by date: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Greg Haerr
Previous in thread: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Martin Kajdas
Next in thread: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Greg Haerr

Subject: RE: [nanogui] Mouse pointer does not change in FLTK + nxlib + nano-X
From: "Martin Kajdas" ####@####.####
Date: 24 Feb 2006 17:19:12 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914DD@mkmail.MKPROD.COM>

While on the topic, I would like to implement function XRecolorCursor.
It seems simple to do.
Any reasons against it?
What would be the easiest way to change foreground/background color of a cursor in microwindows?
Martin

The description is:

Synopsis:
XRecolorCursor(display, cursor, foreground_color, background_color)
Display *display;
Cursor cursor;
XColor *foreground_color, *background_color; 

Arguments:
display Specifies a connection to an X server; returned from XOpenDisplay(). 

cursor: Specifies the cursor ID. 
foreground_color: Specifies the red, green, and blue (RGB) values for the foreground. 
background_color: Specifies the red, green, and blue (RGB) values for the background. 

Description:
XRecolorCursor() applies a foreground and background color to a cursor. Cursors are normally created using a single plane pixmap, composed of 0's and 1's, with one pixel value assigned to 1's and another assigned to 0's. XRecolorCursor() changes these pixel values. If the cursor is being displayed on a screen, the change is visible immediately. On some servers, these color selections are read/write cells from the colormap, and can't be shared by applications. 

Structures:
typedef struct {
unsigned long pixel;
unsigned short red, green, blue;
char flags; 
/* DoRed, DoGreen, DoBlue */ char pad; } XColor; 

Errors:
BadCursor 

Previous by date: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Martin Kajdas
Next by date: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Greg Haerr
Previous in thread: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Martin Kajdas
Next in thread: 24 Feb 2006 17:19:12 +0000 Re: Mouse pointer does not change in FLTK + nxlib + nano-X, Greg Haerr


Powered by ezmlm-browse 0.20.