protected bool handleCheckStateChanged(CeguiDotNet.WindowEventArgs args) { // activate controller if set if (EventItemStateChanged != null) { Checkbox checkbox = new Checkbox(CeguiDotNet.Window.getCPtr(args.window).Handle, false); EventItemStateChanged((int)checkbox.getID(), checkbox.isSelected()); float selectColour = checkbox.isSelected() ? 0.0f : 1.0f; checkbox.setNormalTextColour(new CeguiDotNet.colour(selectColour, 1.0f, selectColour)); } return(true); }
protected bool handleRttSelection(CeguiDotNet.WindowEventArgs args) { if (mDebugRTTListbox.getSelectedCount() > 0) { // image set is in user data CeguiDotNet.Imageset imgSet = new CeguiDotNet.Imageset( mDebugRTTListbox.getFirstSelectedItem().getUserData(), false); mDebugRTTStaticImage.setImage(imgSet.getImage("RttImage")); } else { mDebugRTTStaticImage.setImage(null); } return(true); }
protected bool handelQuit(CeguiDotNet.WindowEventArgs args) { mRoot.QueueEndRendering(); return(true); }