bug-ncurses
[Top][All Lists]
Advanced

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

Re: what is a user pointer


From: Thomas Dickey
Subject: Re: what is a user pointer
Date: Sun, 30 Dec 2001 09:10:10 -0500
User-agent: Mutt/1.2.5i

On Sat, Dec 29, 2001 at 10:30:24PM -0800, Peter Jay Salzman wrote:
> i've been reading the panel man pages and playing around with all the
> functions tonight.
> 
> the man pages make reference to a panel's user pointer which you can get
> and set with the panel_userptr() and set_panel_userptr() functions.
> 
> however, the man pages don't explain what a user pointer is.

it's literally any data that you would like to attach to that panel
instance, allows you to extend the behavior of the library for your
own purposes.  It could be a pointer to a struct, or to a callback
function, or just to a single variable.

(I do have some specific applications in mind, but they're for analogous
libraries that allow one to attach a table of data from which the window's
representation may be generated).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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