Class: Lich::Common::GUI::UIConfig

Inherits:
Object
  • Object
show all
Defined in:
documented/common/gui/parameter_objects.rb

Overview

Represents the configuration settings for the user interface.

Examples:

Creating UI configuration

config = UIConfig.new(theme_state: "dark", tab_layout_state: "horizontal")

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stateObject

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_stateObject

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_stateObject

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_hObject



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