Sha256: d66537c67f90e5d97697df9fd544d3ae5e540c20401e8fb99520012c125a3c3e
Contents?: true
Size: 1.56 KB
Versions: 16
Compression:
Stored size: 1.56 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 RadioBox < Window def setup spec.items << 'wxItemContainerImmutable' spec.fold_bases('wxRadioBox' => 'wxItemContainerImmutable') spec.override_inheritance_chain('wxRadioBox', %w[wxControl wxWindow wxEvtHandler wxObject]) # ignore overloads hiding common Window method spec.ignore('wxRadioBox::Enable', 'wxRadioBox::Show') spec.add_extend_code 'wxRadioBox', <<~__HEREDOC // add custom method to reach common Window method overload bool EnableWindow(bool enable=true) { return $self->Enable(enable); } // add right method to enable/disable items bool EnableItem(unsigned int n, bool enable=true) { return $self->Enable(n, enable); } // add custom method to reach common Window method overload bool ShowWindow(bool show=true) { return $self->Show(show); } // add right method to show/hide items bool ShowItem(unsigned int n, bool show=true) { return $self->Show(n, show); } __HEREDOC # rename common method spec.rename_for_ruby('Enable' => 'wxRadioBox::EnableWindow') spec.rename_for_ruby('Show' => 'wxRadioBox::ShowWindow') super end end # class Window end # class Director end # module WXRuby3
Version data entries
16 entries across 16 versions & 1 rubygems