Sha256: 99df267a74d1082311e5cf32aff167054d2bc9f8c2e80b1ece29214f42c48b7e

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

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

7 entries across 7 versions & 1 rubygems

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