Method: CDK::DIALOG#destroy

Defined in:
lib/cdk/components/dialog.rb

#destroyObject

This function destroys the dialog widget.



250
251
252
253
254
255
256
257
258
259
260
# File 'lib/cdk/components/dialog.rb', line 250

def destroy
  # Clean up the windows.
  CDK.deleteCursesWindow(@win)
  CDK.deleteCursesWindow(@shadow_win)

  # Clean the key bindings
  self.cleanBindings(:DIALOG)

  # Unregister this object
  CDK::SCREEN.unregister(:DIALOG, self)
end