Re: Units and resolution independence for gtk+



Hi,

On Fri 08 Aug 2008 18:36, "BJörn Lindqvist" <bjourne gmail com> writes:

> 2008/8/8 David Zeuthen <david fubar dk>:
>> The thinking is that if the feature becomes default then the macro will
>> be resolved to a GtkSize with high bits set at compile time. For 2.x,
>> the thinking is that it will resolve to a function call and the
>> conversion happens at run time, e.g.

This thinking sounds right to me.

>>  GtkSize gtk_size_em (double em);

Good to have the function too.

>> Is this approach a problem for binding authors?

I don't think so personally; there are many possibilities here for doing
the wrapping. An obvious one would be to interpret non-integer size
values as sizes in ems. Or you could have e.g. 2*EM, where EM is an
instance of some special class, that knows how to convert itself to an
int. Something like that.

Regards,

Andy
-- 
http://wingolog.org/


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