Sha256: 2cbd5f758a5555fc41a157f68ab81ab44b3c67c20ce5c79f06b7c91456a259bd

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

###
# wxRuby3 wxWidgets interface director
# Copyright (c) M.J.N. Corino, The Netherlands
###

module WXRuby3

  class Director

    class RichTextBuffer < Director

      include Typemap::RichText
      include Typemap::IOStreams

      def setup
        spec.disable_proxies
        spec.items.replace %w[
          wxTextAttrBorder
          wxTextAttrBorders
          wxTextBoxAttr
          wxRichTextAttr
          wxRichTextBuffer
          ]
        spec.gc_as_object 'wxRichTextAttr'
        spec.gc_never 'wxRichTextBuffer'
        spec.override_inheritance_chain('wxRichTextBuffer', %w[wxObject])
        spec.ignore %w[
          wxRichTextBuffer::GetBatchedCommand
          wxRichTextBuffer::GetCommandProcessor
          ]
        spec.disown 'wxRichTextFileHandler* handler'
        spec.ignore(%w[wxRICHTEXT_ALL wxRICHTEXT_NONE wxRICHTEXT_NO_SELECTION])
        # special typemap for const wxChar wxRichTextLineBreakChar;
        spec.add_swig_code <<~__HEREDOC
          %typemap(constcode,noblock=1) const wxChar {
            %set_constant("$symname", rb_str_new2((const char *)wxString($value).utf8_str()));
          }
          __HEREDOC
        spec.do_not_generate(:functions)
        super
      end
    end # class RichTextBuffer

  end # class Director

end # module WXRuby3

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.11 rakelib/lib/director/richtext_buffer.rb
wxruby3-0.9.0.pre.beta.10 rakelib/lib/director/richtext_buffer.rb
wxruby3-0.9.0.pre.beta.9 rakelib/lib/director/richtext_buffer.rb
wxruby3-0.9.0.pre.beta.8 rakelib/lib/director/richtext_buffer.rb