◆ CUSTOMGUI_SUPPORT_LAYOUTSWITCH
#define CUSTOMGUI_SUPPORT_LAYOUTSWITCH |
Supports layout switching.
◆ CUSTOMGUI_SUPPORT_LAYOUTDATA
#define CUSTOMGUI_SUPPORT_LAYOUTDATA |
Supports layout data. If set, the custom GUI saves and restores data to a BaseContainer when the GUI is rebuilt.
For example imagine the following: the user adds a gradient needle. The number of GUI elements changes (sub-descriptions are shown) and the dialog needs to be rebuilt.
In order that the GUI does not lose its settings (e.g. which needle was active etc.) it can store its data to a BaseContainer under its description ID.
Some excerpts from the gradient custom GUI:
iGradientCustomGui::iGradientCustomGui(
const BaseContainer &settings,CUSTOMGUIPLUGIN *plugin) : iBaseCustomGui(settings,plugin)
{
if (col && alpha)
else if (alpha)
else
m_bIsTristate = false;
area.m_pParent = nullptr;
if (data)
{
}
}
{
{
return true;
...
}
}
◆ CUSTOMGUI_DISALLOW_TAKESOVERRIDE
#define CUSTOMGUI_DISALLOW_TAKESOVERRIDE |
Disallows Takes override e.g. the GUI does not hold real data but just react to the node changes (e.g. Material Preview).
- Since
- R17.032
#define GRADIENTMODE_COLORALPHA
Color and alpha.
Definition: customgui_gradient.h:109
#define CUSTOMGUI_SAVEDLAYOUTDATA
BaseContainer Saved layout data.
Definition: customgui_base.h:29
void SetInt32(Int32 id, Int32 l)
Definition: c4d_basecontainer.h:505
BaseContainer * GetContainerInstance(Int32 id)
Definition: c4d_basecontainer.h:425
#define GRADIENTMODE_COLOR
Color only.
Definition: customgui_gradient.h:107
#define GRADIENTPROPERTY_NOEDITCOLOR
Definition: customgui_gradient.h:54
Int32 GetId() const
Definition: c4d_basecontainer.h:131
#define GRADIENTMODE_ALPHA
Alpha only.
Definition: customgui_gradient.h:108
#define GRADIENTPROPERTY_ALPHA
Definition: customgui_gradient.h:49
maxon::Int32 Int32
Definition: ge_sys_math.h:58
Bool GetBool(Int32 id, Bool preset=false) const
Definition: c4d_basecontainer.h:295
@ BFM_GETCUSTOMGUILAYOUTDATA
Private.
Definition: gui.h:960
#define GRADIENTPROPERTY_ALPHA_WITH_COLOR
Definition: customgui_gradient.h:44
maxon::Bool Bool
Definition: ge_sys_math.h:53
Int32 GetInt32(Int32 id, Int32 preset=0) const
Definition: c4d_basecontainer.h:303
Definition: c4d_basecontainer.h:46