Ags.Conversion¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
Virtual Methods¶
- Inherited:
 
  | 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The description of the conversion  | 
||
r/w  | 
The name of the conversion  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
The   | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
description  | 
r  | 
||
gobject  | 
r  | 
||
name  | 
r  | 
||
obj_mutex  | 
r  | 
Class Details¶
- class Ags.Conversion(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new()¶
 - Returns:
 the new instance
- Return type:
 
Instantiate a new
Ags.Conversion.New in version 3.0.0.
- convert(x, reverse)¶
 - Parameters:
 - Returns:
 the converted value as
float- Return type:
 
Convert a value if reverse is
Falsethen use the target format otherwise ifTrueconvert back to original format.New in version 3.0.0.
Signal Details¶
- Ags.Conversion.signals.convert(conversion, x, reverse)¶
 - Signal Name:
 convert- Flags:
 - Parameters:
 conversion (
Ags.Conversion) – The object which received the signalx (
float) – the value to convertreverse (
bool) – the direction to translate
- Returns:
 the converted value
- Return type:
 
The
::convertsignal notifies about converted value.New in version 3.0.0.
Property Details¶
- Ags.Conversion.props.description¶
 - 
The description of the conversion.
New in version 3.0.0.