mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-02 00:30:05 +00:00
Add hover callback to alert layer
This commit is contained in:
parent
1bf93c6318
commit
204e2e8a0e
3 changed files with 103 additions and 24 deletions
|
|
@ -19,6 +19,10 @@ struct GeoLineDrawItem;
|
|||
class GeoLines : public DrawItem
|
||||
{
|
||||
public:
|
||||
typedef std::function<void(std::shared_ptr<const GeoLineDrawItem>&,
|
||||
const QPointF&)>
|
||||
HoverCallback;
|
||||
|
||||
explicit GeoLines(std::shared_ptr<GlContext> context);
|
||||
~GeoLines();
|
||||
|
||||
|
|
@ -114,6 +118,15 @@ public:
|
|||
void SetLineVisible(const std::shared_ptr<GeoLineDrawItem>& di,
|
||||
bool visible);
|
||||
|
||||
/**
|
||||
* Sets the hover callback enable of a geo line.
|
||||
*
|
||||
* @param [in] di Geo line draw item
|
||||
* @param [in] enabled Hover enabled
|
||||
*/
|
||||
void SetLineHoverCallback(const std::shared_ptr<GeoLineDrawItem>& di,
|
||||
const HoverCallback& callback);
|
||||
|
||||
/**
|
||||
* Sets the hover text of a geo line.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue