widgets/
mgwidobjectwidget__define.pro
This is a base class to inherit from to create an object widget.
Class description for mgwidobjectwidget
Properties
Properties in mgwidobjectwidget
- name init
- offset get set
- size get
- title set
Routines
Routines from mgwidobjectwidget__define.pro
mgwidobjectwidget::setProperty [, title=string] [, offset=lonarr(2)]
Set properties of the object widget.
mgwidobjectwidget::getProperty [, offset=lonarr(2)] [, size=lonarr(2)]
Get properties of the object widget.
mgwidobjectwidget::handle_events, event
Event handler for all widgets in the program.
mgwidobjectwidget::cleanup_widgets, tlb
Called when the widget program is being destroyed.
mgwidobjectwidget::create_widgets
Create widget hierarchy.
mgwidobjectwidget::realize_widgets
Override in subclasses to do actions that must be done after realization.
mgwidobjectwidget::start_xmanager
Start XMANAGER.
mgwidobjectwidget::cleanup
Cleanup resources.
result = mgwidobjectwidget::init(name=name)
Create on object widget.
mgwidobjectwidget__define
Define member variables.
Routine details
top mgwidobjectwidget::setProperty
mgwidobjectwidget::setProperty [, title=string] [, offset=lonarr(2)]
Set properties of the object widget.
Keywords
- title in optional type=string
title of the base
- offset in optional type=lonarr(2)
offset in pixels of the upper-left corner of the base from the upper-left corner of the widget
top mgwidobjectwidget::getProperty
mgwidobjectwidget::getProperty [, offset=lonarr(2)] [, size=lonarr(2)]
Get properties of the object widget.
Keywords
- offset out optional type=lonarr(2)
offset in pixels of the upper-left corner of the base from the upper-left corner of the widget
- size out optional type=lonarr(2)
size in pixels of the tlb
top mgwidobjectwidget::handle_eventsabstract
mgwidobjectwidget::handle_events, event
Event handler for all widgets in the program.
Parameters
- event in required type=structure
event structure for any generated by the widget program
top mgwidobjectwidget::cleanup_widgetsabstract
mgwidobjectwidget::cleanup_widgets, tlb
Called when the widget program is being destroyed.
Parameters
- tlb in required type=long
widget ID for the top-level base
top mgwidobjectwidget::create_widgetsabstract
mgwidobjectwidget::create_widgets
Create widget hierarchy. Make sure to store the top-level base widget
identifier in self.tlb
and put self
in the tlb's UVALUE
.
top mgwidobjectwidget::realize_widgets
mgwidobjectwidget::realize_widgets
Override in subclasses to do actions that must be done after realization.
File attributes
Modification date: | Wed May 14 15:07:15 2014 |
Lines: | 49 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.