Sha256: 5ca39aebdb4488882111631336d7aba4bcf5e0259656f5e117b34f53575b9997

Contents?: true

Size: 903 Bytes

Versions: 11

Compression:

Stored size: 903 Bytes

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


module Wx

  class SVGFileDC < Wx::DC

    # Executes the given block providing a temporary dc as it's single argument.
    # Initializes a wxSVGFileDC with the given filename, width and height at dpi resolution, and an optional title.
    # The title provides a readable name for the SVG document.
    # @param [String] filename name of file to create
    # @param [Integer] width width for SVG image
    # @param [Integer] height height for SVG image
    # @param [Float] dpi resolution for SVG image
    # @param [String] title readable name for the SVG document
    # @yieldparam [Wx::SVGFileDC] dc the SVGFileDC instance to paint on
    # @return [::Object] result of the block
    def self.draw_on(filename, width=320, height=240, dpi=72, title='') end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wxruby3-1.4.2 lib/wx/doc/svg_file_dc.rb
wxruby3-1.4.1 lib/wx/doc/svg_file_dc.rb
wxruby3-1.4.0 lib/wx/doc/svg_file_dc.rb
wxruby3-1.3.1 lib/wx/doc/svg_file_dc.rb
wxruby3-1.3.0 lib/wx/doc/svg_file_dc.rb
wxruby3-1.2.1 lib/wx/doc/svg_file_dc.rb
wxruby3-1.2.0 lib/wx/doc/svg_file_dc.rb
wxruby3-1.1.2 lib/wx/doc/svg_file_dc.rb
wxruby3-1.1.1 lib/wx/doc/svg_file_dc.rb
wxruby3-1.1.0 lib/wx/doc/svg_file_dc.rb
wxruby3-1.0.1 lib/wx/doc/svg_file_dc.rb