OELegendLayoutOptions¶
class OELegendLayoutOptions
This class represents the OELegendLayoutOptions class that encapsulates properties that determine how an legend layout is depicted.
The OELegendLayoutOptions class stores the following properties:
Property |
Get method |
Set method |
Corresponding namespace / class / type |
---|---|---|---|
legend layout style |
(set by the constructor) |
|
|
legend color style |
(set by the constructor) |
|
|
legend interactive style |
(set by the constructor) |
|
|
button label font |
|||
button pen(s) |
|||
button height scale |
positive floating point number in the range of \([0.5, 3.0]\) |
||
button width scale |
positive floating point number in the range of \([0.5, 5.0]\) |
||
legend box pen |
|||
layout margins |
positive floating point number in the range of \([0.0, 90.0]\) |
See also
OELegendLayout class
Constructors¶
OELegendLayoutOptions(unsigned int layout=OELegendLayoutStyle::Default,
unsigned int color=OELegendColorStyle::Default,
unsigned int inter=OELegendInteractiveStyle::Default)
See also
OELegendLayoutStyle
namespaceOELegendColorStyle
namespaceOELegendInteractiveStyle
namespace
OELegendLayoutOptions(const OELegendLayoutOptions &rhs)
Copy constructor.
GetInteractiveStyle¶
unsigned int GetInteractiveStyle() const
See also
OELegendInteractiveStyle
namespace
GetMargin¶
double GetMargin(unsigned int percent) const
Returns the ratio of a specific margin of the legend layout.
- margin
This value has to be from the
OEMargin
namespace.
See also
SetMargin¶
bool SetMargin(unsigned int margin, double percent)
Sets the size of a specific margin of the legend layout.
- marginloc
This value has to be from the
OEMargin
namespace.- margin
This number is considered as a percentage of either the width or the height of image on which the legend layout will be drawn and has to be in the range of \([0.0, 90.0]\). For example, 10.0% means, that the left and right margin are 10% of the total width of the image, and the top and bottom margins are 10% of the total height of the image.
See also
SetMargins¶
bool SetMargins(double margin)
Sets the size of all margins of the legend layout.
- margin
This number is considered as a percentage of either the width or the height of image on which the legend layout will be drawn and has to be in the range of \([0.0, 90.0]\). For example, 10.0% means, that the left and right margin are 10% of the total width of the image, and the top and bottom margins are 10% of the total height of the image.
See also