Class: Fox::FXSettings
- Inherits:
-
Object
- Object
- Fox::FXSettings
- Defined in:
- lib/fox16/core.rb,
lib/fox16/aliases.rb,
lib/fox16/settings.rb
Instance Method Summary (collapse)
-
- (Object) each_section
Iterate over sections (where each section is a dictionary).
- - (Boolean) existingEntry?(*args)
- - (Boolean) existingSection?(*args)
- - (Object) modified=(*args)
- - (Boolean) modified?
-
- (Object) readBoolEntry(section, key, default = false)
Read a boolean registry entry from the specified section and key.
-
- (Object) writeBoolEntry(section, key, value)
Write a boolean registry value to the specified section and key.
Instance Method Details
- (Object) each_section
Iterate over sections (where each section is a dictionary).
9 10 11 12 13 14 15 |
# File 'lib/fox16/settings.rb', line 9 def each_section pos = first while pos < getTotalSize() yield data(pos) pos = self.next(pos) end end |
- (Boolean) existingEntry?(*args)
3891 3892 3893 |
# File 'lib/fox16/aliases.rb', line 3891 def existingEntry?(*args) existingEntry(*args) end |
- (Boolean) existingSection?(*args)
3894 3895 3896 |
# File 'lib/fox16/aliases.rb', line 3894 def existingSection?(*args) existingSection(*args) end |
- (Object) modified=(*args)
3897 3898 3899 |
# File 'lib/fox16/aliases.rb', line 3897 def modified=(*args) setModified(*args) end |
- (Boolean) modified?
3900 3901 3902 |
# File 'lib/fox16/aliases.rb', line 3900 def modified? isModified end |
- (Object) readBoolEntry(section, key, default = false)
Read a boolean registry entry from the specified section and key. If no value is found, the default value is returned.
257 258 259 260 |
# File 'lib/fox16/core.rb', line 257 def readBoolEntry(section, key, default=false) default = default ? 1 : 0 readIntEntry(section, key, default) != 0 end |
- (Object) writeBoolEntry(section, key, value)
Write a boolean registry value to the specified section and key.
265 266 267 |
# File 'lib/fox16/core.rb', line 265 def writeBoolEntry(section, key, value) writeIntEntry(section, key, value ? 1 : 0) end |