Sha256: ab762dcb4cb804bdf9cbab0e5799ff1b2cea4b9a0f410e4325548a0f004b0820

Contents?: true

Size: 309 Bytes

Versions: 13

Compression:

Stored size: 309 Bytes

Contents

class FontStyleFactory
  construct_with :this_object_context

  def build(name, size, color, x_scale=1, y_scale=1)
    this_object_context.in_subcontext do |style_context|
      style_context["font_style"].tap do |style|
        style.configure name, size, color, x_scale, y_scale
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gamebox-0.5.5 lib/gamebox/core/font_style_factory.rb
gamebox-0.5.4 lib/gamebox/core/font_style_factory.rb
gamebox-0.5.2 lib/gamebox/core/font_style_factory.rb
gamebox-0.5.1 lib/gamebox/core/font_style_factory.rb
gamebox-0.5.0 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.1 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc11 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc5 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc4 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc3 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc2 lib/gamebox/core/font_style_factory.rb
gamebox-0.4.0.rc1 lib/gamebox/core/font_style_factory.rb