Sha256: 54182d16f219119981fede9cbf3b8debc079aa5c21d54d5a4731183660a551db

Contents?: true

Size: 1.52 KB

Versions: 3

Compression:

Stored size: 1.52 KB

Contents

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

###
# wxRuby3 wxWidgets interface director
###

module WXRuby3

  class Director

    class Utils < Director

      def setup
        spec.items.replace %w[utils.h]
        spec.ignore %w[
          wxGetenv
          wxGetEnv
          wxSetEnv
          wxUnsetEnv
          wxGetEnvMap
          wxSecureZeroMemory
          wxGetBatteryState
          wxGetPowerType
          wxGetDisplayName
          wxSetDisplayName
          wxGetDiskSpace
          wxLoadUserResource
          wxQsort
          wxGetOsVersion
          wxGetLinuxDistributionInfo
          wxExecute
          wxGetProcessId
          wxKill
          wxShell
          wxMicroSleep
          wxMilliSleep
          wxSleep
          wxUsleep
          wxNow
          wxDecToHex
          wxHexToDec
          wxStripMenuCodes
          ]
        spec.ignore 'wxPostDelete'  unless Config.instance.wx_version >= '3.3.0'
        spec.ignore 'wxGetEmailAddress(char *,int)',
                    'wxGetUserId(char *,int)',
                    'wxGetUserName(char *,int)'
        spec.map 'wxMemorySize' => 'Integer' do
          map_out code: <<~__CODE
            $result = LL2NUM(wxLongLongNative($1).GetValue());
            __CODE
        end
        # we want only the functions that are not ignored
        spec.do_not_generate(:classes, :typedefs, :variables, :enums, :defines)
        super
      end
    end # class Utils

  end # class Director

end # module WXRuby3

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.2 rakelib/lib/director/utils.rb
wxruby3-0.9.1 rakelib/lib/director/utils.rb
wxruby3-0.9.0 rakelib/lib/director/utils.rb