Class: Wx::Object
- Inherits:
-
Object
- Object
- Wx::Object
- Defined in:
- lib/wx/doc/gen/object.rb,
lib/wx/doc/object.rb
Overview
This is the root class of many of the wxWidgets classes.
It declares a virtual destructor which ensures that destructors get called for all derived class objects where necessary. Object is the hub of a dynamic object creation scheme, enabling a program to create instances of a class only knowing its string class name, and to query the class hierarchy. The class contains optional debugging versions of new and delete, which can help trace memory allocation and deallocation problems. Object can be used to implement reference counted objects, such as Pen, Bitmap and others (see this list). See RefCounter and Reference Counting for more info about reference counting.
Category: Runtime Type Information (RTTI)
Direct Known Subclasses
AcceleratorTable, Accessible, Animation, ArtProvider, Clipboard, Colour, ColourData, ContextHelp, DC, DragImage, Event, EvtHandler, ExtHelpController, FSFile, FileSystem, FileSystemHandler, FindReplaceData, FontData, GDIObject, GRID::GridTableBase, GraphicsObject, GraphicsRenderer, HTML::HtmlCell, HTML::HtmlEasyPrinting, HTML::HtmlFilter, HTML::HtmlHelpController, HTML::HtmlHelpData, HTML::HtmlLinkInfo, HelpController, Image, ImageList, LayoutAlgorithm, ListItem, Mask, MenuItem, PG::ColourPropertyValue, PG::PGCell, PG::PGEditor, PG::PGEditorDialogAdapter, PG::PGProperty, PRT::PageSetupDialog, PRT::PageSetupDialogData, PRT::PrintData, PRT::PrintDialog, PRT::PrintDialogData, PRT::PrintPreview, PRT::Printer, PRT::Printout, RTC::CommandProcessor, RTC::RichTextDrawingContext, RTC::RichTextDrawingHandler, RTC::RichTextFieldType, RTC::RichTextFileHandler, RTC::RichTextFontTable, RTC::RichTextFormattingDialogFactory, RTC::RichTextHeaderFooterData, RTC::RichTextImageBlock, RTC::RichTextObject, RTC::RichTextPrinting, RTC::RichTextProperties, RTC::RichTextStyleDefinition, RTC::RichTextStyleSheet, RegionIterator, Sizer, SizerItem, SystemOptions, ToolBarToolBase, ToolTip, Variant, XmlResource
Instance Method Summary collapse
-
#clone ⇒ self
By default Wx::Object derived class instances cannot be cloned but instead return self.
-
#dup ⇒ nil
By default Wx:::Object derived classes cannot be #dup-licated.
-
#initialize(*args) ⇒ Object
constructor
A new instance of Object.
-
#is_same_as(obj) ⇒ Boolean
(also: #same_as?)
Returns true if this object has the same data pointer as obj.
-
#un_share ⇒ void
This is the same of alloc_exclusive but this method is public.
Constructor Details
#initialize ⇒ Wx::Object #initialize(other) ⇒ Wx::Object
Returns a new instance of Object.
42 |
# File 'lib/wx/doc/gen/object.rb', line 42 def initialize(*args) end |
Instance Method Details
#clone ⇒ self
By default Wx::Object derived class instances cannot be cloned but instead return self. Derived classes (like the Event classes) may provide functional overloads.
20 |
# File 'lib/wx/doc/object.rb', line 20 def clone; end |
#dup ⇒ nil
By default Wx:::Object derived classes cannot be #dup-licated. Some derived classes (like GDIObject-s) may provide functional overloads.
15 |
# File 'lib/wx/doc/object.rb', line 15 def dup; end |
#is_same_as(obj) ⇒ Boolean Also known as: same_as?
Returns true if this object has the same data pointer as obj.
Notice that true is returned if the data pointers are NULL in both objects. This function only does a shallow comparison, i.e. it doesn’t compare the objects pointed to by the data pointers of these objects.
51 |
# File 'lib/wx/doc/gen/object.rb', line 51 def is_same_as(obj) end |
#un_share ⇒ void
This method returns an undefined value.
This is the same of alloc_exclusive but this method is public.
56 |
# File 'lib/wx/doc/gen/object.rb', line 56 def un_share; end |