Package: gtk

GFlags gtk:input-hints

Declaration

(gobject:define-gflags "GtkInputHints" input-hints
  (:export t
   :type-initializer "gtk_input_hints_get_type")
  (:none 0)
  (:spellcheck          #.(ash 1 0))
  (:no-spellcheck       #.(ash 1 1))
  (:word-completion     #.(ash 1 2))
  (:lowercase           #.(ash 1 3))
  (:uppercase-chars     #.(ash 1 4))
  (:uppercase-words     #.(ash 1 5))
  (:uppercase-sentences #.(ash 1 6))
  (:inhibit-osk         #.(ash 1 7))
  (:vertical-writing    #.(ash 1 8))
  (:emoji               #.(ash 1 9))
  (:no-emoji            #.(ash 1 10))
  (:private             #.(ash 1 11)))  

Values

:none
No special behaviour suggested.
:spellcheck
Suggest checking for typos.
:no-spellcheck
Suggest not checking for typos.
:word-completion
Suggest word completion.
:lowercase
Suggest to convert all text to lowercase.
:uppercase-chars
Suggest to capitalize all text.
:uppercase-words
Suggest to capitalize the first character of each word.
:uppercase-sentences
Suggest to capitalize the first word of each sentence.
:inhibit-osk
Suggest to not show an onscreen keyboard, for example, for a calculator that already has all the keys.
:vertical-writing
The text is vertical.
:emoji
Suggest offering Emoji support.
:no-emoji
Suggest not offering Emoji support.
:private
Request that the input method should not update personalized data (like typing history).

Details

Describes hints that might be taken into account by input methods or applications. Note that input methods may already tailor their behaviour according to the gtk:input-purpose value of the text entry.

Some common sense is expected when using these flags - mixing :lowercase with any of the uppercase hints makes no sense.

This flags may be extended in the future. Input methods should ignore unknown values.
 

See also

2024-4-24