Bug 245763 - Need API to get the size of the tree expander
Summary: Need API to get the size of the tree expander
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 06:27 EDT by Francis Upton IV CLA
Modified: 2019-09-06 16:04 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Upton IV CLA 2008-08-30 06:27:58 EDT
I'm drawing lines to and from tree cells.  Drawing from a tree cell is easy, because I can start at the end of TreeItem.getBounds().  However drawing a horizontal line into a tree cell from the left is more difficult.  TreeItem.getImageBounds() is not sufficient as I need to not draw though the expander (on expandable elements).  On Linux there seems to be a way to get the size of this, but I can't get it through any SWT API.

Something like TreeItem.getExpanderBounds() would be nice.  It would be nice if TreeItem.getBounds() returned the x value of the point to the right of the expander (or to the right of the image if there is no expander) -- currently on Linux it returns the right side of the text (which I would expect from TreeItem.getTextBound().)  But I'm sure people are used to it working that way so it cannot be changed.
Comment 1 Kevin Barnes CLA 2008-10-29 11:22:54 EDT
This a request for new API.
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:04:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.