OEAddSVGHoverΒΆ

bool OEAddSVGHover(OESVGGroup *area, OESVGGroup *target)

Adds a hover effect to the objects drawn between the two given groups. While hovering the mouse over objects drawn inside the area group the objects drawn in the target group are displayed.

Note

This functionality is only available for .svg image format.

Example:

OESVGGroup hover_area = image.NewSVGGroup("hover_area");
OESVGGroup target_area = image.NewSVGGroup("hover_target_area");

OEDepict.OEAddSVGHover(hover_area, target_area);

image.PushGroup(hover_area);
image.DrawRectangle(new OE2DPoint(30, 30), new OE2DPoint(70, 70), OEDepict.OERedBoxPen);
image.PopGroup(hover_area);

image.PushGroup(target_area);
image.DrawCircle(new OE2DPoint(150, 50), 30, OEDepict.OEBlueBoxPen);
image.PopGroup(target_area);

OEDepict.OEAddInteractiveIcon(image);

OEDepict.OEWriteImage("AddSVGHover.svg", image);

Download code

AddSVGHover.cs

Hint

The OEAddSVGHover function should always be called prior to pushing / popping the OESVGGroup objects.

hover the mouse over the red rectangle below

Example of using the OEAddSVGHover function

bool OEAddSVGHover(OESVGGroup* area, OESVGGroup* targetA, OESVGGroup* targetB)

Adds a hover effect to the objects drawn between the three given groups. While hovering the mouse over objects drawn inside the area group the objects drawn in the targetA and targetB groups are displayed.

Note

This functionality is only available for .svg image format.