paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] PG_CURSOR_MODE in documentation?


From: Ulf Lorenz
Subject: Re: [paragui-users] PG_CURSOR_MODE in documentation?
Date: Mon, 2 Jan 2006 23:44:30 +0100
User-agent: Mutt/1.5.11

On Sat, Dec 31, 2005 at 04:53:01PM -0700, Paul Gaynor wrote:
> Hi,
> 
>       How does PG_CURSOR_MODE work?  I can't seem to find anything about it
> in the docs or source?

1. Call PG_Application::ShowCursor with on eof the arguments (enum
within PG_Application, i.e. always prepend a PG_Application::)

    QUERY   - returns the current cursor handling
    NONE    - completely disables cursor drawing. You won't see any
              trace of the mouse cursor
    HARDWARE - uses the standard cursor form SDL
    SOFTWARE - paragui draws the cursor

2. In the case you want to use paragui's cursor drawing, you then call
PG_Application::SetCursor and give it the image of your cursor.

Quite straight forward, isn't it?

Some notes:

a) There are some updating issues with the paragui cursor, so it may
happen that you see some artifacts where the cursor was when you hide a
window or so (I can't tell you exactly, it is too long ago when I
disabled it. :)

b) You can also use the SDL functions to specify an own cursor. See
SDL_SetCursor etc. in SDL_mouse.h. The drawback is that SDL can only do
three colours: black, white and transparent.


Ulf

-- 
recursive:
            see recursive




reply via email to

[Prev in Thread] Current Thread [Next in Thread]