On 1/4/06, Hemant Kumar, Noida-1 <[EMAIL PROTECTED]> wrote:
HTML email. Ok, after some munching...![]()
Sorry for sending blank mail it went off accidently..
I am using the API layer->SetCursorShape(layer,mousecursor,hot_x,hot_y)
Now I wanted to know whether we have to associate a image which we want as our mouse cursor to the surface mousecursor and what values have to be passed in hot_x and hot_y.thanx!! in advance for any type of help…J
Yes, you need to associate a corresponding cursor image for a specific cursor. You need to create an image description that is then loaded into the cursor.
As for the hotspot, you need to define this, the graphics drives the position, normallyl it's the upper right corner, 0,0, but for example if you have a cross-hair, it's in the center of the image, and depending on the size you need to calculate the x,y values.
You could take a look how LiTE handles cursors as one way to look at example code, see lite/cursor.c and lite/util.c that takes care of the image loading and creating the image surface for the cursor.. --Kent
_______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
