mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	Add ability to install event handlers from mouse picking
This commit is contained in:
		
							parent
							
								
									ff882f5c06
								
							
						
					
					
						commit
						b3e035c53d
					
				
					 26 changed files with 222 additions and 76 deletions
				
			
		|  | @ -1,6 +1,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <scwx/qt/gl/gl.hpp> | ||||
| #include <scwx/qt/types/event_types.hpp> | ||||
| #include <scwx/common/geographic.hpp> | ||||
| 
 | ||||
| #include <memory> | ||||
|  | @ -43,15 +44,17 @@ public: | |||
|     * @param [in] mouseGlobalPos Mouse cursor screen position | ||||
|     * @param [in] mouseCoords Mouse cursor location in map screen coordinates | ||||
|     * @param [in] mouseGeoCoords Mouse cursor location in geographic coordinates | ||||
|     * @param [out] eventHandler Event handler associated with picked draw item | ||||
|     * | ||||
|     * @return true if the draw item was picked, otherwise false | ||||
|     */ | ||||
|    virtual bool | ||||
|    RunMousePicking(const QMapLibreGL::CustomLayerRenderParameters& params, | ||||
|                    const QPointF&            mouseLocalPos, | ||||
|                    const QPointF&            mouseGlobalPos, | ||||
|                    const glm::vec2&          mouseCoords, | ||||
|                    const common::Coordinate& mouseGeoCoords); | ||||
|                    const QPointF&                        mouseLocalPos, | ||||
|                    const QPointF&                        mouseGlobalPos, | ||||
|                    const glm::vec2&                      mouseCoords, | ||||
|                    const common::Coordinate&             mouseGeoCoords, | ||||
|                    std::shared_ptr<types::EventHandler>& eventHandler); | ||||
| 
 | ||||
| protected: | ||||
|    void | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat