Sha256: b6a6120778d365420577327041a6b3a659ed2980c2f32c5ae42c514305d49f96

Contents?: true

Size: 999 Bytes

Versions: 8

Compression:

Stored size: 999 Bytes

Contents

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


module Wx

  class ClientDC < Wx::DC

    # Executes the given block providing a temporary (client) dc as
    # it's single argument.
    # @param [Wx::Window] win window to draw on
    # @yieldparam [Wx::ClientDC] dc the ClientDC instance to paint on
    # @return [Object] result of the block
    def self.draw_on(win) end

  end

  class PaintDC < Wx::ClientDC

    # Executes the given block providing a temporary dc as
    # it's single argument.
    # Pass a pointer to the window on which you wish to paint.
    # @note In wxRuby this method mostly exists to be consistent with the other DC classes. It is however recommended to use Wx::Window#paint instead.
    # @param [Wx::Window] win window to draw on
    # @yieldparam [Wx::PaintDC] dc the PaintDC instance to paint on
    # @return [Object] result of the block
    def self.draw_on(win) end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wxruby3-0.9.8 lib/wx/doc/client_dc.rb
wxruby3-0.9.7 lib/wx/doc/client_dc.rb
wxruby3-0.9.5 lib/wx/doc/client_dc.rb
wxruby3-0.9.4 lib/wx/doc/client_dc.rb
wxruby3-0.9.3 lib/wx/doc/client_dc.rb
wxruby3-0.9.2 lib/wx/doc/client_dc.rb
wxruby3-0.9.1 lib/wx/doc/client_dc.rb
wxruby3-0.9.0 lib/wx/doc/client_dc.rb