Class: Gtk::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk4/snapshot.rb

Instance Method Summary collapse

Instance Method Details

#saveObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/gtk4/snapshot.rb', line 20

def save
  save_raw
  if block_given?
    begin
      yield
    ensure
      restore
    end
  end
end

#save_rawObject



19
# File 'lib/gtk4/snapshot.rb', line 19

alias_method :save_raw, :save