This set of functions is used to query/modify the current penstyle and list of penstyles. The list of penstyles includes the brush, pencil and texture styles.
More...
#include <penstyle.h>
This set of functions is used to 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 )
{
}
}
void PenstyleManager::changeCurrentPenstyleCenterlineSmoothness |
( |
double |
smooth | ) |
|
|
slot |
set the current penstyle centreline smoothness
- Parameters
-
smooth | - new smoothness value |
void PenstyleManager::changeCurrentPenstyleEraserFlag |
( |
bool |
flag | ) |
|
|
slot |
set the current penstyle eraser flag
- Parameters
-
void PenstyleManager::changeCurrentPenstyleMaximumSize |
( |
double |
maximum | ) |
|
|
slot |
set the current penstyle maximum size
- Parameters
-
maximum | - new maximum size |
void PenstyleManager::changeCurrentPenstyleMinimumSize |
( |
double |
minimum | ) |
|
|
slot |
set the current penstyle minimum size
- Parameters
-
minimum | - new minimum size |
void PenstyleManager::changeCurrentPenstyleOutlineSmoothness |
( |
double |
smooth | ) |
|
|
slot |
set the current penstyle outline smoothness
- Parameters
-
smooth | - new smoothness value |
QString PenstyleManager::exportPenstyleListToString |
( |
| ) |
|
|
slot |
Formats the penstyle list into a string, which can be used to store the penstyle list and import it later.
- Returns
- string representing penstyle list
QString PenstyleManager::exportPenstyleToString |
( |
int |
index | ) |
|
|
slot |
Create a string representing the penstyle which can be used to store the penstyle and import it later.
- Parameters
-
- Returns
- string representing penstyle
double PenstyleManager::getCurrentPenstyleCenterlineSmoothness |
( |
| ) |
|
|
slot |
Gets the current penstyle center line smoothness.
- Returns
- center line smoothness
bool PenstyleManager::getCurrentPenstyleEraserFlag |
( |
| ) |
|
|
slot |
Gets the current penstyle eraser flag.
- Returns
- eraser flag
int PenstyleManager::getCurrentPenstyleIndex |
( |
| ) |
|
|
slot |
Gets the index of the current penstyle.
- Returns
- index of penstyle
double PenstyleManager::getCurrentPenstyleMaximumSize |
( |
| ) |
|
|
slot |
Gets the current penstyle maximum size.
- Returns
- maximum size
double PenstyleManager::getCurrentPenstyleMinimumSize |
( |
| ) |
|
|
slot |
Gets the current penstyle minimum size.
- Returns
- minimum size
QString PenstyleManager::getCurrentPenstyleName |
( |
| ) |
|
|
slot |
Gets the name of the current penstyle.
- Returns
- name of penstyle
double PenstyleManager::getCurrentPenstyleOutlineSmoothness |
( |
| ) |
|
|
slot |
Gets the current penstyle outline smoothness.
- Returns
- outline smoothness
int PenstyleManager::getNumberOfPenstyles |
( |
| ) |
|
|
slot |
Gets the number of penstyles.
- Returns
- number of penstyles
QString PenstyleManager::getPenstyleName |
( |
int |
index | ) |
|
|
slot |
Gets the name of the penstyle.
- Parameters
-
index | - index of style withing list |
- Returns
- name of penstyle
void PenstyleManager::importPenstyleListFromString |
( |
QString |
str | ) |
|
|
slot |
Imports a penstyle list from a previously formatted penstyle string.
- Parameters
-
str | - formatted penstyle list ( created from a previous call to exportPenstyleToString or exportPenstyleListToString ) |
void PenstyleManager::savePenstyles |
( |
| ) |
|
|
slot |
void PenstyleManager::setCurrentPenstyleByIndex |
( |
int |
index | ) |
|
|
slot |
sets the current penstyle
- Parameters
-
void PenstyleManager::setCurrentPenstyleByName |
( |
QString |
name | ) |
|
|
slot |
sets the current penstyle
- Parameters
-
The documentation for this class was generated from the following file: