OEAddInteractiveIcon

void OEAddInteraciveIcon(OEImageBase &image,
                         unsigned int loc=OEIconLocation::Default,
                         double scale=1.0)
void OEAddInteraciveIcon(OE2DMolDisplay &disp,
                         unsigned int loc=OEIconLocation::Default,
                         double scale=1.0)

Adds an icon to an image or a molecule display that indicates that the image is interactive.

loc

This value has to be from the OEIconLocation namespace.

scale

The multiplier that can be used to increase or decrease the size of the icon. This value has to be in the range of [0.5, 2.0].

hover the mouse over on the rectangle below

Example of adding the logo to an interactive SVG image

../../_images/AddSVGHover.svg