set_content_type


Description:

public virtual signal void set_content_type (uint purpose, uint hints)

Emitted when the client application content-type (primary purpose and hints) is set.

The engine could change the behavior according to the content-type. Implement the member function IBusEngineClass::set_content_type in extended class to receive this signal.

For example, if the client application wants to restrict input to numbers, this signal will be emitted with purpose set to NUMBER, so the engine can switch the input mode to latin.

Note:

Argument user_data is ignored in this function.

Parameters:

purpose

Primary purpose of the input context, as an InputPurpose.

hints

Hints that augment purpose, as an InputHints.