Class: Reactive::WxOutput::Helpers::AssetHelper::AssetArtProvider
- Inherits:
-
Wx::ArtProvider
- Object
- Wx::ArtProvider
- Reactive::WxOutput::Helpers::AssetHelper::AssetArtProvider
- Includes:
- Binder
- Defined in:
- lib/reactive-wx/helpers/asset_helper.rb
Instance Method Summary collapse
Methods included from Binder
Methods included from FormsHelper
#form_name_and_container, #form_to_param, #forms_to_params
Instance Method Details
#create_bitmap(id, client, size) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/reactive-wx/helpers/asset_helper.rb', line 8 def create_bitmap(id, client, size) unless id =~ /^wx/ begin Wx::Bitmap.new(do_request(:asset => id, :kind => :ui), Wx::BITMAP_TYPE_ANY) rescue Reactive::Dispatcher::AssetNotFound => e nil end end end |