Kanzi  3.9.4
Kanzi Engine API
kanzi::BlendModeValuePropertyNotificationHandler Class Reference

Custom notification handler for blend mode. More...

#include <kanzi/core.ui/platform/graphics_backend/gl/render_value_property_notification_handler.hpp>

Inheritance diagram for kanzi::BlendModeValuePropertyNotificationHandler:
[legend]

Public Member Functions

 BlendModeValuePropertyNotificationHandler ()=default
 Empty constructor. More...
 
 BlendModeValuePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor. More...
 
 BlendModeValuePropertyNotificationHandler (BlendModeValuePropertyNotificationHandler &&other)
 Move constructor. More...
 
BlendModeValuePropertyNotificationHandleroperator= (BlendModeValuePropertyNotificationHandler &&other)
 Move operator. More...
 
void update (GlBlendModeRenderValue &value, PropertyObject *object, Material &material)
 Updates the render value with new values. More...
 
void update (GlBlendModeRenderValue &value, Brush &brush, Material &material)
 Updates the render value with new values. More...
 
- Public Member Functions inherited from kanzi::RenderValuePropertyNotificationHandlerBase
bool isDirty () const
 Is the container dirty? More...
 
RenderValuePropertyNotificationHandlerBaseoperator= (RenderValuePropertyNotificationHandlerBase &&other)
 Assignment operator. More...
 
void setDirty (bool enabled)
 Set dirty flag state. More...
 
- Public Member Functions inherited from kanzi::NodePropertyNotificationHandler
NodegetNode () const
 Access the node. More...
 
void invalidate ()
 Invalidates the state of the notification handler. More...
 
bool isValid () const
 Tell if this notification handler is valid. More...
 
- Public Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
AbstractPropertyType getPropertyType () const
 Get the property type this handler is listening. More...
 

Additional Inherited Members

- Protected Member Functions inherited from kanzi::RenderValuePropertyNotificationHandlerBase
ShaderProgram::UniformTransformation getTransformation () const
 Gets the uniform transformation. More...
 
void onPropertyChanged (PropertyNotificationReason) override
 AbstractPropertyNotificationHandler::onPropertyChanged() implementation. More...
 
 RenderValuePropertyNotificationHandlerBase ()
 Empty constructor. More...
 
 RenderValuePropertyNotificationHandlerBase (AbstractPropertyType propertyType, Node *node)
 Constructor. More...
 
 RenderValuePropertyNotificationHandlerBase (AbstractPropertyType propertyType, Node *node, ShaderProgram::UniformTransformation transformation)
 Constructor. More...
 
 RenderValuePropertyNotificationHandlerBase (RenderValuePropertyNotificationHandlerBase &&other)
 Move constructor. More...
 
- Protected Member Functions inherited from kanzi::NodePropertyNotificationHandler
 NodePropertyNotificationHandler ()
 Empty constructor. More...
 
 NodePropertyNotificationHandler (const NodePropertyNotificationHandler &rhs)
 Copy constructor. More...
 
 NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor. More...
 
NodePropertyNotificationHandleroperator= (const NodePropertyNotificationHandler &rhs)
 Assignment operator. More...
 
 ~NodePropertyNotificationHandler () override
 Destructor. More...
 
- Protected Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
 AbstractPropertyNotificationHandler ()
 Empty constructor. More...
 
 AbstractPropertyNotificationHandler (AbstractPropertyType propertyType)
 Constructor. More...
 
virtual ~AbstractPropertyNotificationHandler ()=default
 

Detailed Description

Custom notification handler for blend mode.

Since
Kanzi 3.9.1

Constructor & Destructor Documentation

◆ BlendModeValuePropertyNotificationHandler() [1/3]

kanzi::BlendModeValuePropertyNotificationHandler::BlendModeValuePropertyNotificationHandler ( )
explicitdefault

Empty constructor.

◆ BlendModeValuePropertyNotificationHandler() [2/3]

kanzi::BlendModeValuePropertyNotificationHandler::BlendModeValuePropertyNotificationHandler ( AbstractPropertyType  propertyType,
Node node 
)
inlineexplicit

Constructor.

Parameters
propertyTypeProperty type to listen on.
nodeNode to listen for changes on.

◆ BlendModeValuePropertyNotificationHandler() [3/3]

kanzi::BlendModeValuePropertyNotificationHandler::BlendModeValuePropertyNotificationHandler ( BlendModeValuePropertyNotificationHandler &&  other)
inline

Move constructor.

Parameters
otherSource object.

Member Function Documentation

◆ update() [1/2]

void kanzi::BlendModeValuePropertyNotificationHandler::update ( GlBlendModeRenderValue value,
PropertyObject object,
Material material 
)
inline

Updates the render value with new values.

Uses the node specified during construction and parameters given as context for the update. Do not update if dirty flag has not been set (property is not marked as dirty).

Parameters
valueRender value to update.
objectFallback object for property value. Can be nullptr.
materialFallback material for property value.

◆ update() [2/2]

void kanzi::BlendModeValuePropertyNotificationHandler::update ( GlBlendModeRenderValue value,
Brush brush,
Material material 
)
inline

Updates the render value with new values.

Uses the node specified during construction and parameters given as context for the update. Do not update if dirty flag has not been set (property is not marked as dirty).

Parameters
valueRender value to update.
brushFallback brush for property value.
materialFallback material for property value.

◆ operator=()

BlendModeValuePropertyNotificationHandler& kanzi::BlendModeValuePropertyNotificationHandler::operator= ( BlendModeValuePropertyNotificationHandler &&  other)
inline

Move operator.

Parameters
otherSource object.
Returns
This object.

The documentation for this class was generated from the following file: