MouseInfo Struct Reference

#include <customgui_listview.h>

Inheritance diagram for MouseInfo:

Detailed Description

Tree/List view mouse information.

Public Attributes

Float mx
 
Float my
 
Int32 button
 
Float mxRelative
 
Bool startDrag
 
Bool startpaint
 
Bool inpaint
 
const BaseContainerinputmsg
 
- Public Attributes inherited from CellInfo
GeUserAreaframe
 
Int32 xpos
 
Int32 ypos
 
Int32 width
 
Int32 height
 
Int32 line
 
Int32 col
 

Member Data Documentation

◆ mx

Float mx

The mouse X coordinate.

◆ my

Float my

The mouse Y coordinate.

◆ button

Int32 button

The mouse button: MOUSEINFO_BUTTON.

◆ mxRelative

Float mxRelative

The mouse position relative to the end of the horizontal tree lines.
Usually mouse coordinates are in list view space. This can become difficult when the user clicks into the LV_USERTREE column, hence this member.

◆ startDrag

Bool startDrag

Not used.

◆ startpaint

Bool startpaint

This is needed in the Layer Manager. The user can change the state of the column by clicking somewhere and dragging the mouse.
To start this drag, set startpaint = true in TreeViewFunctions::MouseDown().

◆ inpaint

Bool inpaint

This is needed in the Layer Manager. The user can change the state of the column by clicking somewhere and dragging the mouse.
TreeViewFunctions::MouseDown() will be called for each line with inpaint = true.

◆ inputmsg

const BaseContainer* inputmsg

The container originally sent to the InputEvent() of the tree view's user area. Always != nullptr.