|
| | flags |
| | Flags to indicate which properties of default appearance are meaningful. More...
|
| |
| | font |
| | A font for default appearance. It should be a valid font object when it is useful. More...
|
| |
| | text_color |
| | Text color for default appearance. Format: 0xRRGGBB. More...
|
| |
| | text_size |
| | Text size for default appearance. More...
|
| |
◆ constructor()
Constructor, with parameters.
- Parameters
-
| [in] | flags | Flags to indicate which properties of default appearance are meaningful. Please refer to values starting from DefaultAppearance.e_FlagFont and this can be one or a combination of these values. |
| [in] | font | A valid font object for default appearance when parameter flags includes DefaultAppearance.e_FlagFont. |
| [in] | text_size | Font size for default appearance when parameter flags includes DefaultAppearance.e_FlagFontSize. Usually it should be above 0. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object. |
| [in] | text_color | Text color for default appearance. Format: 0xRRGGBB. |
◆ Set()
Set value.
- Parameters
-
| [in] | flags | Flags to indicate which properties of default appearance are meaningful. Please refer to values starting from DefaultAppearance.e_FlagFont and this can be one or a combination of these values. |
| [in] | font | A font for default appearance. Please ensure this is a valid font object when parameter flags includes DefaultAppearance.e_FlagFont. |
| [in] | text_size | Font size for default appearance when parameter flags includes DefaultAppearance.e_FlagFontSize. Usually it should be above 0. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object. |
| [in] | text_color | Text color for default appearance. Format: 0xRRGGBB. |
- Returns
- None.
◆ e_FlagFont
| DefaultAppearance.e_FlagFont |
|
static |
Enumeration for default appearance flags.
Values of this enumeration can be used alone or in combination.
Indicates property font of DefaultAppearance is meaningful.
◆ flags
Flags to indicate which properties of default appearance are meaningful.
Please refer to values starting from DefaultAppearance.e_FlagFont and this can be one or a combination of these values. 0 means no property of default appearance is meaningful.
◆ font
A font for default appearance. It should be a valid font object when it is useful.
- Note
- Useful only when flags of current object includes DefaultAppearance.e_FlagFont.
◆ text_color
| DefaultAppearance.text_color |
◆ text_size
| DefaultAppearance.text_size |
Text size for default appearance.
Usually it should be above 0 when it is useful. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.
- Note
- Useful only when flags of current object includes DefaultAppearance.e_FlagFontSize.