source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/animation.rb
Ruby
mit
177
master
1,384
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx class Animation # Redefine the initialize method so it raises an exception if a ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/toolbartool.rb
Ruby
mit
177
master
288
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license class Wx::ToolBarTool alias :id :get_id alias :wx_id :get_id end
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/event_loop.rb
Ruby
mit
177
master
282
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx # simply an alias EventLoop = GUIEventLoop end
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/top_level_window.rb
Ruby
mit
177
master
475
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx class TopLevelWindow # create PersistentObject for toplevel windows (incl. Dialog and Frame) def create_persistent_object PersistentTLW.new(self) end # fix missing method on som...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/point.rb
Ruby
mit
177
master
3,281
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license class Wx::Point include Comparable # More informative output when converted to string def to_...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/icon.rb
Ruby
mit
177
master
2,392
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Specific type of platform-dependent image used for frames on Windows and # Linux. Normally Bitmap i...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/array_ext.rb
Ruby
mit
177
master
747
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx # Mixin module providing Array extensions. module ArrayExt def to_size w, h...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/textctrl.rb
Ruby
mit
177
master
2,348
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx if Wx.has_feature?(:USE_SPELLCHECK) class TextProofOptions def initialize(schk...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/window_update_locker.rb
Ruby
mit
177
master
554
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Emulates the wxWidgets WindowUpdateLocker class, by providing a scope within # which window can be ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/xmlresource.rb
Ruby
mit
177
master
2,131
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license class Wx::XmlResource class << self wx_get = self.instance_method(:get) wx_redefine_method(...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/find_replace_dialog.rb
Ruby
mit
177
master
805
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx class FindReplaceDialog < Wx::Dialog # add caching for FindReplaceData object #...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/module_ext.rb
Ruby
mit
177
master
299
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Kernel def wx_redefine_method(mtd, &block) warn_lvl = $VERBOSE $VERBOSE = nil undef_method(mtd) define_method(mtd, &block) ensure $VERBOSE = warn_lvl end end
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/splash_screen.rb
Ruby
mit
177
master
2,430
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license class Wx::SplashScreen # special handling for keyword ctor extension here # as this class deviat...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/text_entry.rb
Ruby
mit
177
master
592
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx module TextEntry wx_auto_complete = instance_method :auto_complete wx_redefine_...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/art_locator.rb
Ruby
mit
177
master
3,180
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx module ArtLocator ART_FOLDER = 'art' class << self # This is not put in...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/geometry.rb
Ruby
mit
177
master
2,302
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx def self.deg_to_rad(deg) (deg * Math::PI) / 180.0 end def self.rad_to_deg(rad) (rad * 180.0) / Math::PI end class Point2DInt alias :x :get_x alias :x= :set_x alias :y :ge...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/cursor.rb
Ruby
mit
177
master
1,278
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx def self.Cursor(name, bmp_type = nil, *rest, art_path: nil, art_section: nil) unless...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/bitmap_combobox.rb
Ruby
mit
177
master
936
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx class BitmapComboBox < Wx::ComboBox wx_append = instance_method :append wx_rede...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/event.rb
Ruby
mit
177
master
2,242
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license require_relative './evthandler' module Wx # Base class for all events class Event # overlo...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/defs.rb
Ruby
mit
177
master
883
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license require_relative './enum' module Wx class Orientation < Wx::Enum set_non_distinct(%i[ORIENTAT...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/sizer.rb
Ruby
mit
177
master
8,338
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Classes for automatically managing layouts module Wx class Sizer # Redefine #add and #insert...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/dc.rb
Ruby
mit
177
master
1,792
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx # Class for drawing primitives and bitmaps on various outputs (screen, paper) class DC ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/enum.rb
Ruby
mit
177
master
1,961
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license class Wx::Enum class << self def set_non_distinct(lst) raise TypeError, 'Expected Array...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/core/calendar_ctrl.rb
Ruby
mit
177
master
305
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx if PLATFORM == 'WXOSX' GenericCalendarCtrl = CalendarCtrl end end
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/prt/page_setup_dialog.rb
Ruby
mit
177
master
414
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx::PRT # not a real dialog but let's be consistent def self.PageSetupDialog(*args, &block) dlg = PageSetupDialog.new(*args) begin block.call(dlg) if block_given? rescue Exceptio...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/prt/require.rb
Ruby
mit
177
master
248
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::PRT sub package for wxRuby3 require_relative './keyword_defs' require_relative './previewframe' require_relative './page_setup_dialog'
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/prt/previewframe.rb
Ruby
mit
177
master
660
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Frame that displays a print preview class Wx::PRT::PreviewFrame # a PreviewFrame has a preview associated with it that must be # protected from Ruby's GC. However, there is no C++ method to access # the Wx...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/prt/keyword_defs.rb
Ruby
mit
177
master
495
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # = WxSugar - Keyword Constructors Classes # Wx::PRT sub package for wxRuby3 # wxPrintDialog Standa...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/stc/keyword_defs.rb
Ruby
mit
177
master
437
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # = WxSugar - Keyword Constructors Classes # Wx::STC sub package for wxRuby3 Wx::define_keyword_ctor...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/stc/require.rb
Ruby
mit
177
master
250
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::STC sub package for wxRuby3 require_relative './events/evt_list' require_relative './keyword_defs' require_relative './styled_text_ctrl'
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/stc/styled_text_ctrl.rb
Ruby
mit
177
master
507
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module STC class StyledTextCtrl # Overload to provide Enumerator without block wx_each_line = instance_method :each_line wx_redefine_method :each_line do |&block| if blo...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/wxruby/base.rb
Ruby
mit
177
master
2,719
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxruby command handler base require 'optparse' require "rbconfig" module WxRuby RUBY = ENV["RUBY"] || File.join( RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/wxruby/cmd/test.rb
Ruby
mit
177
master
2,404
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxruby unit test command handler #-------------------------------------------------------------------- require 'fileutils' module WxRuby module Commands class Test DESC = 'Run wxRuby3 regression te...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/wxruby/cmd/setup.rb
Ruby
mit
177
master
7,404
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxruby setup command handler #-------------------------------------------------------------------- require 'fileutils' require 'json' module WxRuby module Commands class Setup DESC = 'Run wxRuby3 p...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/wxruby/cmd/sampler.rb
Ruby
mit
177
master
1,826
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxruby sampler command handler #-------------------------------------------------------------------- require 'fileutils' module WxRuby module Commands class Sampler DESC = 'Run wxRuby3 Sampler appl...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/wxruby/cmd/check.rb
Ruby
mit
177
master
6,730
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxruby check command handler #-------------------------------------------------------------------- require 'fileutils' require 'plat4m' module WxRuby module Commands class Check LOAD_ERRORS = { ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/grid/require.rb
Ruby
mit
177
master
265
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::Grid sub package for wxRuby3 #require_relative './ext' require_relative './events/evt_list' require_relative './keyword_defs' require_relative './grid'
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/grid/grid.rb
Ruby
mit
177
master
1,396
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # A data-oriented editable table control. module Wx module GRID class Grid alias :set_table :assign_table alias :table= :assign_table wx_each_selected_block = instance_method :each_selec...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/grid/keyword_defs.rb
Ruby
mit
177
master
484
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # = WxSugar - Keyword Constructors Classes # Wx::Grid sub package for wxRuby3 # wxGrid A grid (tab...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/html/htmlhelpcontroller.rb
Ruby
mit
177
master
1,061
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module HTML class HtmlHelpController def self.instance(*args) @instance ||= new(*args) end # cache any explicitly assigned config for GC protection wx_use_config ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/html/require.rb
Ruby
mit
177
master
352
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::HTML sub package for wxRuby3 #require_relative './ext' require_relative './events/evt_list' require_relative './keyword_defs' require_relative './htmlwindow' require_relative './htmlhelpcontroller' require_r...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/html/keyword_defs.rb
Ruby
mit
177
master
912
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # = WxSugar - Keyword Constructors Classes # Wx::HTML sub package for wxRuby3 # wxHtmlWindow - Cont...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/html/htmlwindow.rb
Ruby
mit
177
master
634
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module HTML class HtmlWindow # Need to override HtmlWindow.add_filter to provide cashing # for the added custom html filters to prevent premature GC class << self def ht...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/html/simple_html_listbox.rb
Ruby
mit
177
master
1,473
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module HTML class SimpleHtmlListBox < Wx::HTML::HtmlListBox # force these (inherited) methods to be protected protected :set_item_count, :item_count= protected :get_item_count,...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/web/require.rb
Ruby
mit
177
master
207
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::WEB sub package for wxRuby3 require_relative './events/evt_list' require_relative './webview'
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/web/webview.rb
Ruby
mit
177
master
4,193
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license module Wx module WEB WEBVIEW_DEFAULT_URL_STR = 'about:blank' WEBVIEW_BACKEND_WEB_KIT = 'w...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/rich_text_ctrl.rb
Ruby
mit
177
master
505
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module RTC class RichTextCtrl # Overload to provide Enumerator without block wx_each_line = instance_method :each_line wx_redefine_method :each_line do |&block| if block...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/rich_text_composite_object.rb
Ruby
mit
177
master
523
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module RTC class RichTextCompositeObject # Overload to provide Enumerator without block wx_each_child = instance_method :each_child wx_redefine_method :each_child do |&block| ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/richtext_style_organiser_dialog.rb
Ruby
mit
177
master
1,996
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. class Wx::RTC::RichTextStyleOrganiserDialog # special handling for keyword ctor extension here # as this class deviates from 'normal' window ctors Wx::define_keyword_ctors(Wx::RTC::RichTextStyleOrganiserDial...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/richtext_formatting_dialog.rb
Ruby
mit
177
master
3,124
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx::RTC class RichTextFormattingDialog class << self wx_set_formatting_dialog_factory = instance_method :set_formatting_dialog_factory wx_redefine_method :set_formatting_dialog_factory do...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/keyword_defs.rb
Ruby
mit
177
master
826
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # = WxSugar - Keyword Constructors Classes # Wx::RTC sub package for wxRuby3 Wx::define_keyword_ctor...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/richtext_buffer.rb
Ruby
mit
177
master
1,063
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. class Wx::RTC::RichTextBuffer class << self wx_each_handler = instance_method :each_handler wx_redefine_method :each_handler do |&block| if block_given? wx_each_handler.bind(self).call(&blo...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/symbol_picker_dialog.rb
Ruby
mit
177
master
1,994
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. class Wx::RTC::SymbolPickerDialog # special handling for keyword ctor extension here # as this class deviates from 'normal' window ctors Wx::define_keyword_ctors(Wx::RTC::SymbolPickerDialog) do wx_ctor_p...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/require.rb
Ruby
mit
177
master
542
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Wx::RTC sub package for wxRuby3 require_relative './ext' require_relative './events/evt_list' require_relative './keyword_defs' require_relative './rich_text_ctrl' require_relative './richtext_buffer' require_re...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/ext.rb
Ruby
mit
177
master
431
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Constant extension loader for Wx::RTC module Wx::RTC if !defined?(::WxGlobalConstants) def self.const_missing(sym) Wx.check_delayed_constant(self, sym) super end end end Dir.glob(File.jo...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
lib/wx/rtc/rich_text_paragraph.rb
Ruby
mit
177
master
510
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. module Wx module RTC class RichTextParagraph # Overload to provide Enumerator without block wx_each_line = instance_method :each_line wx_redefine_method :each_line do |&block| if ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler.rb
Ruby
mit
177
master
14,175
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 sampler application ### require 'rbconfig' require 'fileutils' require 'wx' require_relative 'sampler/ext' require_relative 'sampler/sample' require_relative 'sampler/editor' module WxRuby modul...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/help/help.rb
Ruby
mit
177
master
12,739
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Adapted for Wx::Ruby3 ### require 'wx' module Help # Define this to false to use the help controller as the help # provider, or to true to use the 'simple help provider' # (the one implemented with Wx::T...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/webview/webview.rb
Ruby
mit
177
master
46,940
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # Adapted for Wx::Ruby3 ### require 'wx' module WebView if ::Wx::WXWIDGETS_VERSION >= '3.3.0' # AdvancedWebViewHandler is a sample handler used by handler_advanced.html # to show a sample implementatio...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/etc/system_settings.rb
Ruby
mit
177
master
12,237
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This example lists the various system settings that WxRuby...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/etc/miniframe.rb
Ruby
mit
177
master
2,942
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module MiniFrame class MyFrame < Wx::Frame attr_reade...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/etc/caret.rb
Ruby
mit
177
master
6,636
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module CaretTest include Wx # menu items Caret_set_b...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/etc/sash.rb
Ruby
mit
177
master
5,085
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Sash class MySashFrame < Wx::Frame def initial...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/xrc/custom_xrc_sample.rb
Ruby
mit
177
master
2,813
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module XrcCustom # Basic Frame Class. This creates the di...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/xrc/xrc_sample.rb
Ruby
mit
177
master
2,908
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Xrc # Basic Frame Class. This creates the dialog w...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/propgrid/propgrid.rb
Ruby
mit
177
master
100,094
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # PropertyGrid extended sample ### require 'wx' require_relative './propgrid_minimal' module PropGrid # ----------------------------------------------------------------------- # WxSampleMultiButtonEdito...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/propgrid/sample_props.rb
Ruby
mit
177
master
10,700
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # PropertyGrid sample custom properties ### class WxFontDataProperty < Wx::PG::FontProperty def initialize(label = Wx::PG::PG_LABEL, name = Wx::PG::PG_LABEL, value = Wx::FontData.new) super(label,name,v...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/propgrid/propgrid_minimal.rb
Ruby
mit
177
master
3,311
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # wxRuby Sample Code. require 'wx' require_relative './sample_props' module PropGridMinimal class MyStringProperty < Wx::PG::StringProperty end class MyBoolProperty < Wx::PG::BoolProperty end clas...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/text/richtext.rb
Ruby
mit
177
master
66,481
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets richtext sample # Copyright (c) Julian Smart require 'wx' require 'stringio' module RichTextExt # A custom field type class RichTextFieldTypePropertiesTest < Wx::RTC::Ric...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/text/textctrl.rb
Ruby
mit
177
master
4,259
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module TextCtrl class InformativeTextCtrl < Wx::TextCtrl ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/text/rich_textctrl.rb
Ruby
mit
177
master
11,102
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # RichTextCtrl sample by Chauk-Mean Proum # # RichTextCtrl i...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/text/unicode.rb
Ruby
mit
177
master
8,276
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # encoding: UTF-8 # Adapted for wxRuby3 ### # The 'encoding:' comment above tells ruby this script ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/text/scintilla.rb
Ruby
mit
177
master
5,680
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Scintilla include Wx Minimal_Quit = 1 Minimal...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/mdi/mdi.rb
Ruby
mit
177
master
3,865
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # Demonstrates a simple MDI (Multiple Document Interface) pa...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/html/html.rb
Ruby
mit
177
master
8,175
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' require 'net/http' require 'uri' module Html ID_PageOpen...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/grid/grid.rb
Ruby
mit
177
master
7,406
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Grid class MyTextCellEditor < Wx::GRID::GridCellTe...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/grid/gridtablebase.rb
Ruby
mit
177
master
5,584
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module GridTable # GridTableBase is an alternative way to...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/treectrl/treectrl.rb
Ruby
mit
177
master
52,541
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' # This sample shows off the features of the TreeCtrl widget....
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/calendar/calendar.rb
Ruby
mit
177
master
13,882
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' require 'date' module CalendarTest include Wx Calendar...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/animate/anitest.rb
Ruby
mit
177
master
8,887
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Julian Smart require 'wx' module AniTest # Define a new frame class MyFrame < Wx::Frame module ID include Wx::IDHelper ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/bitmap.rb
Ruby
mit
177
master
2,414
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module Bitmap # This sample demonstrates how to draw an i...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/graphics_drawing.rb
Ruby
mit
177
master
7,916
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module GraphicsDrawing class GfxInfo attr_accessor :f...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/maths_images.rb
Ruby
mit
177
master
10,142
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module MathImages include Wx # This sample was originally ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/drawing.rb
Ruby
mit
177
master
89,175
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) Robert Roebling require 'wx' module Drawing DRAWING_DC_SUPPORTS_ALPHA = %w[WXGTK WXOSX].include?(Wx::PLATFORM) module ID ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/bitmap_image.rb
Ruby
mit
177
master
3,934
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### require 'wx' module BitmapImage # Bitmap sample (rewritten by Chauk-Me...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/rmagic_bitmap_image.rb
Ruby
mit
177
master
3,677
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### begin require 'rmagick' rescue LoadError end if defined? ::Magick require...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/drawing/image_prt.rb
Ruby
mit
177
master
13,439
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license ### require 'wx' module ImagePrt class ImagePage < Wx::ScrolledWindow PAGES = [ 'Line...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/ribbon/ribbon.rb
Ruby
mit
177
master
36,689
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby Ribbon sample ### require 'wx' module Ribbon class MyFrame < Wx::Frame module ID %i[ CIRCLE CROSS TRIANGLE SQUARE POLYGON SELECTION_EXPAN...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler/sample.rb
Ruby
mit
177
master
9,400
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 sampler application ### require 'set' module WxRuby ART_FOLDER = File.join(__dir__, '..', 'art') module Sample ROOT = File.expand_path(File.join(__dir__, '..')) RUBY = ENV["RUBY"] || F...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler/stc_editor.rb
Ruby
mit
177
master
11,658
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 Scintilla based sampler editor control ### module WxRuby class SampleEditorCtrl < Wx::STC::StyledTextCtrl STYLE_DEFAULT = 32 SCE_RB_DEFAULT=0 SCE_RB_ERROR=1 SCE_RB_COMMENTLINE=2...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler/ext.rb
Ruby
mit
177
master
407
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 sampler application core extensions ### class ::String def modulize! self.gsub!(/[^a-zA-Z0-9_]/, '_') self.sub!(/^[a-z\d]*/) { $&.capitalize } self.gsub!(/(?:_|(\/))([a-z\d]*)/i) { "#{...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler/txt_editor.rb
Ruby
mit
177
master
4,170
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 TextCtrl based sampler editor control ### module WxRuby class SampleEditorCtrl < Wx::TextCtrl DEF_STYLE = Wx::TE_MULTILINE | Wx::HSCROLL | Wx::VSCROLL | Wx::TE_RICH | Wx::TE_RICH2 | Wx...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/sampler/editor.rb
Ruby
mit
177
master
18,769
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. ### # wxRuby3 sampler editor ### require 'wx' if Wx.has_feature?(:USE_STC) require_relative './stc_editor' else require_relative './txt_editor' end module WxRuby module ID EDT_MIN_ID = Wx::ID_HIGHEST ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/statbmp.rb
Ruby
mit
177
master
3,879
# Copyright (c) 2023 M.J.N. Corino = self.next_id The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module StatBmp class StatBmpPage < Widgets::Page def initialize(book, images) ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/editlbox.rb
Ruby
mit
177
master
3,769
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module EditableListBox class EditableListBoxPage < Widgets::Page module ID include Wx::I...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/bmpcombobox.rb
Ruby
mit
177
master
21,605
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require_relative './itemcontainer' module Widgets module BitmapComboBox class BitmapComboBoxPage < ItemContainer::Pag...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/button.rb
Ruby
mit
177
master
16,802
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Button class ButtonPage < Widgets::Page module ID include Wx::IDHelper R...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/textctrl.rb
Ruby
mit
177
master
23,681
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module TextCtrl class WidgetsTextCtrl < Wx::TextCtrl def initialize(parent, id, value, flags) ...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/filectrl.rb
Ruby
mit
177
master
7,314
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin require 'date' module Widgets module FileCtrl class FileCtrlPage < Widgets::Page module ID include Wx:...
github
mcorino/wxRuby3
https://github.com/mcorino/wxRuby3
samples/widgets/checkbox.rb
Ruby
mit
177
master
6,555
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Adapted for wxRuby from wxWidgets widgets sample # Copyright (c) 2001 Vadim Zeitlin module Widgets module Checkbox class CheckboxPage < Widgets::Page module ID include Wx::IDHelper ...