private void OnUpdatePreeditText(object text, uint cursor_pos, bool visible)
 {
     if (UpdatePreeditText != null && visible)
     {
         UpdatePreeditText(IBusText.FromObject(text), (int)cursor_pos);
     }
 }
 private void OnCommitText(object text)
 {
     if (CommitText != null)
     {
         CommitText(IBusText.FromObject(text));
     }
 }
 private void CommitTextEventHandler(object text)
 {
     if (CommitText != null)
     {
         IBusText t = (IBusText)Convert.ChangeType(text, typeof(IBusText));
         CommitText(t.Text);
     }
 }
        private void UpdatePreeditTextEventHandler(object text, uint cursor_pos, bool visible)
        {
            if (UpdatePreeditText != null)
            {
                IBusText t = (IBusText)Convert.ChangeType(text, typeof(IBusText));

                UpdatePreeditText(t.Text, cursor_pos, visible);
            }
        }
Exemple #5
0
 private void CheckAttributesForCommittingKeyboard(IBusText text)
 {
     IsCommittingKeyboard = false;
     foreach (var attribute in text.Attributes)
     {
         var iBusUnderlineAttribute = attribute as IBusUnderlineAttribute;
         if (iBusUnderlineAttribute != null && iBusUnderlineAttribute.Underline == IBusAttrUnderline.None)
         {
             IsCommittingKeyboard = true;
         }
     }
 }
		private void CheckAttributesForCommittingKeyboard(IBusText text)
		{
			IsCommittingKeyboard = false;
			foreach (var attribute in text.Attributes)
			{
				var iBusUnderlineAttribute = attribute as IBusUnderlineAttribute;
				if (iBusUnderlineAttribute != null && iBusUnderlineAttribute.Underline == IBusAttrUnderline.None)
					IsCommittingKeyboard = true;
			}
		}
Exemple #7
0
 private void OnCommitText(object text)
 {
     CommitText?.Invoke(IBusText.FromObject(text));
 }