Foxit PDF SDK
|
Inherits NSObject.
Instance Methods | |
(id) | - init |
Constructor. | |
(id) | - initWithIcon_fit: |
Constructor, with another icon fit object. More... | |
(id) | - initWithType:is_proportional_scaling:horizontal_fraction:vertical_fraction:fit_bounds: |
Constructor, with parameters. More... | |
(void) | - set:is_proportional_scaling:horizontal_fraction:vertical_fraction:fit_bounds: |
Set value. More... | |
Properties | |
BOOL | fit_bounds |
A boolean value that indicates whether to scale button appearance to fit fully within bounds or not. More... | |
float | horizontal_fraction |
The horizontal fraction of left-over space to allocate at the left and bottom of the icon. More... | |
BOOL | is_proportional_scaling |
A boolean value which indicates whether use proportional scaling or not. More... | |
FSIconFitScaleWayType | scale_way_type |
The circumstances under which the icon should be scaled inside the annotation rectangle. Please refer to values starting from FSIconFitScaleWayNone and this should be one of these values. When current icon fit object is used for setting, this value should not be FSIconFitScaleWayNone. | |
float | vertical_fraction |
The vertical fraction of left-over space to allocate at the left and bottom of the icon. 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.
- (id) initWithIcon_fit: | (FSIconFit*) | icon_fit |
Constructor, with another icon fit object.
[in] | icon_fit | Another icon fit object. |
- (id) initWithType: | (FSIconFitScaleWayType) | type | |
is_proportional_scaling: | (BOOL) | is_proportional_scaling | |
horizontal_fraction: | (float) | horizontal_fraction | |
vertical_fraction: | (float) | vertical_fraction | |
fit_bounds: | (BOOL) | fit_bounds | |
Constructor, with parameters.
[in] | type | The circumstances under which the icon should be scaled inside the annotation rectangle. Please refer to values starting from FSIconFitScaleWayAlways and this should be one of these values. This value shold not be FSIconFitScaleWayNone when current icon fit object is used for setting. |
[in] | is_proportional_scaling | Indicates whether use proportional scaling or not. YES means to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height). NO means scale the icon to fit the width or height of the annotation rectangle while maintaining the icon's original aspect ratio. |
[in] | 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. |
[in] | 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. |
[in] | fit_bounds | Indicates whether to scale button appearance to fit fully within bounds or not. YES 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. |
- (void) set: | (FSIconFitScaleWayType) | type | |
is_proportional_scaling: | (BOOL) | is_proportional_scaling | |
horizontal_fraction: | (float) | horizontal_fraction | |
vertical_fraction: | (float) | vertical_fraction | |
fit_bounds: | (BOOL) | fit_bounds | |
Set value.
[in] | type | The circumstances under which the icon should be scaled inside the annotation rectangle. Please refer to values starting from FSIconFitScaleWayAlways and this should be one of these values. This value shold not be FSIconFitScaleWayNone when current icon fit object is used for setting. |
[in] | is_proportional_scaling | Indicates whether use proportional scaling or not. YES means to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height). NO 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. |
[in] | 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. |
[in] | 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. |
[in] | fit_bounds | Indicates whether to scale button appearance to fit fully within bounds or not. YES 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. |
|
readwritenonatomicassign |
A boolean value that indicates whether to scale button appearance to fit fully within bounds or not.
YES indicates 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.
|
readwritenonatomicassign |
The horizontal fraction of left-over space to allocate at the left and bottom of the icon.
This entry is used only if the icon is scaled proportionally. Valid range: 0.0 to 1.0.
|
readwritenonatomicassign |
A boolean value which indicates whether use proportional scaling or not.
YES means to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height).
NO 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.
|
readwritenonatomicassign |
The vertical fraction of left-over space to allocate at the left and bottom of the icon.
This entry is used only if the icon is scaled proportionally. Valid range: 0.0 to 1.0.