Sha256: 12ffeebc325715ae51dc3f0842b50f1179fc9890660ac3c7ea410c69082855c2

Contents?: true

Size: 987 Bytes

Versions: 16

Compression:

Stored size: 987 Bytes

Contents

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


module Wx

  # Mixin module to provide convenience method for defining Windows/Control ids.
  # @example Define an ID module
  #   module MyIDS
  #     include Wx::IDHelper
  #     # by default the offset for the next id is Wx::ID_HIGHEST which makes 'Wx::ID_HIGHEST+1'
  #     # the first id value returned.
  #     MY_FIRST_ID = self.next_id
  #     MY_SECOND_ID = self.next_id   # MY_SECOND_ID will have value Wx::ID_HIGHEST+2
  #
  #     # optionally a user defined offset can be specified like this:
  #     MY_OTHER_ID = self.next_id(MY_FIRST_ID+1000)  # MY_OTHER_ID will have value MY_FIRST_ID+1001
  #     MY_OTHER_ID2 = self.next_id                   # MY_OTHER_ID2 will have value MY_FIRST_ID+1002
  #   end
  #
  module IDHelper

    # Provides the singleton method #next_id to the including module.
    def self.included(base) end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/doc/id_helper.rb
wxruby3-1.3.0 lib/wx/doc/id_helper.rb
wxruby3-1.2.1 lib/wx/doc/id_helper.rb
wxruby3-1.2.0 lib/wx/doc/id_helper.rb
wxruby3-1.1.2 lib/wx/doc/id_helper.rb
wxruby3-1.1.1 lib/wx/doc/id_helper.rb
wxruby3-1.1.0 lib/wx/doc/id_helper.rb
wxruby3-1.0.1 lib/wx/doc/id_helper.rb
wxruby3-0.9.8 lib/wx/doc/id_helper.rb
wxruby3-0.9.7 lib/wx/doc/id_helper.rb
wxruby3-0.9.5 lib/wx/doc/id_helper.rb
wxruby3-0.9.4 lib/wx/doc/id_helper.rb
wxruby3-0.9.3 lib/wx/doc/id_helper.rb
wxruby3-0.9.2 lib/wx/doc/id_helper.rb
wxruby3-0.9.1 lib/wx/doc/id_helper.rb
wxruby3-0.9.0 lib/wx/doc/id_helper.rb