Message.custom


Description:

[ CCode ( has_construct_function = false ) ]
public Message.custom (MessageType type, Object? src, owned Structure? structure)

Create a new custom-typed message.

This can be used for anything not handled by other message-specific functions to pass a message to the app. The structure field can be null.

Parameters:

type

The MessageType to distinguish messages

src

The object originating the message.

structure

the structure for the message. The message will take ownership of the structure.

Returns: