Example #1
0
 void HandleElementBlurred(RocketWidget widget, Element element)
 {
     if (widget == currentRocketWidget)
     {
         onscreenKeyboardManager.KeyboardMode = OnscreenKeyboardMode.Hidden;
     }
 }
Example #2
0
 public override void ProcessEvent(Event evt)
 {
     if (RocketWidgetOnscreenKeyboardManager.GetKeyboardModeForElement(evt.TargetElement) != Engine.Platform.OnscreenKeyboardMode.Hidden)
     {
         RocketWidget.fireElementBlurred(rocketWidget, evt.TargetElement);
     }
 }
Example #3
0
 /// <summary>
 /// Fire the element blurred event.
 /// </summary>
 /// <param name="element"></param>
 internal static void fireElementBlurred(RocketWidget rocketWidget, Element element)
 {
     if (ElementBlurred != null)
     {
         ElementBlurred.Invoke(rocketWidget, element);
     }
 }
Example #4
0
 void HandleElementFocused(RocketWidget rocketWidget, Element element)
 {
     if (element != null)
     {
         currentRocketWidget = rocketWidget;
         onscreenKeyboardManager.KeyboardMode = GetKeyboardModeForElement(element);
     }
 }
Example #5
0
 public RocketDebuggerWindow()
     : base("Anomalous.libRocketWidget.RocketGui.RocketDebuggerWindow.layout")
 {
     rocketWidget = new RocketWidget((ImageBox)window.findWidget("RocketImage"), false);
     Debugger.Initialise(rocketWidget.Context);
     Debugger.SetVisible(true);
     this.Resized += RocketDebuggerWindow_Resized;
 }
Example #6
0
 void HandleRocketWidgetDisposing(RocketWidget widget)
 {
     if (widget == currentRocketWidget)
     {
         currentRocketWidget = null;
         onscreenKeyboardManager.KeyboardMode = OnscreenKeyboardMode.Hidden;
         //Handle these for keyboard toggle right away or it won't work
         onscreenKeyboardManager.toggleKeyboard();
     }
 }
Example #7
0
        public static String generateRocketWidgetName(RocketWidget widget)
        {
            String name = String.Format(NameBase, UniqueKeyGenerator.generateStringKey());

            while (rocketWidgetNames.ContainsKey(name))
            {
                name = String.Format(NameBase, UniqueKeyGenerator.generateStringKey());
            }
            rocketWidgetNames.Add(name, widget);
            return(name);
        }
Example #8
0
 public ElementBlurredListener(RocketWidget rocketWidget)
 {
     this.rocketWidget = rocketWidget;
 }
Example #9
0
 public ElementFocusListener(RocketWidget rocketWidget)
 {
     this.rocketWidget = rocketWidget;
 }