Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
PropertyInfo Struct Reference
+ Collaboration diagram for PropertyInfo:
Collaboration graph
[legend]

Public Types

enum  ValueType { INTEGER , REAL , BOOL , INVALID }
 

Public Member Functions

 PropertyInfo (int min, int max, int defaultValue)
 
 PropertyInfo (qreal min, qreal max, qreal defaultValue)
 
 PropertyInfo (bool base, bool defaultValue)
 
 PropertyInfo (bool base)
 
 PropertyInfo (int base)
 
 PropertyInfo (qreal base)
 
void setBaseValue (int newValue)
 
void setBaseValue (qreal newValue)
 
void setBaseValue (bool newValue)
 
QVariant toVariant () const
 
int intValue () const
 
qreal realValue () const
 
bool boolValue () const
 
qreal minReal () const
 
qreal maxReal () const
 
int minInt () const
 
int maxInt () const
 
void resetBaseValue ()
 
int defaultInt ()
 Returns the default value as an real, otherwise -1 if it hasn't been specified or the type doesn't match.
 
qreal defaultReal ()
 Returns the default value as an real, otherwise -1.0 if it hasn't been specified or the type doesn't match.
 
bool defaultBool ()
 Returns the default value as an bool, otherwise false if it hasn't been specified or the type doesn't match.
 
ValueType type () const
 

Private Attributes

ValueType mValueType
 
QVariant mBaseValue
 
QVariant mMinValue
 
QVariant mMaxValue
 
QVariant mDefaultValue
 

Detailed Description

Definition at line 29 of file toolproperties.h.

Member Enumeration Documentation

◆ ValueType

enum PropertyInfo::ValueType

Definition at line 31 of file toolproperties.h.

Constructor & Destructor Documentation

◆ PropertyInfo() [1/7]

PropertyInfo::PropertyInfo ( )
inline

Definition at line 38 of file toolproperties.h.

◆ PropertyInfo() [2/7]

PropertyInfo::PropertyInfo ( int  min,
int  max,
int  defaultValue 
)
inline

Definition at line 42 of file toolproperties.h.

◆ PropertyInfo() [3/7]

PropertyInfo::PropertyInfo ( qreal  min,
qreal  max,
qreal  defaultValue 
)
inline

Definition at line 49 of file toolproperties.h.

◆ PropertyInfo() [4/7]

PropertyInfo::PropertyInfo ( bool  base,
bool  defaultValue 
)
inline

Definition at line 57 of file toolproperties.h.

◆ PropertyInfo() [5/7]

PropertyInfo::PropertyInfo ( bool  base)
inline

Definition at line 65 of file toolproperties.h.

◆ PropertyInfo() [6/7]

PropertyInfo::PropertyInfo ( int  base)
inline

Definition at line 66 of file toolproperties.h.

◆ PropertyInfo() [7/7]

PropertyInfo::PropertyInfo ( qreal  base)
inline

Definition at line 67 of file toolproperties.h.

Member Function Documentation

◆ boolValue()

bool PropertyInfo::boolValue ( ) const
inline

Definition at line 115 of file toolproperties.h.

◆ defaultBool()

bool PropertyInfo::defaultBool ( )
inline

Returns the default value as an bool, otherwise false if it hasn't been specified or the type doesn't match.

Definition at line 186 of file toolproperties.h.

◆ defaultInt()

int PropertyInfo::defaultInt ( )
inline

Returns the default value as an real, otherwise -1 if it hasn't been specified or the type doesn't match.

Definition at line 170 of file toolproperties.h.

◆ defaultReal()

qreal PropertyInfo::defaultReal ( )
inline

Returns the default value as an real, otherwise -1.0 if it hasn't been specified or the type doesn't match.

Definition at line 178 of file toolproperties.h.

◆ intValue()

int PropertyInfo::intValue ( ) const
inline

Definition at line 97 of file toolproperties.h.

◆ maxInt()

int PropertyInfo::maxInt ( ) const
inline

Definition at line 145 of file toolproperties.h.

◆ maxReal()

qreal PropertyInfo::maxReal ( ) const
inline

Definition at line 130 of file toolproperties.h.

◆ minInt()

int PropertyInfo::minInt ( ) const
inline

Definition at line 138 of file toolproperties.h.

◆ minReal()

qreal PropertyInfo::minReal ( ) const
inline

Definition at line 123 of file toolproperties.h.

◆ realValue()

qreal PropertyInfo::realValue ( ) const
inline

Definition at line 106 of file toolproperties.h.

◆ resetBaseValue()

void PropertyInfo::resetBaseValue ( )
inline

Definition at line 153 of file toolproperties.h.

◆ setBaseValue() [1/3]

void PropertyInfo::setBaseValue ( bool  newValue)
inline

Definition at line 79 of file toolproperties.h.

◆ setBaseValue() [2/3]

void PropertyInfo::setBaseValue ( int  newValue)
inline

Definition at line 69 of file toolproperties.h.

◆ setBaseValue() [3/3]

void PropertyInfo::setBaseValue ( qreal  newValue)
inline

Definition at line 74 of file toolproperties.h.

◆ toVariant()

QVariant PropertyInfo::toVariant ( ) const
inline

Definition at line 84 of file toolproperties.h.

◆ type()

ValueType PropertyInfo::type ( ) const
inline

Definition at line 193 of file toolproperties.h.

Member Data Documentation

◆ mBaseValue

QVariant PropertyInfo::mBaseValue
private

Definition at line 197 of file toolproperties.h.

◆ mDefaultValue

QVariant PropertyInfo::mDefaultValue
private

Definition at line 200 of file toolproperties.h.

◆ mMaxValue

QVariant PropertyInfo::mMaxValue
private

Definition at line 199 of file toolproperties.h.

◆ mMinValue

QVariant PropertyInfo::mMinValue
private

Definition at line 198 of file toolproperties.h.

◆ mValueType

ValueType PropertyInfo::mValueType
private

Definition at line 196 of file toolproperties.h.


The documentation for this struct was generated from the following file:
  • core_lib/src/tool/toolproperties.h
Generated on Tue Dec 23 2025 02:59:17 for Pencil2D by doxygen 1.9.6 based on revision ba57a3de29b42de06bbb5b1757aa7f34e6bc4514