Class: Lich::Common::GUI::UIConfig
- Inherits:
-
Object
- Object
- Lich::Common::GUI::UIConfig
- Defined in:
- documented/common/gui/parameter_objects.rb
Overview
Represents the configuration settings for the user interface.
Instance Attribute Summary collapse
-
#autosort_state ⇒ Object
Returns the value of attribute autosort_state.
-
#tab_layout_state ⇒ Object
Returns the value of attribute tab_layout_state.
-
#theme_state ⇒ Object
Returns the value of attribute theme_state.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ UIConfig
constructor
A new instance of UIConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ UIConfig
Returns a new instance of UIConfig.
69 70 71 72 73 |
# File 'documented/common/gui/parameter_objects.rb', line 69 def initialize(params = {}) @theme_state = params[:theme_state] @tab_layout_state = params[:tab_layout_state] @autosort_state = params[:autosort_state] end |
Instance Attribute Details
#autosort_state ⇒ Object
Returns the value of attribute autosort_state.
67 68 69 |
# File 'documented/common/gui/parameter_objects.rb', line 67 def autosort_state @autosort_state end |
#tab_layout_state ⇒ Object
Returns the value of attribute tab_layout_state.
67 68 69 |
# File 'documented/common/gui/parameter_objects.rb', line 67 def tab_layout_state @tab_layout_state end |
#theme_state ⇒ Object
Returns the value of attribute theme_state.
67 68 69 |
# File 'documented/common/gui/parameter_objects.rb', line 67 def theme_state @theme_state end |
Instance Method Details
#to_h ⇒ Object
75 76 77 78 79 80 81 |
# File 'documented/common/gui/parameter_objects.rb', line 75 def to_h { theme_state: @theme_state, tab_layout_state: @tab_layout_state, autosort_state: @autosort_state } end |