};
//added
- Window.Instance.Touched += (sender, e) =>
+ Window.Instance.Touch += (sender, e) =>
{
Tizen.Log.Debug("NUI", "Window Touch signal callback! To avoid crash, when losing key focus, set here again unless the NextView is null");
FocusManager.Instance.SetCurrentFocusView(label[3]);
{
// Connect the signal callback for window touched signal
_window = Window.Instance;
- _window.Touched += OnWindowTouched;
+ _window.Touch += OnWindowTouched;
// Add a _text label to the window
_text = new TextLabel("Hello Mono World");
{
Window window = Window.Instance;
window.BackgroundColor = Color.White;
- window.Touched += OnWindowTouched;
- window.KeyEvent += OnWindowKeyEvent;
+ window.Touch += OnWindowTouched;
+ window.Key += OnWindowKeyEvent;
TextLabel pixelLabel = new TextLabel("Test Pixel Size 32.0f");
pixelLabel.Position2D = new Position2D(10, 10);
Log("Customized Application Initialize event handler");
window = Window.Instance;
window.BackgroundColor = Color.Cyan;
- window.Touched += OnWindowTouched;
- window.WheelRolled += OnWindowWheelMoved;
- window.KeyEvent += OnWindowKeyPressed;
+ window.Touch += OnWindowTouched;
+ window.WheelRoll += OnWindowWheelMoved;
+ window.Key += OnWindowKeyPressed;
//window.EventProcessingFinished += OnWindowEventProcessingFinished;
layer = window.GetDefaultLayer();
private void Initialize()
{
_window = Window.Instance;
- _window.Touched += OnWindowTouched;
+ _window.Touch += OnWindowTouched;
_imageView = new ImageView();
_imageView.ResourceUrl = resources+"/images/gallery-3.jpg";
// Connect to the OnRelayout signal
_scrollView.Relayout += OnScrollViewRelayout;
//_scrollView.Touched += OnTouch;
- _scrollView.WheelRolled += Onwheel;
+ _scrollView.WheelRoll += Onwheel;
_scrollView.FocusGained += OnKey;
_text = new TextLabel("View Touch Event Handler Test");
_text.ParentOrigin = ParentOrigin.Center;
Log("Initialize() is called!");
Window window = Window.Instance;
window.BackgroundColor = Color.White;
- window.Touched += OnWindowTouched;
- window.Touched += OnWindowTouched2;
+ window.Touch += OnWindowTouched;
+ window.Touch += OnWindowTouched2;
//window.EventProcessingFinished += OnEventProcessingFinished;
- window.WheelRolled += OnWindowWheelEvent;
+ window.WheelRoll += OnWindowWheelEvent;
// Add a _text label to the window
_text = new TextLabel("Hello Mono World");
FocusManager.Instance.SetCurrentFocusView(view[0]);
FocusManager.Instance.PreFocusChange += Instance_PreFocusChange;
- Window.Instance.Touched += Instance_Touch;
+ Window.Instance.Touch += Instance_Touch;
}
private void Instance_Touch(object sender, Window.TouchEventArgs e)
"Enter - Change BG image\n";
Window.Instance.Add(guide);
- Window.Instance.KeyEvent += Instance_Key;
+ Window.Instance.Key += Instance_Key;
FocusManager.Instance.SetCurrentFocusView(view[0]);
- Window.Instance.Touched += Instance_Touch;
+ Window.Instance.Touch += Instance_Touch;
_window = Window.Instance;
_window.WindowFocusChanged += _window_WindowFocusChanged;
/// Event for Touched signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
/// Touched signal is emitted when touch input is received.<br>
/// </summary>
- public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touched
+ public event EventHandlerWithReturnType<object, TouchEventArgs, bool> Touch
{
add
{
/// Event for Hovered signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
/// Hovered signal is emitted when hover input is received.<br>
/// </summary>
- public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hovered
+ public event EventHandlerWithReturnType<object, HoverEventArgs, bool> Hover
{
add
{
/// Event for WheelMoved signal which can be used to subscribe/unsubscribe the event handler provided by the user.<br>
/// WheelMoved signal is emitted when wheel event is received.<br>
/// </summary>
- public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelRolled
+ public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelRoll
{
add
{
/// then when the last finger is lifted.<br>
/// An interrupted event will also be emitted (if it occurs).<br>
/// </summary>
- public event EventHandler<TouchEventArgs> Touched
+ public event EventHandler<TouchEventArgs> Touch
{
add
{
/// <summary>
/// Event emitted when wheel event is received.
/// </summary>
- public event EventHandler<WheelEventArgs> WheelRolled
+ public event EventHandler<WheelEventArgs> WheelRoll
{
add
{
/// <summary>
/// Event emitted when key event is received.
/// </summary>
- public event EventHandler<KeyEventArgs> KeyEvent
+ public event EventHandler<KeyEventArgs> Key
{
add
{