Lines Matching +refs:define +refs:widget
3 # This class is implements a shell which is a top level widget
51 itk_option define -master master Window ""
52 itk_option define -modality modality Modality none
53 itk_option define -padx padX Pad 0
54 itk_option define -pady padY Pad 0
55 itk_option define -width width Width 0
56 itk_option define -height height Height 0
61 public method center {{widget {}}}
105 # widget. This can be overridden by the user via the execution
111 # Initialize the widget based on the command line options.
350 # Centers the dialog with respect to another widget or the screen
353 itcl::body iwidgets::Shell::center {{widget {}}} {
365 if { $widget == "" } {
371 set widgetW [winfo width $widget]
372 set widgetH [winfo height $widget]
373 set reqX [expr {[winfo rootx $widget]+($widgetW-($widgetW/2))-($w/2)}]
374 set reqY [expr {[winfo rooty $widget]+($widgetH-($widgetH/2))-($h/2)}]