Inherits SystemIDisposable.
Public Types | |
enum | ScaleWayType { ScaleWayType.e_ScaleWayAlways = 1, ScaleWayType.e_ScaleWayBigger = 2, ScaleWayType.e_ScaleWaySmaller = 3, ScaleWayType.e_ScaleWayNever = 4 } |
Enumeration for the type of icon scaling way. More... | |
Public Member Functions | |
IconFit () | |
Constructor. | |
IconFit (IconFit.ScaleWayType type, bool is_proportional_scaling, float horizontal_fraction, float vertical_fraction, bool fit_bounds) | |
Constructor, with parameters. More... | |
IconFit (IconFit icon_fit) | |
Constructor, with another IconFit object. More... | |
void | Set (IconFit.ScaleWayType type, bool is_proportional_scaling, float horizontal_fraction, float vertical_fraction, bool fit_bounds) |
Set value. More... | |
This class represents icon fit information. Icon fit information is used to specify how to display a button's icon within the annotation rectangle of its associated widget annotation.
|
strong |
Enumeration for the type of icon scaling way.
Values of this enumeration should be used alone.
|
inline |
Constructor, with parameters.
type | The circumstances under which the icon should be scaled inside the annotation rectangle. Please refer to e_ScaleWayXXX values and it should be one of these values. |
is_proportional_scaling | Indicates whether use proportional scaling or not. true means to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height). false means scale the icon to scale the icon to fit the width or height of the annotation rectangle while maintaining the icon's original aspect ratio. |
horizontal_fraction | The horizontal fraction of left-over space to allocate at the left and bottom of the icon if the icon is scaled proportionally. Valid range: 0.0 to 1.0. |
vertical_fraction | The vertical fraction of left-over space to allocate at the left and bottom of the icon if the icon is scaled proportionally. Valid range: 0.0 to 1.0. |
fit_bounds | Indicates whether to scale button appearance to fit fully within bounds or not. true means that the button appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border. |
|
inline |
|
inline |
Set value.
type | The circumstances under which the icon should be scaled inside the annotation rectangle. Please refer to e_ScaleWayXXX values and it should be one of these values. |
is_proportional_scaling | Indicates whether use proportional scaling or not. true means to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height). false means scale the icon to scale the icon to fit the width or height of the annotation rectangle while maintaining the icon's original aspect ratio. |
horizontal_fraction | The horizontal fraction of left-over space to allocate at the left and bottom of the icon if the icon is scaled proportionally. Valid range: 0.0 to 1.0. |
vertical_fraction | The vertical fraction of left-over space to allocate at the left and bottom of the icon if the icon is scaled proportionally. Valid range: 0.0 to 1.0. |
fit_bounds | Indicates whether to scale button appearance to fit fully within bounds or not. true means that the button appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border. |