Fcitx
Public Member Functions | List of all members
fcitx::InputMethodEntry Class Reference

Public Member Functions

 InputMethodEntry (const std::string &uniqueName, const std::string &name, const std::string &languageCode, const std::string &addon)
 
 InputMethodEntry (const InputMethodEntry &)=delete
 
InputMethodEntrysetNativeName (const std::string &nativeName)
 
InputMethodEntrysetIcon (const std::string &icon)
 
InputMethodEntrysetLabel (const std::string &label)
 
InputMethodEntrysetConfigurable (bool configurable)
 
void setUserData (std::unique_ptr< InputMethodEntryUserData > userData)
 
const InputMethodEntryUserDatauserData () const
 
const std::string & name () const
 
const std::string & nativeName () const
 
const std::string & icon () const
 
const std::string & uniqueName () const
 
const std::string & languageCode () const
 
const std::string & addon () const
 
const std::string & label () const
 A compact label that intented to be shown in a compact space. More...
 
bool isConfigurable () const
 
bool isKeyboard () const
 Helper function to check if this is a keyboard input method. More...
 

Detailed Description

Definition at line 23 of file inputmethodentry.h.

Member Function Documentation

◆ isKeyboard()

bool fcitx::InputMethodEntry::isKeyboard ( ) const

Helper function to check if this is a keyboard input method.

Returns
is keyboard or not.

Definition at line 110 of file inputmethodentry.cpp.

◆ label()

const std::string & fcitx::InputMethodEntry::label ( ) const

A compact label that intented to be shown in a compact space.

usually some latin-character, or a single character of the input method language.

UI may choose to strip it to a shorter version if the content is too long. For example, classicui will take the first section of text to make it fit with in 3 character width. custom -> cus fr-tg -> fr mon-a1 -> mon us (intl) -> us

Returns
label text

Definition at line 102 of file inputmethodentry.cpp.


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