/// <summary> /// Emits the signal. /// </summary> /// <param name="arg1">The first value to pass to callbacks</param> /// <param name="arg2">The second value to pass to callbacks</param> /// <returns>The value returned by the last callback, or a default constructed value if no callbacks are connected</returns> /// <since_tizen> 4 </since_tizen> public ImfManager.ImfCallbackData Emit(ImfManager arg1, ImfManager.ImfEventData arg2) { ImfManager.ImfCallbackData ret = new ImfManager.ImfCallbackData(NDalicManualPINVOKE.ImfEventSignalType_Emit(swigCPtr, ImfManager.getCPtr(arg1), ImfManager.ImfEventData.getCPtr(arg2)), true); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void Initialize() { Window window = Window.Instance; window.BackgroundColor = Color.White; PropertyMap propertyMap = new PropertyMap(); propertyMap.Add("placeholderText", new PropertyValue("TextEditor Placeholder Text")); propertyMap.Add("placeholderColor", new PropertyValue(Color.Red)); propertyMap.Add("placeholderPointSize", new PropertyValue(12.0f)); PropertyMap fontStyleMap = new PropertyMap(); fontStyleMap.Add("weight", new PropertyValue("bold")); fontStyleMap.Add("width", new PropertyValue("condensed")); fontStyleMap.Add("slant", new PropertyValue("italic")); propertyMap.Add("placeholderFontStyle", new PropertyValue(fontStyleMap)); editor = new TextEditor() { Size2D = new Size2D(500, 300), Position2D = new Position2D(10, 550), BackgroundColor = Color.Magenta, Focusable = true, Placeholder = propertyMap }; window.Add(editor); editor.TextChanged += (obj, e) => { Tizen.Log.Fatal("NUI", "editor line count: " + e.TextEditor.LineCount); }; editor.ScrollStateChanged += (obj, e) => { Tizen.Log.Fatal("NUI", "editor scroll state:" + e.ScrollState); }; editor.KeyEvent += OnKeyEvent; Tizen.Log.Debug("NUI", "editor id: " + editor.ID); imfManager = ImfManager.Get(); imfManager.AutoEnableInputPanel(false); imfManager.SetInputPanelUserData("layouttype = 1 & entrylimit = 255 & action = clearall_for_voice_commit & caller = org.volt.search - all"); // send privatecommand event ImfManager.ImfEventData imfevent = new ImfManager.ImfEventData(ImfManager.ImfEvent.PrivateCommand, "", 0, 0); imfManager.EventReceived += ImfManager_ImfManagerEventReceived; imfManager.LanguageChanged += ImfManager_LanguageChanged; imfManager.Activated += (obj, e) => { Tizen.Log.Debug("NUI", "ImfManager Activated !!!!!"); }; imfManager.StatusChanged += (obj, e) => { Tizen.Log.Debug("NUI", "ImfManager StatusChanged: !!!!!" + e.StatusChanged); }; imfManager.Resized += (obj, e) => { Tizen.Log.Debug("NUI", "ImfManager Resized !!!!!"); }; imfManager.KeyboardTypeChanged += (obj, e) => { Tizen.Log.Debug("NUI", "ImfManager KeyboardTypeChanged: !!!!!" + e.KeyboardType); }; button = new PushButton() { LabelText = "Button", Size2D = new Size2D(400, 200), Position2D = new Position2D(10, -10), ParentOrigin = ParentOrigin.BottomLeft, PivotPoint = PivotPoint.BottomLeft, PositionUsesPivotPoint = true, Focusable = true }; window.Add(button); button.UpFocusableView = editor; editor.DownFocusableView = button; FocusManager.Instance.SetCurrentFocusView(button); }