[java-gnome-hackers] Layout size related methods
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2008-09-16 07:15:17
|
Vreixo, I've been working on the 'pango' branch. I'd like to include it in 4.0.9 as it nicely complements the 'textview' work. I'm a bit concerned about the size related methods in Layout. I've taken an number of different cracks at it, and now I've got it to: getSizeWidth() getSizeHeight() and getPixelWidth() getPixelHeight() which seems to be a fairly decent stab at regularizing the completion space. Still, I'm not 100% about it. Part of my doubt is that now that we've got these normalized, these methods now seem to return the same thing - just the sort of thing to make me somewhat unconvinced that we actually need both pairs. That said, it is probably best we leave both sets there - there is return type to be considered. The real issue, of course, is *explaining* what the difference is, and that's where I got a bit vague. I have a hunch that it is the whole points vs device units vs pixels thing that I'm getting confused by. And, of course, just to spice things up, none of these have anything to do with Layout's setWidth() but its probably best to leave that one alone too [I am tempted by setWrapWidth()]. For now I added some extra emphasis to its documentation in an attempt to make things clear. My work (building on yours) is at 'hackers/andrew/pango'. AfC Sydney |