Sha256: 077ec1c190c3436a062ebe6adb9f11807bd81dd55d5f20831d6ccb1233acd085
Contents?: true
Size: 1.31 KB
Versions: 12
Compression:
Stored size: 1.31 KB
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 wxWidgets interface director ### require_relative './window' module WXRuby3 class Director class AnimationCtrl < Window include Typemap::IOStreams def setup super if Config.instance.wx_version >= '3.3.0' spec.items << 'wxAnimationBundle' spec.ignore 'wxAnimationBundle::GetAll', ignore_doc: false spec.add_extend_code 'wxAnimationBundle', <<~__HEREDOC VALUE get_all() const { const std::vector<wxAnimation>& ani_list = $self->GetAll(); VALUE rb_ani_list = rb_ary_new(); for (const wxAnimation& ani : ani_list) { VALUE rb_ani = SWIG_NewPointerObj(new wxAnimation(ani), SWIGTYPE_p_wxAnimation, SWIG_POINTER_OWN); rb_ary_push(rb_ani_list, rb_ani); } return rb_ani_list; } __HEREDOC spec.map 'const std::vector<wxAnimation>&' => 'Array<Wx::Animation>', swig: false do map_out code: '' end end spec.do_not_generate :variables, :enums, :defines, :functions end end # class AnimationCtrl end # class Director end # module WXRuby3
Version data entries
12 entries across 12 versions & 1 rubygems