Module: GGLib::Themes

Defined in:
lib/theme.rb,
lib/ext/themes.rb

Defined Under Namespace

Classes: BlueSteelTheme, RubygooLabelTheme, RubygooTextTheme, RubygooTheme, ShadeCheckGenCTheme, ShadeCheckGenTheme, ShadeLabelTheme, ShadeTheme, SolidTheme, WindowsTheme

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.blankObject



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# File 'lib/theme.rb', line 172

def Themes.blank
  ImageTheme.new(
    "BlankTheme",
    ThemeFontGroup.new(
      Gosu::Font.new($window, Gosu::default_font_name, 17),
      Gosu::Font.new($window, Gosu::default_font_name, 25),
      Gosu::Font.new($window, Gosu::default_font_name, 20)
    ),
    ThemeImageGroup.new(
      $gglroot+"/null.png",
      $gglroot+"/null.png",
      $gglroot+"/null.png"
    )
  )
end

.tracePanelObject



188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/theme.rb', line 188

def Themes.tracePanel 
  ImageTheme.new(
    "TraceTheme",
    ThemeFontGroup.new(
      Gosu::Font.new($window, Gosu::default_font_name, 17),
      Gosu::Font.new($window, Gosu::default_font_name, 25),
      Gosu::Font.new($window, Gosu::default_font_name, 20)
    ),
    ThemeImageGroup.new(
      $gglroot+"/media/trace.png",
      $gglroot+"/null.png",
      $gglroot+"/null.png"
    )
  )
end

Instance Method Details

#Solid(color) ⇒ Object



413
414
415
# File 'lib/ext/themes.rb', line 413

def Solid(color)
  return SolidTheme.new(color)
end