Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUI] Add value type: control state #6546

Open
wants to merge 1 commit into
base: DevelNUI
Choose a base branch
from

Conversation

rabbitfor
Copy link
Collaborator

@rabbitfor rabbitfor commented Jan 6, 2025

Description of Change

Introduce the value type of ControlState. It replaces ControlState implementation.

API Changes

  • ACR:

@TizenAPI-Bot
Copy link
Collaborator

Internal API Changed

Added: 23, Removed: 0, Changed: 0

Added

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Tizen.NUI.BaseComponents.LControlState

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::All

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Disabled

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledSelected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Focused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Normal

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Other

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Pressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Selected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedPressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Contains(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(System.Object)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::HasIntersectionWith(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Equality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Inequality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Int32 Tizen.NUI.BaseComponents.LControlState::GetHashCode()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.String Tizen.NUI.BaseComponents.LControlState::ToString()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Create(System.String)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Addition(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Subtraction(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

/// Defines a value type of control state.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public readonly struct LControlState
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed on offline,
It is slightly different with other L-Struct so I think it could be renamed something else. ControlState has this struct(has-a), so State, or StateValue could be the option.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the updated code. Thank you :)

@TizenAPI-Bot
Copy link
Collaborator

Internal API Changed

Added: 23, Removed: 0, Changed: 0

Added

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Tizen.NUI.BaseComponents.LControlState

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::All

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Disabled

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledSelected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Focused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Normal

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Other

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Pressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Selected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedPressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Contains(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(System.Object)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::HasIntersectionWith(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Equality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Inequality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Int32 Tizen.NUI.BaseComponents.LControlState::GetHashCode()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.String Tizen.NUI.BaseComponents.LControlState::ToString()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Create(System.String)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Addition(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Subtraction(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

Introduce the value type of ControlState. It replaces ControlState implementation.

Signed-off-by: Jiyun Yang <[email protected]>
@TizenAPI-Bot
Copy link
Collaborator

Internal API Changed

Added: 23, Removed: 0, Changed: 0

Added

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ Tizen.NUI.BaseComponents.LControlState

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::All

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Disabled

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::DisabledSelected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Focused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Normal

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Other

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Pressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Selected

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedFocused

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::SelectedPressed

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Contains(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(System.Object)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::Equals(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Boolean Tizen.NUI.BaseComponents.LControlState::HasIntersectionWith(Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Equality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static System.Boolean Tizen.NUI.BaseComponents.LControlState::op_Inequality(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.Int32 Tizen.NUI.BaseComponents.LControlState::GetHashCode()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ System.String Tizen.NUI.BaseComponents.LControlState::ToString()

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::Create(System.String)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Addition(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

+ /// <since_tizen>none</since_tizen
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ static Tizen.NUI.BaseComponents.LControlState Tizen.NUI.BaseComponents.LControlState::op_Subtraction(Tizen.NUI.BaseComponents.LControlState,Tizen.NUI.BaseComponents.LControlState)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants