comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda callback and event
Date: Sun, 5 Sep 2021 17:12:44 +0200	[thread overview]
Message-ID: <sh2mpb$950$2@gioia.aioe.org> (raw)
In-Reply-To: 6134dc71$0$3693$426a74cc@news.free.fr

On 2021-09-05 17:04, DrPi wrote:
> Le 05/09/2021 à 16:58, DrPi a écrit :
>> Le 05/09/2021 à 16:48, Dmitry A. Kazakov a écrit :
>>> On 2021-09-05 15:50, DrPi wrote:
>>>> Le 05/09/2021 à 00:29, Dmitry A. Kazakov a écrit :
>>>
>>>> With "Gtk.Arguments.Unchecked_To_Gdk_Event_Motion (Params, 1);" , I 
>>>> get an error :
>>>> expected private type "C_GValues" defined at glib-values.ads:53
>>>> found private type "GValues" defined at glib-values.ads:48
>>>
>>> I see, then you must to implement it yourself. It could be something 
>>> like this (not tested):
>>>
>>>     package Conversions is
>>>        new System.Address_To_Access_Conversions (Gdk_Event_Motion);
>>>
>>>     Event : Gdk_Event_Motion renames
>>>             Conversions.To_Pointer (Get_Address (Nth (Params, 1))).all;
>>>
>>
>> So, Gtk.Arguments.Unchecked_To_Gdk_Event_Motion is useless ?
> Like all subprograms accepting C_GValues as a parameter ?

It is a part of GValues object. But you could create a child package 
that would have access to the internals of GValue and get access to 
C_GValues in GValue.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2021-09-05 15:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-04 21:39 GtkAda callback and event DrPi
2021-09-04 22:29 ` Dmitry A. Kazakov
2021-09-05 13:50   ` DrPi
2021-09-05 14:48     ` Dmitry A. Kazakov
2021-09-05 14:58       ` DrPi
2021-09-05 15:04         ` DrPi
2021-09-05 15:12           ` Dmitry A. Kazakov [this message]
2021-09-05 15:20             ` DrPi
2021-09-05 15:53               ` Dmitry A. Kazakov
2021-09-05 20:49                 ` DrPi
2021-09-09  6:56                   ` Emmanuel Briot
2021-09-09  7:57                     ` DrPi
2021-09-09 18:41                       ` Jere
2021-09-09 19:58                         ` Dmitry A. Kazakov
2021-09-09 21:01                           ` Jere
2021-09-10  6:38                             ` Dmitry A. Kazakov
2021-09-10  6:56                               ` Emmanuel Briot
2021-09-10 20:42                                 ` DrPi
2021-09-10 20:58                                   ` Dmitry A. Kazakov
2021-09-11  7:38                                     ` Emmanuel Briot
2021-09-11 15:24                                     ` DrPi
2021-09-11 15:56                                       ` Dmitry A. Kazakov
2021-09-12  7:08                                       ` AdaMagica
2021-09-12  8:52                                         ` Dmitry A. Kazakov
2021-09-12 13:00                                           ` DrPi
2021-09-12 13:57                                             ` Dmitry A. Kazakov
2021-09-10 20:46                                 ` Dmitry A. Kazakov
2021-09-11  7:36                                   ` Emmanuel Briot
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox