Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Usage of SWT.HOT

Hello Lars, 

I don't know much about SWT.HOT, it's not well documented.

But from what I gather:
- It's related to additional information being drawn when you 'hover' your mouse over a control.  I.e when the mouse is over that control it's 'hot' of sort in the event detail (but I may be wrong?).

Documentation that I could find:
- org.eclipse.e4.ui.internal.css.swt.dom.AbstractControlSelectionEraseListener
// If we're painting the selection we also deal with hotness to be
// consistent (i.e.: hotness is a 'selection preview on hover').
event.detail &= ~SWT.HOT;

- Eclipse Corner:
   https://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html
   SWT.HOT: (@since 3.3) this bit will be set if the mouse hover background will be drawn for this cell (not all platforms draw this)
   (... + other mentions).

It's a bit of a 'niche' event.

If someone knows more about the event, please feel free to share.

Regards

Leo



---
Leo Ufimtsev | Software Engineer @ Red Hat
Email: Leonidas@xxxxxxxxxx
Phone: +1 647-467-3353
IRC:  freenode # swt 
Twitter: @LeoUfimtsev

On Tue, Sep 13, 2016 at 11:57 AM, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Friends of SWT,

I'm looking at the code of CTabFolderRenderer which has special code
for the SWT.HOT case. The Javadoc is very brief about it.

 Event detail field that indicates a user-interface component
* state is hot (value is 1&lt;&lt;5).

Can you explain when this is set? In my testing this code block is not
executed during my usage of the Eclipse IDE.

Best regards, Lars

--
Eclipse Platform UI and e4 project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top