#include <c4d_graphview_def.h>
Data type handler. Use GvRegisterDataType() to register.
◆ GV_DATA_HANDLER()
◆ data_id
◆ value_id
◆ group_id
◆ userdata
◆ edit_id
Not used. Should be set to 0.
◆ resource_symbol
◆ x_flags
◆ GetName
Get the data type name.
- Parameters
-
[in] | userdata | The user data. |
- Returns
- The data type name. The handler owns the pointed String.
◆ GetIcon
Get the icon for the data type.
- Note
- Currently not used.
- Parameters
-
[in] | userdata | The user data. |
- Returns
- The data type icon. The handler owns the pointed BaseBitmap.
◆ GetDefaultsList
Retrieve a container with the names of the default values the custom data type provides.
For example, the Float data type provides default values like "Thousand" and "PI / 2".
- Parameters
-
[in] | userdata | The user data. |
[out] | bc | The container to add the default values to. |
- Returns
- The number of default value added to bc.
◆ SetDefault
Set one of the constants reported by GetDefaultsList() in data[cpu_id]
.
- Parameters
-
[in] | userdata | The user data. |
[in] | id | The default value ID. |
[in] | data | The data to set the default value in. Points to GV data. The layout of the pointed data is determined by value_id. |
[in] | cpu_id | The CPU ID. |
- Returns
- true if successful, otherwise false.
◆ disclevel