The PenstyleManager JavaScript global object. Query/modify the current penstyle and list of penstyles.
More...
The PenstyleManager JavaScript global object. Query/modify the current penstyle and list of penstyles.
The list of penstyles includes the brush, pencil and texture styles.
function queryPenstyles()
{
for ( var i =0 ; i < num ; ++i )
{
}
}
◆ changeCurrentPenstyleCenterlineSmoothness
void PenstyleManager::changeCurrentPenstyleCenterlineSmoothness |
( |
double |
smooth | ) |
|
|
slot |
Sets the current penstyle centreline smoothness.
- Parameters
-
smooth | : New centreline smoothness value. |
◆ changeCurrentPenstyleMaximumSize
void PenstyleManager::changeCurrentPenstyleMaximumSize |
( |
double |
maximum | ) |
|
|
slot |
Sets the current penstyle maximum size.
- Parameters
-
maximum | : New maximum size. |
◆ changeCurrentPenstyleMinimumSize
void PenstyleManager::changeCurrentPenstyleMinimumSize |
( |
double |
minimum | ) |
|
|
slot |
Sets the current penstyle minimum size.
- Parameters
-
minimum | : New minimum size. |
◆ changeCurrentPenstyleOutlineSmoothness
void PenstyleManager::changeCurrentPenstyleOutlineSmoothness |
( |
double |
smooth | ) |
|
|
slot |
Sets the current penstyle outline smoothness.
- Parameters
-
smooth | : New outline smoothness value. |
◆ exportPenstyleListToString
String PenstyleManager::exportPenstyleListToString |
( |
| ) |
|
|
slot |
Formats the penstyle list into a string, which can be used to store the penstyle list and import it later.
- Returns
- Returns a string representing the penstyle list.
◆ exportPenstyleToString
String PenstyleManager::exportPenstyleToString |
( |
int |
index | ) |
|
|
slot |
Create a string representing the penstyle which can be used to store the penstyle and import it later.
- Parameters
-
index | : Index of the penstyle. |
- Returns
- Returns a string representing the penstyle.
◆ getCurrentPenstyleCenterlineSmoothness
double PenstyleManager::getCurrentPenstyleCenterlineSmoothness |
( |
| ) |
|
|
slot |
Gets the current penstyle centerline smoothness.
- Returns
- Returns the current penstyle centerline smoothness.
◆ getCurrentPenstyleEraserFlag
bool PenstyleManager::getCurrentPenstyleEraserFlag |
( |
| ) |
|
|
slot |
Gets the current penstyle eraser flag.
- Returns
- Returns true if the current penstyle eraser flag is set.
◆ getCurrentPenstyleIndex
int PenstyleManager::getCurrentPenstyleIndex |
( |
| ) |
|
|
slot |
Returns the index of the current penstyle.
- Returns
- Returns the index of the current penstyle.
◆ getCurrentPenstyleMaximumSize
double PenstyleManager::getCurrentPenstyleMaximumSize |
( |
| ) |
|
|
slot |
Gets the current penstyle maximum size.
- Returns
- Returns the current penstyle maximum size.
◆ getCurrentPenstyleMinimumSize
double PenstyleManager::getCurrentPenstyleMinimumSize |
( |
| ) |
|
|
slot |
Gets the current penstyle minimum size.
- Returns
- Returns the current penstyle minimum size.
◆ getCurrentPenstyleName
String PenstyleManager::getCurrentPenstyleName |
( |
| ) |
|
|
slot |
Returns the name of the current penstyle.
- Returns
- Returns the name of the current penstyle.
◆ getCurrentPenstyleOutlineSmoothness
double PenstyleManager::getCurrentPenstyleOutlineSmoothness |
( |
| ) |
|
|
slot |
Gets the current penstyle outline smoothness.
- Returns
- Returns the current penstyle outline smoothness.
◆ getNumberOfPenstyles
int PenstyleManager::getNumberOfPenstyles |
( |
| ) |
|
|
slot |
Returns the number of penstyles.
- Returns
- Returns the number of penstyles.
◆ getPenstyleName
String PenstyleManager::getPenstyleName |
( |
int |
index | ) |
|
|
slot |
Returns the name of the penstyle at the given index.
- Parameters
-
index | : Index of the penstyle. |
- Returns
- Returns the name of the penstyle.
◆ importPenstyleListFromString
void PenstyleManager::importPenstyleListFromString |
( |
String |
str | ) |
|
|
slot |
Imports a penstyle list from a previously formatted penstyle string.
- Parameters
-
str | : A formatted penstyle or penstyle list, which can be created from exportPenstyleToString or exportPenstylesListToString. |
◆ savePenstyles
void PenstyleManager::savePenstyles |
( |
| ) |
|
|
slot |
◆ setCurrentPenstyleByIndex
void PenstyleManager::setCurrentPenstyleByIndex |
( |
int |
index | ) |
|
|
slot |
Sets the current penstyle.
- Parameters
-
index | : Index of penstyle to be set as current penstyle. |
◆ setCurrentPenstyleByName
void PenstyleManager::setCurrentPenstyleByName |
( |
String |
name | ) |
|
|
slot |
Sets the current penstyle.
- Parameters
-
name | : Name of the penstyle to be set as current penstyle. |