# 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 HtmlCell < Director

      include Typemap::HtmlCell

      def setup
        super
        spec.items << 'wxHtmlLinkInfo' << 'wxHtmlContainerCell' << 'wxHtmlSelection' << 'htmldefs.h'
        # the classes here are internal and for reference only
        # should never be derived from or instantiated in (Ruby) user code
        spec.disable_proxies
        spec.make_abstract 'wxHtmlCell'
        spec.make_abstract 'wxHtmlLinkInfo'
        spec.make_abstract 'wxHtmlContainerCell'
        spec.gc_as_untracked 'wxHtmlLinkInfo' # no tracking
        spec.ignore 'wxHtmlCell::Find'
        # not useful for wxRuby as we do not support customizing these
        spec.ignore 'wxHtmlCell::AdjustPagebreak',
                    'wxHtmlCell::Draw',
                    'wxHtmlCell::DrawInvisible',
                    'wxHtmlCell::Layout',
                    'wxHtmlCell::ProcessMouseClick',
                    'wxHtmlCell::GetMouseCursor',
                    'wxHtmlCell::GetMouseCursorAt'
        spec.ignore 'wxHtmlContainerCell::SetAlign',
                    'wxHtmlContainerCell::SetWidthFloat'
      end
    end # class HtmlCell

  end # class Director

end # module WXRuby3
