custom vfunc problem
- From: Ian Martin <martin_id vodafone co nz>
- To: Gtkmm List <gtkmm-list gnome org>
- Subject: custom vfunc problem
- Date: Mon, 21 Mar 2016 15:30:44 +1300
Hi,
I'm slowly working my way through clutter trying to wrap it. I've come
up against a recurring problem where the C functions work but the
wrapped functions don't; looking at the clutter source, I think the
problem might be that the vfuncs are listed in the class_init function
with a _real_ qualifier:
klass->show = clutter_actor_real_show;
klass->show_all = clutter_actor_show;
klass->hide = clutter_actor_real_hide;
klass->hide_all = clutter_actor_hide;
klass->map = clutter_actor_real_map;
etc, and then in the source files this sort of thing happens:
if (CLUTTER_ACTOR_GET_CLASS (self)->allocate ==
clutter_actor_real_allocate)
goto check_layout;
which would mean that if every C++ instance is derived, it won't call
the base class function; if possible, I should be pointing the vfuncs to
the _real_ method, but as they're not declared in the headers this won't
work either.
Is that correct? Is there an example in another wrapped library of this
being done successfully?
Ian.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]