[Top][All Lists]

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


From: Patrick
Subject: Re: MEVENT
Date: Mon, 10 Aug 2015 09:14:29 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

On 08/10/2015 08:55 AM, Thomas Dickey wrote:
----- Original Message -----
| From: "Patrick" <address@hidden>
| To: "Ncurses Mailing List" <address@hidden>
| Sent: Monday, August 10, 2015 8:31:58 AM
| Subject: MEVENT
| Hi Guys
| Probably a silly question coming up.....
| WINDOW is used though pointers but MEVENT is not, why is that?

I see only pointers for MEVENT, as well.

Hi Thomas :)

Maybe I just have the wrong examples. From Dan Gookin's Programmer's guide to ncurses page 161 it says: Unlike the WINDOW type of pointer you do not specify a * when declaring a mouse event variable. But you do use the & when specifying the variable name in the getmouse() function.
MEVENT musevent ;
getmouse(&musevent) ;

Can this be safely ignored and can I just use MEVENT as WINDOW  like so?
MEVENT * mevent_via_ptr ;
getmouse(mevent_via_ptr) ;

Thanks for your valuable time ! -Patrick

reply via email to

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