mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-02 06:50:05 +00:00
Add cursor position (screen coordinates) to mouse picking
This commit is contained in:
parent
f158c4174c
commit
9ebc859756
13 changed files with 55 additions and 23 deletions
|
|
@ -38,13 +38,17 @@ public:
|
|||
* @brief Run mouse picking on the draw item.
|
||||
*
|
||||
* @param [in] params Custom layer render parameters
|
||||
* @param [in] mousePos Mouse cursor location in map screen coordinates
|
||||
* @param [in] mouseLocalPos Mouse cursor widget position
|
||||
* @param [in] mouseGlobalPos Mouse cursor screen position
|
||||
* @param [in] mouseCoords Mouse cursor location in map screen coordinates
|
||||
*
|
||||
* @return true if the draw item was picked, otherwise false
|
||||
*/
|
||||
virtual bool
|
||||
RunMousePicking(const QMapLibreGL::CustomLayerRenderParameters& params,
|
||||
const glm::vec2& mousePos);
|
||||
const QPointF& mouseLocalPos,
|
||||
const QPointF& mouseGlobalPos,
|
||||
const glm::vec2& mouseCoords);
|
||||
|
||||
protected:
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue