{
private View _current;
private View _proposed;
- private View.KeyboardFocus.Direction _direction;
+ private View.Focus.Direction _direction;
/**
* @brief Current - is the current focused View.
* @brief Direction - is the direction of Focus change.
*
*/
- public View.KeyboardFocus.Direction Direction
+ public View.Focus.Direction Direction
{
get
{
public delegate View PreFocusChangeEventHandler(object source, PreFocusChangeEventArgs e);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
- public delegate IntPtr PreFocusChangeEventCallbackDelegate(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction);
+ public delegate IntPtr PreFocusChangeEventCallbackDelegate(IntPtr current, IntPtr proposed, View.Focus.Direction direction);
private PreFocusChangeEventHandler _FocusManagerPreFocusChangeEventHandler;
private PreFocusChangeEventCallbackDelegate _FocusManagerPreFocusChangeEventCallbackDelegate;
}
// Callback for FocusManager PreFocusChangeSignal
- private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.KeyboardFocus.Direction direction)
+ private IntPtr OnPreFocusChange(IntPtr current, IntPtr proposed, View.Focus.Direction direction)
{
View view = null;
PreFocusChangeEventArgs e = new PreFocusChangeEventArgs();
}
/**
- * @brief Event for FocusedViewEnterKeyPressed signal which can be used to subscribe/unsubscribe the event handler
+ * @brief Event for FocusedViewActivated signal which can be used to subscribe/unsubscribe the event handler
* (in the type of FocusedViewEnterKeyEventHandler) provided by the user.
- * FocusedViewEnterKeyPressed signal is emitted when the current focused view has the enter key pressed on it.
+ * FocusedViewActivated signal is emitted when the current focused view has the enter key pressed on it.
*/
- public event FocusedViewEnterKeyEventHandler FocusedViewEnterKeyPressed
+ internal event FocusedViewEnterKeyEventHandler FocusedViewActivated
{
add
{
{
_FocusManagerFocusedViewEnterKeyEventHandler += value;
- _FocusManagerFocusedViewEnterKeyEventCallbackDelegate = new FocusedViewEnterKeyEventCallbackDelegate(OnFocusedViewEnterKey);
+ _FocusManagerFocusedViewEnterKeyEventCallbackDelegate = new FocusedViewEnterKeyEventCallbackDelegate(OnFocusedViewActivate);
this.FocusedViewEnterKeySignal().Connect(_FocusManagerFocusedViewEnterKeyEventCallbackDelegate);
}
}
}
// Callback for FocusManager FocusedViewEnterKeySignal
- private void OnFocusedViewEnterKey(IntPtr view)
+ private void OnFocusedViewActivate(IntPtr view)
{
FocusedViewEnterKeyEventArgs e = new FocusedViewEnterKeyEventArgs();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public static FocusManager Get() {
+ internal static FocusManager Get() {
FocusManager ret = new FocusManager(NDalicManualPINVOKE.FocusManager_Get(), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
return ret;
}
- public bool MoveFocus(View.KeyboardFocus.Direction direction) {
+ public bool MoveFocus(View.Focus.Direction direction) {
bool ret = NDalicManualPINVOKE.FocusManager_MoveFocus(swigCPtr, (int)direction);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- public PreFocusChangeSignal PreFocusChangeSignal() {
+ internal PreFocusChangeSignal PreFocusChangeSignal() {
PreFocusChangeSignal ret = new PreFocusChangeSignal(NDalicManualPINVOKE.FocusManager_PreFocusChangeSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public FocusChangedSignal FocusChangedSignal() {
+ internal FocusChangedSignal FocusChangedSignal() {
FocusChangedSignal ret = new FocusChangedSignal(NDalicManualPINVOKE.FocusManager_FocusChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public FocusGroupChangedSignal FocusGroupChangedSignal() {
+ internal FocusGroupChangedSignal FocusGroupChangedSignal() {
FocusGroupChangedSignal ret = new FocusGroupChangedSignal(NDalicManualPINVOKE.FocusManager_FocusGroupChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
- public ViewSignal FocusedViewEnterKeySignal() {
+ internal ViewSignal FocusedViewEnterKeySignal() {
ViewSignal ret = new ViewSignal(NDalicManualPINVOKE.FocusManager_FocusedActorEnterKeySignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
public interface ICustomFocusAlgorithm
{
- View GetNextFocusableView(View current, View proposed, View.KeyboardFocus.Direction direction);
+ View GetNextFocusableView(View current, View proposed, View.Focus.Direction direction);
}
private class CustomAlgorithmInterfaceWrapper : CustomAlgorithmInterface
_customFocusAlgorithm = customFocusAlgorithm;
}
- public override View GetNextFocusableView(View current, View proposed, View.KeyboardFocus.Direction direction)
+ public override View GetNextFocusableView(View current, View proposed, View.Focus.Direction direction)
{
View currentView = View.DownCast<View>(current);
View proposedView = View.DownCast<View>(proposed);