4.3 Widget

Widget objects have the following methods:

AddCallback( callback_name, callback, client_data)
This function corresponds with XtAddCallback.

AddEventHandler( event_mask, nonmaskable, proc, client_data)
This function corresponds with XtAddEventHandler.

AddGrab( exclusive, spring_loaded)
This function corresponds with XtAddGrab.

AddRawEventHandler( event_mask, nonmaskable, proc, client_data)
This function corresponds with XtAddRawEventHandler.

AugmentTranslations( translation_object)
This function corresponds with XtAugmentTranslations.

BuildEventMask( )
Returns event_mask. This function corresponds with XtBuildEventMask.

CallCallbacks( callback_name, call_data)
This function corresponds with XtCallCallbacks.

CancelSelectionRequest( selection)
This function corresponds with XtCancelSelectionRequest.

ChangeWindowAttributes( window_attribute_dict)
This function corresponds with XChangeWindowAttributes.

Class( )
Returns widget_class. This function corresponds with XtClass.

Convert( from_value, to_type)
Returns to_value. This function corresponds with XtConvertAndStore or XtConvert.

CreateColormap( vi_object, alloc)
Returns cm_object. This function corresponds with XCreateColormap.

CreateGC( gc_dict)
Returns gc_object. This function corresponds with XCreateGC.

CreateManagedWidget( name, widget_class, argdict)
Returns widget. This function corresponds with XtCreateManagedWidget.

CreatePixmap( [width, height[, depth]])
Returns pixmap_object. This function corresponds with XCreatePixmap.

CreatePopupShell( name, widget_class, argdict)
Returns widget. This function corresponds with XtCreatePopupShell.

CreateSelectionRequest( selection)
This function corresponds with XtCreateSelectionRequest.

CreateWidget( name, widget_class, argdict)
Returns widget. This function corresponds with XtCreateWidget.

DefaultColormapOfScreen( )
Returns cm_object. This function corresponds with DefaultColormapOfScreen.

DefaultColormap( )
Returns cm_object. This function corresponds with DefaultColormapOfScreen.

DefaultVisualOfScreen( )
Returns vi_object. This function corresponds with DefaultVisualOfScreen.

DefaultVisual( )
Returns vi_object. This function corresponds with DefaultVisualOfScreen.

DefineCursor( cursor)
This function corresponds with XDefineCursor.

DestroyWidget( )
This function corresponds with XtDestroyWidget.

DisownSelection( selection, time)
This function corresponds with XtDisownSelection.

Display( )
Returns display_object. This function corresponds with XtDisplay.

GetChildren( )
Returns widget_list. Equivalent to widget.children.

GetGC( gc_dict)
Returns gc_object. This function corresponds with XtGetGC.

GetGeometry( )
Returns (root, x, y, width, height, border_width, depth). This function corresponds with XGetGeometry.

GetSelectionParameters( selection, request_id)
Returns (type, value, length, format) or None. This function corresponds with XtGetSelectionParameters.

GetSelectionRequest( selection, request_id)
Returns event. This function corresponds with XtGetSelectionRequest.

GetSelectionValueIncremental( selection, target, callback, client_data, time)
This function corresponds with XtGetSelectionValueIncremental.

GetSelectionValuesIncremental( selection, target[], callback, client_data[], time)
This function corresponds with XtGetSelectionValuesIncremental.

GetSelectionValues( selection, target[], callback, client_data[], time)
This function corresponds with XtGetSelectionValues.

GetSelectionValue( selection, target, callback, client_data, time)
This function corresponds with XtGetSelectionValue.

GetValues( name_list)
Returns argdict. This function corresponds with XtGetValues.

GetVisualInfo( template_dict)
Returns vi_object_list. This function corresponds with XGetVisualInfo.

GetWMNormalHints( )
Returns hintdict. This function corresponds with XGetWMNormalHints.

GrabButton( button, modifiers, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to_widget, cursor)
This function corresponds with XGrabButton.

HasCallbacks( callback_name)
Returns callback_status. This function corresponds with XtHasCallbacks.

HeightMMOfScreen( )
Returns height_mm. This function corresponds with HeightMMOfScreen.

HeightOfScreen( )
Returns height. This function corresponds with HeightOfScreen.

InstallAccelerators( source)
This function corresponds with XtInstallAccelerators.

InstallAllAccelerators( source)
This function corresponds with XtInstallAllAccelerators.

IsComposite( )
Returns success. This function corresponds with XtIsComposite.

IsManaged( )
Returns success. This function corresponds with XtIsManaged.

IsRealized( )
Returns success. This function corresponds with XtIsRealized.

IsSensitive( )
Returns success. This function corresponds with XtIsSensitive.

IsSubclass( widget_class)
Returns success. This function corresponds with XtIsSubclass.

ListFonts( pattern)
Returns font_list. This function corresponds with XListFonts.

LoadQueryFont( name)
Returns font_object. This function corresponds with XLoadQueryFont.

LowerWindow( )
This function corresponds with XLowerWindow.

ManageChild( )
This function corresponds with XtManageChild.

MapWidget( )
This function corresponds with XtMapWidget.

NameToWidget( name)
Returns widget. This function corresponds with XtNameToWidget.

Name( )
This function corresponds with XtName.

OverrideTranslations( translation_object)
This function corresponds with XtOverrideTranslations.

OwnSelection( selection, time, convert_proc, lose_selection, done_proc)
Returns success. This function corresponds with XtOwnSelection.

Parent( )
Returns parent_widget. This function corresponds with XtParent.

Popdown( )
This function corresponds with XtPopdown.

Popup( grab_kind)
This function corresponds with XtPopup.

QueryPointer( )
Returns (root, child, root_x, root_y, win_x, win_y, mask). This function corresponds with XQueryPointer.

RaiseWindow( )
This function corresponds with XRaiseWindow.

ReadBitmapFile( file)
Returns (width, height, pixmap_object, hotspot_x, hotspot_y). This function corresponds with XReadBitmapFile.

RealizeWidget( )
This function corresponds with XtRealizeWidget.

RemoveAllCallbacks( callback_name)
This function corresponds with XtRemoveAllCallbacks.

RemoveCallback( callback_name, callback, client_data)
This function corresponds with XtRemoveAllCallbacks.

RemoveEventHandler( event_mask, nonmaskable, proc, client_data)
This function corresponds with XtRemoveEventHandler.

RemoveGrab( )
This function corresponds with XtRemoveGrab.

RemoveRawEventHandler( event_mask, nonmaskable, proc, client_data)
This function corresponds with XtRemoveRawEventHandler.

SendSelectionRequest( selection, time)
This function corresponds with XtSendSelectionRequest.

SetMappedWhenManaged( map_when_managed)
This function corresponds with XtSetMappedWhenManaged.

SetSelectionParameters( selection, type, value, length, format)
This function corresponds with XtSetSelectionParameters.

SetSensitive( sensitive)
This function corresponds with XtSetSensitive.

SetValues( argdict)
This function corresponds with XtSetValues.

SetWindowColormap( cm_object)
This function corresponds with XSetWindowColormap.

SetWMNormalHints( hintdict)
This function corresponds with XSetWMNormalHints.

Superclass( )
Returns widget_class. This function corresponds with XtSuperclass.

TranslateCoords( x, y)
Returns (rootx, rooty). This function corresponds with XtTranslateCoords.

UndefineCursor( )
This function corresponds with XUndefineCursor.

UngrabButton( button, modifiers)
This function corresponds with XUngrabButton.

UninstallTranslations( )
This function corresponds with XtUninstallTranslations.

UnmanageChild( )
This function corresponds with XtUnmanageChild.

UnmapWidget( )
This function corresponds with XtUnmapWidget.

UnrealizeWidget( )
This function corresponds with XtUnrealizeWidget.

WidthMMOfScreen( )
Returns width_mm. This function corresponds with WidthMMOfScreen.

WidthOfScreen( )
Returns width. This function corresponds with WidthOfScreen.

Window( )
Returns window. This function corresponds with XtWindow.