Community
Participate
Working Groups
While fixing 309753 there was some confusion on my part about what TreeItem.getBounds() is really returning. It should return the bounds of the text portion of the item, but it's not clear from the javadoc that that is the case. If there is an image set for the item it isn't part of the bounds. Likewise, there's no documentation that I can find about SWT.MeasureItem, EraseItem and PaintItem. The snippets show how they are being used, but there's no documentation about the values sent in the event.
The missing API spec for custom draw is part of bug 81334. As a side note (not implying that this is a substitute for the javadoc) custom draw is described in http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html . The javadoc for getBounds() has been clarified for Table/Tree > 20100521.