Documentation
¶
Overview ¶
Thsi package is obsolete. Please use the modernc.org/tk9.0 package instead.
Index ¶
- func MountLibraryVFS() (string, error)
- type Application
- func (a *Application) Bitmap(s string) (string, error)
- func (a *Application) BitmapM(s string) string
- func (a *Application) Destroy(w ...Widget) error
- func (a *Application) DestroyM(w ...Widget) *Application
- func (a *Application) Font(s string) (string, error)
- func (a *Application) FontM(s string) string
- func (a *Application) Main() error
- func (a *Application) MainM()
- func (a *Application) Pack(w ...Widget) error
- func (a *Application) PackM(w ...Widget) *Application
- func (a *Application) SetStrictMotif(value bool) error
- func (a *Application) SetStrictMotifM(value bool) *Application
- func (a *Application) StrictMotif() (bool, error)
- func (a *Application) StrictMotifM() bool
- type Button
- func (w *Button) ActiveBackground() (string, error)
- func (w *Button) ActiveBackgroundM() string
- func (w *Button) ActiveForeground() (string, error)
- func (w *Button) ActiveForegroundM() string
- func (w *Button) Anchor() (string, error)
- func (w *Button) AnchorM() string
- func (w *Button) Background() (string, error)
- func (w *Button) BackgroundM() string
- func (w *Button) Bitmap() (string, error)
- func (w *Button) BitmapM() string
- func (w *Button) BorderWidth() (string, error)
- func (w *Button) BorderWidthM() string
- func (w *Button) Compound() (string, error)
- func (w *Button) CompoundM() string
- func (w *Button) Cursor() (string, error)
- func (w *Button) CursorM() string
- func (w *Button) Default() (string, error)
- func (w *Button) DefaultM() string
- func (w *Button) DisabledForeground() (string, error)
- func (w *Button) DisabledForegroundM() string
- func (w *Button) Font() (string, error)
- func (w *Button) FontM() string
- func (w *Button) Foreground() (string, error)
- func (w *Button) ForegroundM() string
- func (w *Button) Height() (string, error)
- func (w *Button) HeightM() string
- func (w *Button) HighlightBackground() (string, error)
- func (w *Button) HighlightBackgroundM() string
- func (w *Button) HighlightColor() (string, error)
- func (w *Button) HighlightColorM() string
- func (w *Button) HighlightThickness() (string, error)
- func (w *Button) HighlightThicknessM() string
- func (w *Button) Image() (string, error)
- func (w *Button) ImageM() string
- func (w *Button) Justify() (string, error)
- func (w *Button) JustifyM() string
- func (w *Button) OverRelief() (string, error)
- func (w *Button) OverReliefM() string
- func (w *Button) PadX() (string, error)
- func (w *Button) PadXM() string
- func (w *Button) PadY() (string, error)
- func (w *Button) PadYM() string
- func (w *Button) Relief() (string, error)
- func (w *Button) ReliefM() string
- func (w *Button) RepeatDelay() (string, error)
- func (w *Button) RepeatDelayM() string
- func (w *Button) RepeatInterval() (string, error)
- func (w *Button) RepeatIntervalM() string
- func (w *Button) SetActiveBackground(value string) error
- func (w *Button) SetActiveBackgroundM(value string) *Button
- func (w *Button) SetActiveForeground(value string) error
- func (w *Button) SetActiveForegroundM(value string) *Button
- func (w *Button) SetAnchor(value string) error
- func (w *Button) SetAnchorM(value string) *Button
- func (w *Button) SetBackground(value string) error
- func (w *Button) SetBackgroundM(value string) *Button
- func (w *Button) SetBitmap(value string) error
- func (w *Button) SetBitmapM(value string) *Button
- func (w *Button) SetBorderWidth(value string) error
- func (w *Button) SetBorderWidthM(value string) *Button
- func (w *Button) SetCommand(value Command) error
- func (w *Button) SetCommandM(value Command) *Button
- func (w *Button) SetCompound(value string) error
- func (w *Button) SetCompoundM(value string) *Button
- func (w *Button) SetCursor(value string) error
- func (w *Button) SetCursorM(value string) *Button
- func (w *Button) SetDefault(value string) error
- func (w *Button) SetDefaultM(value string) *Button
- func (w *Button) SetDisabledForeground(value string) error
- func (w *Button) SetDisabledForegroundM(value string) *Button
- func (w *Button) SetFont(value string) error
- func (w *Button) SetFontM(value string) *Button
- func (w *Button) SetForeground(value string) error
- func (w *Button) SetForegroundM(value string) *Button
- func (w *Button) SetHeight(value string) error
- func (w *Button) SetHeightM(value string) *Button
- func (w *Button) SetHighlightBackground(value string) error
- func (w *Button) SetHighlightBackgroundM(value string) *Button
- func (w *Button) SetHighlightColor(value string) error
- func (w *Button) SetHighlightColorM(value string) *Button
- func (w *Button) SetHighlightThickness(value string) error
- func (w *Button) SetHighlightThicknessM(value string) *Button
- func (w *Button) SetImage(value string) error
- func (w *Button) SetImageM(value string) *Button
- func (w *Button) SetJustify(value string) error
- func (w *Button) SetJustifyM(value string) *Button
- func (w *Button) SetOverRelief(value string) error
- func (w *Button) SetOverReliefM(value string) *Button
- func (w *Button) SetPadX(value string) error
- func (w *Button) SetPadXM(value string) *Button
- func (w *Button) SetPadY(value string) error
- func (w *Button) SetPadYM(value string) *Button
- func (w *Button) SetRelief(value string) error
- func (w *Button) SetReliefM(value string) *Button
- func (w *Button) SetRepeatDelay(value string) error
- func (w *Button) SetRepeatDelayM(value string) *Button
- func (w *Button) SetRepeatInterval(value string) error
- func (w *Button) SetRepeatIntervalM(value string) *Button
- func (w *Button) SetState(value string) error
- func (w *Button) SetStateM(value string) *Button
- func (w *Button) SetTakeFocus(value string) error
- func (w *Button) SetTakeFocusM(value string) *Button
- func (w *Button) SetText(value string) error
- func (w *Button) SetTextM(value string) *Button
- func (w *Button) SetTextVariable(value string) error
- func (w *Button) SetTextVariableM(value string) *Button
- func (w *Button) SetUnderline(value string) error
- func (w *Button) SetUnderlineM(value string) *Button
- func (w *Button) SetWidth(value string) error
- func (w *Button) SetWidthM(value string) *Button
- func (w *Button) SetWrapLength(value string) error
- func (w *Button) SetWrapLengthM(value string) *Button
- func (w *Button) State() (string, error)
- func (w *Button) StateM() string
- func (w *Button) TakeFocus() (string, error)
- func (w *Button) TakeFocusM() string
- func (w *Button) Text() (string, error)
- func (w *Button) TextM() string
- func (w *Button) TextVariable() (string, error)
- func (w *Button) TextVariableM() string
- func (w *Button) Underline() (string, error)
- func (w *Button) UnderlineM() string
- func (w *Button) Width() (string, error)
- func (w *Button) WidthM() string
- func (w *Button) WrapLength() (string, error)
- func (w *Button) WrapLengthM() string
- type Canvas
- func (w *Canvas) Background() (string, error)
- func (w *Canvas) BackgroundM() string
- func (w *Canvas) BorderWidth() (string, error)
- func (w *Canvas) BorderWidthM() string
- func (w *Canvas) CloseEnough() (float64, error)
- func (w *Canvas) CloseEnoughM() float64
- func (w *Canvas) Confine() (bool, error)
- func (w *Canvas) ConfineM() bool
- func (w *Canvas) Cursor() (string, error)
- func (w *Canvas) CursorM() string
- func (w *Canvas) Height() (string, error)
- func (w *Canvas) HeightM() string
- func (w *Canvas) HighlightBackground() (string, error)
- func (w *Canvas) HighlightBackgroundM() string
- func (w *Canvas) HighlightColor() (string, error)
- func (w *Canvas) HighlightColorM() string
- func (w *Canvas) HighlightThickness() (string, error)
- func (w *Canvas) HighlightThicknessM() string
- func (w *Canvas) InsertBackground() (string, error)
- func (w *Canvas) InsertBackgroundM() string
- func (w *Canvas) InsertBorderWidth() (string, error)
- func (w *Canvas) InsertBorderWidthM() string
- func (w *Canvas) InsertOffTime() (int, error)
- func (w *Canvas) InsertOffTimeM() int
- func (w *Canvas) InsertOnTime() (int, error)
- func (w *Canvas) InsertOnTimeM() int
- func (w *Canvas) InsertWidth() (string, error)
- func (w *Canvas) InsertWidthM() string
- func (w *Canvas) Relief() (string, error)
- func (w *Canvas) ReliefM() string
- func (w *Canvas) ScrollRegion() (string, error)
- func (w *Canvas) ScrollRegionM() string
- func (w *Canvas) SelectBackground() (string, error)
- func (w *Canvas) SelectBackgroundM() string
- func (w *Canvas) SelectBorderWidth() (string, error)
- func (w *Canvas) SelectBorderWidthM() string
- func (w *Canvas) SelectForeground() (string, error)
- func (w *Canvas) SelectForegroundM() string
- func (w *Canvas) SetBackground(value string) error
- func (w *Canvas) SetBackgroundM(value string) *Canvas
- func (w *Canvas) SetBorderWidth(value string) error
- func (w *Canvas) SetBorderWidthM(value string) *Canvas
- func (w *Canvas) SetCloseEnough(value float64) error
- func (w *Canvas) SetCloseEnoughM(value float64) *Canvas
- func (w *Canvas) SetConfine(value bool) error
- func (w *Canvas) SetConfineM(value bool) *Canvas
- func (w *Canvas) SetCursor(value string) error
- func (w *Canvas) SetCursorM(value string) *Canvas
- func (w *Canvas) SetHeight(value string) error
- func (w *Canvas) SetHeightM(value string) *Canvas
- func (w *Canvas) SetHighlightBackground(value string) error
- func (w *Canvas) SetHighlightBackgroundM(value string) *Canvas
- func (w *Canvas) SetHighlightColor(value string) error
- func (w *Canvas) SetHighlightColorM(value string) *Canvas
- func (w *Canvas) SetHighlightThickness(value string) error
- func (w *Canvas) SetHighlightThicknessM(value string) *Canvas
- func (w *Canvas) SetInsertBackground(value string) error
- func (w *Canvas) SetInsertBackgroundM(value string) *Canvas
- func (w *Canvas) SetInsertBorderWidth(value string) error
- func (w *Canvas) SetInsertBorderWidthM(value string) *Canvas
- func (w *Canvas) SetInsertOffTime(value int) error
- func (w *Canvas) SetInsertOffTimeM(value int) *Canvas
- func (w *Canvas) SetInsertOnTime(value int) error
- func (w *Canvas) SetInsertOnTimeM(value int) *Canvas
- func (w *Canvas) SetInsertWidth(value string) error
- func (w *Canvas) SetInsertWidthM(value string) *Canvas
- func (w *Canvas) SetRelief(value string) error
- func (w *Canvas) SetReliefM(value string) *Canvas
- func (w *Canvas) SetScrollRegion(value string) error
- func (w *Canvas) SetScrollRegionM(value string) *Canvas
- func (w *Canvas) SetSelectBackground(value string) error
- func (w *Canvas) SetSelectBackgroundM(value string) *Canvas
- func (w *Canvas) SetSelectBorderWidth(value string) error
- func (w *Canvas) SetSelectBorderWidthM(value string) *Canvas
- func (w *Canvas) SetSelectForeground(value string) error
- func (w *Canvas) SetSelectForegroundM(value string) *Canvas
- func (w *Canvas) SetState(value string) error
- func (w *Canvas) SetStateM(value string) *Canvas
- func (w *Canvas) SetTakeFocus(value string) error
- func (w *Canvas) SetTakeFocusM(value string) *Canvas
- func (w *Canvas) SetWidth(value string) error
- func (w *Canvas) SetWidthM(value string) *Canvas
- func (w *Canvas) SetXScrollCommand(value Command) error
- func (w *Canvas) SetXScrollCommandM(value Command) *Canvas
- func (w *Canvas) SetXScrollIncrement(value string) error
- func (w *Canvas) SetXScrollIncrementM(value string) *Canvas
- func (w *Canvas) SetYScrollCommand(value Command) error
- func (w *Canvas) SetYScrollCommandM(value Command) *Canvas
- func (w *Canvas) SetYScrollIncrement(value string) error
- func (w *Canvas) SetYScrollIncrementM(value string) *Canvas
- func (w *Canvas) State() (string, error)
- func (w *Canvas) StateM() string
- func (w *Canvas) TakeFocus() (string, error)
- func (w *Canvas) TakeFocusM() string
- func (w *Canvas) Width() (string, error)
- func (w *Canvas) WidthM() string
- func (w *Canvas) XScrollIncrement() (string, error)
- func (w *Canvas) XScrollIncrementM() string
- func (w *Canvas) YScrollIncrement() (string, error)
- func (w *Canvas) YScrollIncrementM() string
- type CheckButton
- func (w *CheckButton) ActiveBackground() (string, error)
- func (w *CheckButton) ActiveBackgroundM() string
- func (w *CheckButton) ActiveForeground() (string, error)
- func (w *CheckButton) ActiveForegroundM() string
- func (w *CheckButton) Anchor() (string, error)
- func (w *CheckButton) AnchorM() string
- func (w *CheckButton) Background() (string, error)
- func (w *CheckButton) BackgroundM() string
- func (w *CheckButton) Bitmap() (string, error)
- func (w *CheckButton) BitmapM() string
- func (w *CheckButton) BorderWidth() (string, error)
- func (w *CheckButton) BorderWidthM() string
- func (w *CheckButton) Compound() (string, error)
- func (w *CheckButton) CompoundM() string
- func (w *CheckButton) Cursor() (string, error)
- func (w *CheckButton) CursorM() string
- func (w *CheckButton) DisabledForeground() (string, error)
- func (w *CheckButton) DisabledForegroundM() string
- func (w *CheckButton) Font() (string, error)
- func (w *CheckButton) FontM() string
- func (w *CheckButton) Foreground() (string, error)
- func (w *CheckButton) ForegroundM() string
- func (w *CheckButton) Height() (string, error)
- func (w *CheckButton) HeightM() string
- func (w *CheckButton) HighlightBackground() (string, error)
- func (w *CheckButton) HighlightBackgroundM() string
- func (w *CheckButton) HighlightColor() (string, error)
- func (w *CheckButton) HighlightColorM() string
- func (w *CheckButton) HighlightThickness() (string, error)
- func (w *CheckButton) HighlightThicknessM() string
- func (w *CheckButton) Image() (string, error)
- func (w *CheckButton) ImageM() string
- func (w *CheckButton) Indicatoron() (string, error)
- func (w *CheckButton) IndicatoronM() string
- func (w *CheckButton) Justify() (string, error)
- func (w *CheckButton) JustifyM() string
- func (w *CheckButton) OffRelief() (string, error)
- func (w *CheckButton) OffReliefM() string
- func (w *CheckButton) OffValue() (string, error)
- func (w *CheckButton) OffValueM() string
- func (w *CheckButton) OnValue() (string, error)
- func (w *CheckButton) OnValueM() string
- func (w *CheckButton) OverRelief() (string, error)
- func (w *CheckButton) OverReliefM() string
- func (w *CheckButton) PadX() (string, error)
- func (w *CheckButton) PadXM() string
- func (w *CheckButton) PadY() (string, error)
- func (w *CheckButton) PadYM() string
- func (w *CheckButton) Relief() (string, error)
- func (w *CheckButton) ReliefM() string
- func (w *CheckButton) SelectColor() (string, error)
- func (w *CheckButton) SelectColorM() string
- func (w *CheckButton) SelectImage() (string, error)
- func (w *CheckButton) SelectImageM() string
- func (w *CheckButton) SetActiveBackground(value string) error
- func (w *CheckButton) SetActiveBackgroundM(value string) *CheckButton
- func (w *CheckButton) SetActiveForeground(value string) error
- func (w *CheckButton) SetActiveForegroundM(value string) *CheckButton
- func (w *CheckButton) SetAnchor(value string) error
- func (w *CheckButton) SetAnchorM(value string) *CheckButton
- func (w *CheckButton) SetBackground(value string) error
- func (w *CheckButton) SetBackgroundM(value string) *CheckButton
- func (w *CheckButton) SetBitmap(value string) error
- func (w *CheckButton) SetBitmapM(value string) *CheckButton
- func (w *CheckButton) SetBorderWidth(value string) error
- func (w *CheckButton) SetBorderWidthM(value string) *CheckButton
- func (w *CheckButton) SetCommand(value Command) error
- func (w *CheckButton) SetCommandM(value Command) *CheckButton
- func (w *CheckButton) SetCompound(value string) error
- func (w *CheckButton) SetCompoundM(value string) *CheckButton
- func (w *CheckButton) SetCursor(value string) error
- func (w *CheckButton) SetCursorM(value string) *CheckButton
- func (w *CheckButton) SetDisabledForeground(value string) error
- func (w *CheckButton) SetDisabledForegroundM(value string) *CheckButton
- func (w *CheckButton) SetFont(value string) error
- func (w *CheckButton) SetFontM(value string) *CheckButton
- func (w *CheckButton) SetForeground(value string) error
- func (w *CheckButton) SetForegroundM(value string) *CheckButton
- func (w *CheckButton) SetHeight(value string) error
- func (w *CheckButton) SetHeightM(value string) *CheckButton
- func (w *CheckButton) SetHighlightBackground(value string) error
- func (w *CheckButton) SetHighlightBackgroundM(value string) *CheckButton
- func (w *CheckButton) SetHighlightColor(value string) error
- func (w *CheckButton) SetHighlightColorM(value string) *CheckButton
- func (w *CheckButton) SetHighlightThickness(value string) error
- func (w *CheckButton) SetHighlightThicknessM(value string) *CheckButton
- func (w *CheckButton) SetImage(value string) error
- func (w *CheckButton) SetImageM(value string) *CheckButton
- func (w *CheckButton) SetIndicatoron(value string) error
- func (w *CheckButton) SetIndicatoronM(value string) *CheckButton
- func (w *CheckButton) SetJustify(value string) error
- func (w *CheckButton) SetJustifyM(value string) *CheckButton
- func (w *CheckButton) SetOffRelief(value string) error
- func (w *CheckButton) SetOffReliefM(value string) *CheckButton
- func (w *CheckButton) SetOffValue(value string) error
- func (w *CheckButton) SetOffValueM(value string) *CheckButton
- func (w *CheckButton) SetOnValue(value string) error
- func (w *CheckButton) SetOnValueM(value string) *CheckButton
- func (w *CheckButton) SetOverRelief(value string) error
- func (w *CheckButton) SetOverReliefM(value string) *CheckButton
- func (w *CheckButton) SetPadX(value string) error
- func (w *CheckButton) SetPadXM(value string) *CheckButton
- func (w *CheckButton) SetPadY(value string) error
- func (w *CheckButton) SetPadYM(value string) *CheckButton
- func (w *CheckButton) SetRelief(value string) error
- func (w *CheckButton) SetReliefM(value string) *CheckButton
- func (w *CheckButton) SetSelectColor(value string) error
- func (w *CheckButton) SetSelectColorM(value string) *CheckButton
- func (w *CheckButton) SetSelectImage(value string) error
- func (w *CheckButton) SetSelectImageM(value string) *CheckButton
- func (w *CheckButton) SetState(value string) error
- func (w *CheckButton) SetStateM(value string) *CheckButton
- func (w *CheckButton) SetTakeFocus(value string) error
- func (w *CheckButton) SetTakeFocusM(value string) *CheckButton
- func (w *CheckButton) SetText(value string) error
- func (w *CheckButton) SetTextM(value string) *CheckButton
- func (w *CheckButton) SetTextVariable(value string) error
- func (w *CheckButton) SetTextVariableM(value string) *CheckButton
- func (w *CheckButton) SetTristateImage(value string) error
- func (w *CheckButton) SetTristateImageM(value string) *CheckButton
- func (w *CheckButton) SetTristateValue(value string) error
- func (w *CheckButton) SetTristateValueM(value string) *CheckButton
- func (w *CheckButton) SetUnderline(value string) error
- func (w *CheckButton) SetUnderlineM(value string) *CheckButton
- func (w *CheckButton) SetVariable(value string) error
- func (w *CheckButton) SetVariableM(value string) *CheckButton
- func (w *CheckButton) SetWidth(value string) error
- func (w *CheckButton) SetWidthM(value string) *CheckButton
- func (w *CheckButton) SetWrapLength(value string) error
- func (w *CheckButton) SetWrapLengthM(value string) *CheckButton
- func (w *CheckButton) State() (string, error)
- func (w *CheckButton) StateM() string
- func (w *CheckButton) TakeFocus() (string, error)
- func (w *CheckButton) TakeFocusM() string
- func (w *CheckButton) Text() (string, error)
- func (w *CheckButton) TextM() string
- func (w *CheckButton) TextVariable() (string, error)
- func (w *CheckButton) TextVariableM() string
- func (w *CheckButton) TristateImage() (string, error)
- func (w *CheckButton) TristateImageM() string
- func (w *CheckButton) TristateValue() (string, error)
- func (w *CheckButton) TristateValueM() string
- func (w *CheckButton) Underline() (string, error)
- func (w *CheckButton) UnderlineM() string
- func (w *CheckButton) Variable() (string, error)
- func (w *CheckButton) VariableM() string
- func (w *CheckButton) Width() (string, error)
- func (w *CheckButton) WidthM() string
- func (w *CheckButton) WrapLength() (string, error)
- func (w *CheckButton) WrapLengthM() string
- type Command
- type Entry
- func (w *Entry) Background() (string, error)
- func (w *Entry) BackgroundM() string
- func (w *Entry) BorderWidth() (string, error)
- func (w *Entry) BorderWidthM() string
- func (w *Entry) Cursor() (string, error)
- func (w *Entry) CursorM() string
- func (w *Entry) DisabledBackground() (string, error)
- func (w *Entry) DisabledBackgroundM() string
- func (w *Entry) DisabledForeground() (string, error)
- func (w *Entry) DisabledForegroundM() string
- func (w *Entry) ExportSelection() (bool, error)
- func (w *Entry) ExportSelectionM() bool
- func (w *Entry) Font() (string, error)
- func (w *Entry) FontM() string
- func (w *Entry) Foreground() (string, error)
- func (w *Entry) ForegroundM() string
- func (w *Entry) HighlightBackground() (string, error)
- func (w *Entry) HighlightBackgroundM() string
- func (w *Entry) HighlightColor() (string, error)
- func (w *Entry) HighlightColorM() string
- func (w *Entry) HighlightThickness() (string, error)
- func (w *Entry) HighlightThicknessM() string
- func (w *Entry) InsertBackground() (string, error)
- func (w *Entry) InsertBackgroundM() string
- func (w *Entry) InsertBorderWidth() (string, error)
- func (w *Entry) InsertBorderWidthM() string
- func (w *Entry) InsertOffTime() (int, error)
- func (w *Entry) InsertOffTimeM() int
- func (w *Entry) InsertOnTime() (int, error)
- func (w *Entry) InsertOnTimeM() int
- func (w *Entry) InsertWidth() (string, error)
- func (w *Entry) InsertWidthM() string
- func (w *Entry) InvalidCommand() (string, error)
- func (w *Entry) InvalidCommandM() string
- func (w *Entry) Justify() (string, error)
- func (w *Entry) JustifyM() string
- func (w *Entry) ReadonlyBackground() (string, error)
- func (w *Entry) ReadonlyBackgroundM() string
- func (w *Entry) Relief() (string, error)
- func (w *Entry) ReliefM() string
- func (w *Entry) SelectBackground() (string, error)
- func (w *Entry) SelectBackgroundM() string
- func (w *Entry) SelectBorderWidth() (string, error)
- func (w *Entry) SelectBorderWidthM() string
- func (w *Entry) SelectForeground() (string, error)
- func (w *Entry) SelectForegroundM() string
- func (w *Entry) SetBackground(value string) error
- func (w *Entry) SetBackgroundM(value string) *Entry
- func (w *Entry) SetBorderWidth(value string) error
- func (w *Entry) SetBorderWidthM(value string) *Entry
- func (w *Entry) SetCursor(value string) error
- func (w *Entry) SetCursorM(value string) *Entry
- func (w *Entry) SetDisabledBackground(value string) error
- func (w *Entry) SetDisabledBackgroundM(value string) *Entry
- func (w *Entry) SetDisabledForeground(value string) error
- func (w *Entry) SetDisabledForegroundM(value string) *Entry
- func (w *Entry) SetExportSelection(value bool) error
- func (w *Entry) SetExportSelectionM(value bool) *Entry
- func (w *Entry) SetFont(value string) error
- func (w *Entry) SetFontM(value string) *Entry
- func (w *Entry) SetForeground(value string) error
- func (w *Entry) SetForegroundM(value string) *Entry
- func (w *Entry) SetHighlightBackground(value string) error
- func (w *Entry) SetHighlightBackgroundM(value string) *Entry
- func (w *Entry) SetHighlightColor(value string) error
- func (w *Entry) SetHighlightColorM(value string) *Entry
- func (w *Entry) SetHighlightThickness(value string) error
- func (w *Entry) SetHighlightThicknessM(value string) *Entry
- func (w *Entry) SetInsertBackground(value string) error
- func (w *Entry) SetInsertBackgroundM(value string) *Entry
- func (w *Entry) SetInsertBorderWidth(value string) error
- func (w *Entry) SetInsertBorderWidthM(value string) *Entry
- func (w *Entry) SetInsertOffTime(value int) error
- func (w *Entry) SetInsertOffTimeM(value int) *Entry
- func (w *Entry) SetInsertOnTime(value int) error
- func (w *Entry) SetInsertOnTimeM(value int) *Entry
- func (w *Entry) SetInsertWidth(value string) error
- func (w *Entry) SetInsertWidthM(value string) *Entry
- func (w *Entry) SetInvalidCommand(value string) error
- func (w *Entry) SetInvalidCommandM(value string) *Entry
- func (w *Entry) SetJustify(value string) error
- func (w *Entry) SetJustifyM(value string) *Entry
- func (w *Entry) SetReadonlyBackground(value string) error
- func (w *Entry) SetReadonlyBackgroundM(value string) *Entry
- func (w *Entry) SetRelief(value string) error
- func (w *Entry) SetReliefM(value string) *Entry
- func (w *Entry) SetSelectBackground(value string) error
- func (w *Entry) SetSelectBackgroundM(value string) *Entry
- func (w *Entry) SetSelectBorderWidth(value string) error
- func (w *Entry) SetSelectBorderWidthM(value string) *Entry
- func (w *Entry) SetSelectForeground(value string) error
- func (w *Entry) SetSelectForegroundM(value string) *Entry
- func (w *Entry) SetShow(value string) error
- func (w *Entry) SetShowM(value string) *Entry
- func (w *Entry) SetState(value string) error
- func (w *Entry) SetStateM(value string) *Entry
- func (w *Entry) SetTakeFocus(value string) error
- func (w *Entry) SetTakeFocusM(value string) *Entry
- func (w *Entry) SetTextVariable(value string) error
- func (w *Entry) SetTextVariableM(value string) *Entry
- func (w *Entry) SetValidate(value string) error
- func (w *Entry) SetValidateCommand(value string) error
- func (w *Entry) SetValidateCommandM(value string) *Entry
- func (w *Entry) SetValidateM(value string) *Entry
- func (w *Entry) SetWidth(value string) error
- func (w *Entry) SetWidthM(value string) *Entry
- func (w *Entry) SetXScrollCommand(value Command) error
- func (w *Entry) SetXScrollCommandM(value Command) *Entry
- func (w *Entry) Show() (string, error)
- func (w *Entry) ShowM() string
- func (w *Entry) State() (string, error)
- func (w *Entry) StateM() string
- func (w *Entry) TakeFocus() (string, error)
- func (w *Entry) TakeFocusM() string
- func (w *Entry) TextVariable() (string, error)
- func (w *Entry) TextVariableM() string
- func (w *Entry) Validate() (string, error)
- func (w *Entry) ValidateCommand() (string, error)
- func (w *Entry) ValidateCommandM() string
- func (w *Entry) ValidateM() string
- func (w *Entry) Width() (string, error)
- func (w *Entry) WidthM() string
- type Frame
- func (w *Frame) Background() (string, error)
- func (w *Frame) BackgroundM() string
- func (w *Frame) BorderWidth() (string, error)
- func (w *Frame) BorderWidthM() string
- func (w *Frame) Class() (string, error)
- func (w *Frame) ClassM() string
- func (w *Frame) Colormap() (string, error)
- func (w *Frame) ColormapM() string
- func (w *Frame) Container() (string, error)
- func (w *Frame) ContainerM() string
- func (w *Frame) Cursor() (string, error)
- func (w *Frame) CursorM() string
- func (w *Frame) Height() (string, error)
- func (w *Frame) HeightM() string
- func (w *Frame) HighlightBackground() (string, error)
- func (w *Frame) HighlightBackgroundM() string
- func (w *Frame) HighlightColor() (string, error)
- func (w *Frame) HighlightColorM() string
- func (w *Frame) HighlightThickness() (string, error)
- func (w *Frame) HighlightThicknessM() string
- func (w *Frame) PadX() (string, error)
- func (w *Frame) PadXM() string
- func (w *Frame) PadY() (string, error)
- func (w *Frame) PadYM() string
- func (w *Frame) Relief() (string, error)
- func (w *Frame) ReliefM() string
- func (w *Frame) SetBackground(value string) error
- func (w *Frame) SetBackgroundM(value string) *Frame
- func (w *Frame) SetBorderWidth(value string) error
- func (w *Frame) SetBorderWidthM(value string) *Frame
- func (w *Frame) SetColormap(value string) error
- func (w *Frame) SetColormapM(value string) *Frame
- func (w *Frame) SetContainer(value string) error
- func (w *Frame) SetContainerM(value string) *Frame
- func (w *Frame) SetCursor(value string) error
- func (w *Frame) SetCursorM(value string) *Frame
- func (w *Frame) SetHeight(value string) error
- func (w *Frame) SetHeightM(value string) *Frame
- func (w *Frame) SetHighlightBackground(value string) error
- func (w *Frame) SetHighlightBackgroundM(value string) *Frame
- func (w *Frame) SetHighlightColor(value string) error
- func (w *Frame) SetHighlightColorM(value string) *Frame
- func (w *Frame) SetHighlightThickness(value string) error
- func (w *Frame) SetHighlightThicknessM(value string) *Frame
- func (w *Frame) SetPadX(value string) error
- func (w *Frame) SetPadXM(value string) *Frame
- func (w *Frame) SetPadY(value string) error
- func (w *Frame) SetPadYM(value string) *Frame
- func (w *Frame) SetRelief(value string) error
- func (w *Frame) SetReliefM(value string) *Frame
- func (w *Frame) SetTakeFocus(value string) error
- func (w *Frame) SetTakeFocusM(value string) *Frame
- func (w *Frame) SetVisual(value string) error
- func (w *Frame) SetVisualM(value string) *Frame
- func (w *Frame) SetWidth(value string) error
- func (w *Frame) SetWidthM(value string) *Frame
- func (w *Frame) TakeFocus() (string, error)
- func (w *Frame) TakeFocusM() string
- func (w *Frame) Visual() (string, error)
- func (w *Frame) VisualM() string
- func (w *Frame) Width() (string, error)
- func (w *Frame) WidthM() string
- type Label
- func (w *Label) ActiveBackground() (string, error)
- func (w *Label) ActiveBackgroundM() string
- func (w *Label) ActiveForeground() (string, error)
- func (w *Label) ActiveForegroundM() string
- func (w *Label) Anchor() (string, error)
- func (w *Label) AnchorM() string
- func (w *Label) Background() (string, error)
- func (w *Label) BackgroundM() string
- func (w *Label) Bitmap() (string, error)
- func (w *Label) BitmapM() string
- func (w *Label) BorderWidth() (string, error)
- func (w *Label) BorderWidthM() string
- func (w *Label) Compound() (string, error)
- func (w *Label) CompoundM() string
- func (w *Label) Cursor() (string, error)
- func (w *Label) CursorM() string
- func (w *Label) DisabledForeground() (string, error)
- func (w *Label) DisabledForegroundM() string
- func (w *Label) Font() (string, error)
- func (w *Label) FontM() string
- func (w *Label) Foreground() (string, error)
- func (w *Label) ForegroundM() string
- func (w *Label) Height() (string, error)
- func (w *Label) HeightM() string
- func (w *Label) HighlightBackground() (string, error)
- func (w *Label) HighlightBackgroundM() string
- func (w *Label) HighlightColor() (string, error)
- func (w *Label) HighlightColorM() string
- func (w *Label) HighlightThickness() (string, error)
- func (w *Label) HighlightThicknessM() string
- func (w *Label) Image() (string, error)
- func (w *Label) ImageM() string
- func (w *Label) Justify() (string, error)
- func (w *Label) JustifyM() string
- func (w *Label) PadX() (string, error)
- func (w *Label) PadXM() string
- func (w *Label) PadY() (string, error)
- func (w *Label) PadYM() string
- func (w *Label) Relief() (string, error)
- func (w *Label) ReliefM() string
- func (w *Label) SetActiveBackground(value string) error
- func (w *Label) SetActiveBackgroundM(value string) *Label
- func (w *Label) SetActiveForeground(value string) error
- func (w *Label) SetActiveForegroundM(value string) *Label
- func (w *Label) SetAnchor(value string) error
- func (w *Label) SetAnchorM(value string) *Label
- func (w *Label) SetBackground(value string) error
- func (w *Label) SetBackgroundM(value string) *Label
- func (w *Label) SetBitmap(value string) error
- func (w *Label) SetBitmapM(value string) *Label
- func (w *Label) SetBorderWidth(value string) error
- func (w *Label) SetBorderWidthM(value string) *Label
- func (w *Label) SetCompound(value string) error
- func (w *Label) SetCompoundM(value string) *Label
- func (w *Label) SetCursor(value string) error
- func (w *Label) SetCursorM(value string) *Label
- func (w *Label) SetDisabledForeground(value string) error
- func (w *Label) SetDisabledForegroundM(value string) *Label
- func (w *Label) SetFont(value string) error
- func (w *Label) SetFontM(value string) *Label
- func (w *Label) SetForeground(value string) error
- func (w *Label) SetForegroundM(value string) *Label
- func (w *Label) SetHeight(value string) error
- func (w *Label) SetHeightM(value string) *Label
- func (w *Label) SetHighlightBackground(value string) error
- func (w *Label) SetHighlightBackgroundM(value string) *Label
- func (w *Label) SetHighlightColor(value string) error
- func (w *Label) SetHighlightColorM(value string) *Label
- func (w *Label) SetHighlightThickness(value string) error
- func (w *Label) SetHighlightThicknessM(value string) *Label
- func (w *Label) SetImage(value string) error
- func (w *Label) SetImageM(value string) *Label
- func (w *Label) SetJustify(value string) error
- func (w *Label) SetJustifyM(value string) *Label
- func (w *Label) SetPadX(value string) error
- func (w *Label) SetPadXM(value string) *Label
- func (w *Label) SetPadY(value string) error
- func (w *Label) SetPadYM(value string) *Label
- func (w *Label) SetRelief(value string) error
- func (w *Label) SetReliefM(value string) *Label
- func (w *Label) SetState(value string) error
- func (w *Label) SetStateM(value string) *Label
- func (w *Label) SetTakeFocus(value string) error
- func (w *Label) SetTakeFocusM(value string) *Label
- func (w *Label) SetText(value string) error
- func (w *Label) SetTextM(value string) *Label
- func (w *Label) SetTextVariable(value string) error
- func (w *Label) SetTextVariableM(value string) *Label
- func (w *Label) SetUnderline(value string) error
- func (w *Label) SetUnderlineM(value string) *Label
- func (w *Label) SetWidth(value string) error
- func (w *Label) SetWidthM(value string) *Label
- func (w *Label) SetWrapLength(value string) error
- func (w *Label) SetWrapLengthM(value string) *Label
- func (w *Label) State() (string, error)
- func (w *Label) StateM() string
- func (w *Label) TakeFocus() (string, error)
- func (w *Label) TakeFocusM() string
- func (w *Label) Text() (string, error)
- func (w *Label) TextM() string
- func (w *Label) TextVariable() (string, error)
- func (w *Label) TextVariableM() string
- func (w *Label) Underline() (string, error)
- func (w *Label) UnderlineM() string
- func (w *Label) Width() (string, error)
- func (w *Label) WidthM() string
- func (w *Label) WrapLength() (string, error)
- func (w *Label) WrapLengthM() string
- type LabelFrame
- func (w *LabelFrame) Background() (string, error)
- func (w *LabelFrame) BackgroundM() string
- func (w *LabelFrame) BorderWidth() (string, error)
- func (w *LabelFrame) BorderWidthM() string
- func (w *LabelFrame) Class() (string, error)
- func (w *LabelFrame) ClassM() string
- func (w *LabelFrame) Colormap() (string, error)
- func (w *LabelFrame) ColormapM() string
- func (w *LabelFrame) Cursor() (string, error)
- func (w *LabelFrame) CursorM() string
- func (w *LabelFrame) Font() (string, error)
- func (w *LabelFrame) FontM() string
- func (w *LabelFrame) Foreground() (string, error)
- func (w *LabelFrame) ForegroundM() string
- func (w *LabelFrame) Height() (string, error)
- func (w *LabelFrame) HeightM() string
- func (w *LabelFrame) HighlightBackground() (string, error)
- func (w *LabelFrame) HighlightBackgroundM() string
- func (w *LabelFrame) HighlightColor() (string, error)
- func (w *LabelFrame) HighlightColorM() string
- func (w *LabelFrame) HighlightThickness() (string, error)
- func (w *LabelFrame) HighlightThicknessM() string
- func (w *LabelFrame) LabelAnchor() (string, error)
- func (w *LabelFrame) LabelAnchorM() string
- func (w *LabelFrame) LabelWidget() (string, error)
- func (w *LabelFrame) LabelWidgetM() string
- func (w *LabelFrame) PadX() (string, error)
- func (w *LabelFrame) PadXM() string
- func (w *LabelFrame) PadY() (string, error)
- func (w *LabelFrame) PadYM() string
- func (w *LabelFrame) Relief() (string, error)
- func (w *LabelFrame) ReliefM() string
- func (w *LabelFrame) SetBackground(value string) error
- func (w *LabelFrame) SetBackgroundM(value string) *LabelFrame
- func (w *LabelFrame) SetBorderWidth(value string) error
- func (w *LabelFrame) SetBorderWidthM(value string) *LabelFrame
- func (w *LabelFrame) SetColormap(value string) error
- func (w *LabelFrame) SetColormapM(value string) *LabelFrame
- func (w *LabelFrame) SetCursor(value string) error
- func (w *LabelFrame) SetCursorM(value string) *LabelFrame
- func (w *LabelFrame) SetFont(value string) error
- func (w *LabelFrame) SetFontM(value string) *LabelFrame
- func (w *LabelFrame) SetForeground(value string) error
- func (w *LabelFrame) SetForegroundM(value string) *LabelFrame
- func (w *LabelFrame) SetHeight(value string) error
- func (w *LabelFrame) SetHeightM(value string) *LabelFrame
- func (w *LabelFrame) SetHighlightBackground(value string) error
- func (w *LabelFrame) SetHighlightBackgroundM(value string) *LabelFrame
- func (w *LabelFrame) SetHighlightColor(value string) error
- func (w *LabelFrame) SetHighlightColorM(value string) *LabelFrame
- func (w *LabelFrame) SetHighlightThickness(value string) error
- func (w *LabelFrame) SetHighlightThicknessM(value string) *LabelFrame
- func (w *LabelFrame) SetLabelAnchor(value string) error
- func (w *LabelFrame) SetLabelAnchorM(value string) *LabelFrame
- func (w *LabelFrame) SetLabelWidget(value string) error
- func (w *LabelFrame) SetLabelWidgetM(value string) *LabelFrame
- func (w *LabelFrame) SetPadX(value string) error
- func (w *LabelFrame) SetPadXM(value string) *LabelFrame
- func (w *LabelFrame) SetPadY(value string) error
- func (w *LabelFrame) SetPadYM(value string) *LabelFrame
- func (w *LabelFrame) SetRelief(value string) error
- func (w *LabelFrame) SetReliefM(value string) *LabelFrame
- func (w *LabelFrame) SetTakeFocus(value string) error
- func (w *LabelFrame) SetTakeFocusM(value string) *LabelFrame
- func (w *LabelFrame) SetText(value string) error
- func (w *LabelFrame) SetTextM(value string) *LabelFrame
- func (w *LabelFrame) SetVisual(value string) error
- func (w *LabelFrame) SetVisualM(value string) *LabelFrame
- func (w *LabelFrame) SetWidth(value string) error
- func (w *LabelFrame) SetWidthM(value string) *LabelFrame
- func (w *LabelFrame) TakeFocus() (string, error)
- func (w *LabelFrame) TakeFocusM() string
- func (w *LabelFrame) Text() (string, error)
- func (w *LabelFrame) TextM() string
- func (w *LabelFrame) Visual() (string, error)
- func (w *LabelFrame) VisualM() string
- func (w *LabelFrame) Width() (string, error)
- func (w *LabelFrame) WidthM() string
- type ListBox
- func (w *ListBox) ActiveStyle() (string, error)
- func (w *ListBox) ActiveStyleM() string
- func (w *ListBox) Background() (string, error)
- func (w *ListBox) BackgroundM() string
- func (w *ListBox) BorderWidth() (string, error)
- func (w *ListBox) BorderWidthM() string
- func (w *ListBox) Cursor() (string, error)
- func (w *ListBox) CursorM() string
- func (w *ListBox) DisabledForeground() (string, error)
- func (w *ListBox) DisabledForegroundM() string
- func (w *ListBox) ExportSelection() (bool, error)
- func (w *ListBox) ExportSelectionM() bool
- func (w *ListBox) Font() (string, error)
- func (w *ListBox) FontM() string
- func (w *ListBox) Foreground() (string, error)
- func (w *ListBox) ForegroundM() string
- func (w *ListBox) Height() (string, error)
- func (w *ListBox) HeightM() string
- func (w *ListBox) HighlightBackground() (string, error)
- func (w *ListBox) HighlightBackgroundM() string
- func (w *ListBox) HighlightColor() (string, error)
- func (w *ListBox) HighlightColorM() string
- func (w *ListBox) HighlightThickness() (string, error)
- func (w *ListBox) HighlightThicknessM() string
- func (w *ListBox) Justify() (string, error)
- func (w *ListBox) JustifyM() string
- func (w *ListBox) ListVariable() (string, error)
- func (w *ListBox) ListVariableM() string
- func (w *ListBox) Relief() (string, error)
- func (w *ListBox) ReliefM() string
- func (w *ListBox) SelectBackground() (string, error)
- func (w *ListBox) SelectBackgroundM() string
- func (w *ListBox) SelectBorderWidth() (string, error)
- func (w *ListBox) SelectBorderWidthM() string
- func (w *ListBox) SelectForeground() (string, error)
- func (w *ListBox) SelectForegroundM() string
- func (w *ListBox) SelectMode() (string, error)
- func (w *ListBox) SelectModeM() string
- func (w *ListBox) SetActiveStyle(value string) error
- func (w *ListBox) SetActiveStyleM(value string) *ListBox
- func (w *ListBox) SetBackground(value string) error
- func (w *ListBox) SetBackgroundM(value string) *ListBox
- func (w *ListBox) SetBorderWidth(value string) error
- func (w *ListBox) SetBorderWidthM(value string) *ListBox
- func (w *ListBox) SetCursor(value string) error
- func (w *ListBox) SetCursorM(value string) *ListBox
- func (w *ListBox) SetDisabledForeground(value string) error
- func (w *ListBox) SetDisabledForegroundM(value string) *ListBox
- func (w *ListBox) SetExportSelection(value bool) error
- func (w *ListBox) SetExportSelectionM(value bool) *ListBox
- func (w *ListBox) SetFont(value string) error
- func (w *ListBox) SetFontM(value string) *ListBox
- func (w *ListBox) SetForeground(value string) error
- func (w *ListBox) SetForegroundM(value string) *ListBox
- func (w *ListBox) SetGrid() (string, error)
- func (w *ListBox) SetGridM() string
- func (w *ListBox) SetHeight(value string) error
- func (w *ListBox) SetHeightM(value string) *ListBox
- func (w *ListBox) SetHighlightBackground(value string) error
- func (w *ListBox) SetHighlightBackgroundM(value string) *ListBox
- func (w *ListBox) SetHighlightColor(value string) error
- func (w *ListBox) SetHighlightColorM(value string) *ListBox
- func (w *ListBox) SetHighlightThickness(value string) error
- func (w *ListBox) SetHighlightThicknessM(value string) *ListBox
- func (w *ListBox) SetJustify(value string) error
- func (w *ListBox) SetJustifyM(value string) *ListBox
- func (w *ListBox) SetListVariable(value string) error
- func (w *ListBox) SetListVariableM(value string) *ListBox
- func (w *ListBox) SetRelief(value string) error
- func (w *ListBox) SetReliefM(value string) *ListBox
- func (w *ListBox) SetSelectBackground(value string) error
- func (w *ListBox) SetSelectBackgroundM(value string) *ListBox
- func (w *ListBox) SetSelectBorderWidth(value string) error
- func (w *ListBox) SetSelectBorderWidthM(value string) *ListBox
- func (w *ListBox) SetSelectForeground(value string) error
- func (w *ListBox) SetSelectForegroundM(value string) *ListBox
- func (w *ListBox) SetSelectMode(value string) error
- func (w *ListBox) SetSelectModeM(value string) *ListBox
- func (w *ListBox) SetSetGrid(value string) error
- func (w *ListBox) SetSetGridM(value string) *ListBox
- func (w *ListBox) SetState(value string) error
- func (w *ListBox) SetStateM(value string) *ListBox
- func (w *ListBox) SetTakeFocus(value string) error
- func (w *ListBox) SetTakeFocusM(value string) *ListBox
- func (w *ListBox) SetWidth(value string) error
- func (w *ListBox) SetWidthM(value string) *ListBox
- func (w *ListBox) SetXScrollCommand(value Command) error
- func (w *ListBox) SetXScrollCommandM(value Command) *ListBox
- func (w *ListBox) SetYScrollCommand(value Command) error
- func (w *ListBox) SetYScrollCommandM(value Command) *ListBox
- func (w *ListBox) State() (string, error)
- func (w *ListBox) StateM() string
- func (w *ListBox) TakeFocus() (string, error)
- func (w *ListBox) TakeFocusM() string
- func (w *ListBox) Width() (string, error)
- func (w *ListBox) WidthM() string
- type Menu
- func (w *Menu) ActiveBackground() (string, error)
- func (w *Menu) ActiveBackgroundM() string
- func (w *Menu) ActiveBorderWidth() (string, error)
- func (w *Menu) ActiveBorderWidthM() string
- func (w *Menu) ActiveForeground() (string, error)
- func (w *Menu) ActiveForegroundM() string
- func (w *Menu) Background() (string, error)
- func (w *Menu) BackgroundM() string
- func (w *Menu) BorderWidth() (string, error)
- func (w *Menu) BorderWidthM() string
- func (w *Menu) Cursor() (string, error)
- func (w *Menu) CursorM() string
- func (w *Menu) DisabledForeground() (string, error)
- func (w *Menu) DisabledForegroundM() string
- func (w *Menu) Font() (string, error)
- func (w *Menu) FontM() string
- func (w *Menu) Foreground() (string, error)
- func (w *Menu) ForegroundM() string
- func (w *Menu) PostCommand() (string, error)
- func (w *Menu) PostCommandM() string
- func (w *Menu) Relief() (string, error)
- func (w *Menu) ReliefM() string
- func (w *Menu) SelectColor() (string, error)
- func (w *Menu) SelectColorM() string
- func (w *Menu) SetActiveBackground(value string) error
- func (w *Menu) SetActiveBackgroundM(value string) *Menu
- func (w *Menu) SetActiveBorderWidth(value string) error
- func (w *Menu) SetActiveBorderWidthM(value string) *Menu
- func (w *Menu) SetActiveForeground(value string) error
- func (w *Menu) SetActiveForegroundM(value string) *Menu
- func (w *Menu) SetBackground(value string) error
- func (w *Menu) SetBackgroundM(value string) *Menu
- func (w *Menu) SetBorderWidth(value string) error
- func (w *Menu) SetBorderWidthM(value string) *Menu
- func (w *Menu) SetCursor(value string) error
- func (w *Menu) SetCursorM(value string) *Menu
- func (w *Menu) SetDisabledForeground(value string) error
- func (w *Menu) SetDisabledForegroundM(value string) *Menu
- func (w *Menu) SetFont(value string) error
- func (w *Menu) SetFontM(value string) *Menu
- func (w *Menu) SetForeground(value string) error
- func (w *Menu) SetForegroundM(value string) *Menu
- func (w *Menu) SetPostCommand(value string) error
- func (w *Menu) SetPostCommandM(value string) *Menu
- func (w *Menu) SetRelief(value string) error
- func (w *Menu) SetReliefM(value string) *Menu
- func (w *Menu) SetSelectColor(value string) error
- func (w *Menu) SetSelectColorM(value string) *Menu
- func (w *Menu) SetTakeFocus(value string) error
- func (w *Menu) SetTakeFocusM(value string) *Menu
- func (w *Menu) SetTearOff(value string) error
- func (w *Menu) SetTearOffCommand(value string) error
- func (w *Menu) SetTearOffCommandM(value string) *Menu
- func (w *Menu) SetTearOffM(value string) *Menu
- func (w *Menu) SetTitle(value string) error
- func (w *Menu) SetTitleM(value string) *Menu
- func (w *Menu) SetType(value string) error
- func (w *Menu) SetTypeM(value string) *Menu
- func (w *Menu) TakeFocus() (string, error)
- func (w *Menu) TakeFocusM() string
- func (w *Menu) TearOff() (string, error)
- func (w *Menu) TearOffCommand() (string, error)
- func (w *Menu) TearOffCommandM() string
- func (w *Menu) TearOffM() string
- func (w *Menu) Title() (string, error)
- func (w *Menu) TitleM() string
- func (w *Menu) Type() (string, error)
- func (w *Menu) TypeM() string
- type MenuButton
- func (w *MenuButton) ActiveBackground() (string, error)
- func (w *MenuButton) ActiveBackgroundM() string
- func (w *MenuButton) ActiveForeground() (string, error)
- func (w *MenuButton) ActiveForegroundM() string
- func (w *MenuButton) Anchor() (string, error)
- func (w *MenuButton) AnchorM() string
- func (w *MenuButton) Background() (string, error)
- func (w *MenuButton) BackgroundM() string
- func (w *MenuButton) Bitmap() (string, error)
- func (w *MenuButton) BitmapM() string
- func (w *MenuButton) BorderWidth() (string, error)
- func (w *MenuButton) BorderWidthM() string
- func (w *MenuButton) Compound() (string, error)
- func (w *MenuButton) CompoundM() string
- func (w *MenuButton) Cursor() (string, error)
- func (w *MenuButton) CursorM() string
- func (w *MenuButton) Direction() (string, error)
- func (w *MenuButton) DirectionM() string
- func (w *MenuButton) DisabledForeground() (string, error)
- func (w *MenuButton) DisabledForegroundM() string
- func (w *MenuButton) Font() (string, error)
- func (w *MenuButton) FontM() string
- func (w *MenuButton) Foreground() (string, error)
- func (w *MenuButton) ForegroundM() string
- func (w *MenuButton) Height() (string, error)
- func (w *MenuButton) HeightM() string
- func (w *MenuButton) HighlightBackground() (string, error)
- func (w *MenuButton) HighlightBackgroundM() string
- func (w *MenuButton) HighlightColor() (string, error)
- func (w *MenuButton) HighlightColorM() string
- func (w *MenuButton) HighlightThickness() (string, error)
- func (w *MenuButton) HighlightThicknessM() string
- func (w *MenuButton) Image() (string, error)
- func (w *MenuButton) ImageM() string
- func (w *MenuButton) Indicatoron() (string, error)
- func (w *MenuButton) IndicatoronM() string
- func (w *MenuButton) Justify() (string, error)
- func (w *MenuButton) JustifyM() string
- func (w *MenuButton) Menu() (string, error)
- func (w *MenuButton) MenuM() string
- func (w *MenuButton) PadX() (string, error)
- func (w *MenuButton) PadXM() string
- func (w *MenuButton) PadY() (string, error)
- func (w *MenuButton) PadYM() string
- func (w *MenuButton) Relief() (string, error)
- func (w *MenuButton) ReliefM() string
- func (w *MenuButton) SetActiveBackground(value string) error
- func (w *MenuButton) SetActiveBackgroundM(value string) *MenuButton
- func (w *MenuButton) SetActiveForeground(value string) error
- func (w *MenuButton) SetActiveForegroundM(value string) *MenuButton
- func (w *MenuButton) SetAnchor(value string) error
- func (w *MenuButton) SetAnchorM(value string) *MenuButton
- func (w *MenuButton) SetBackground(value string) error
- func (w *MenuButton) SetBackgroundM(value string) *MenuButton
- func (w *MenuButton) SetBitmap(value string) error
- func (w *MenuButton) SetBitmapM(value string) *MenuButton
- func (w *MenuButton) SetBorderWidth(value string) error
- func (w *MenuButton) SetBorderWidthM(value string) *MenuButton
- func (w *MenuButton) SetCompound(value string) error
- func (w *MenuButton) SetCompoundM(value string) *MenuButton
- func (w *MenuButton) SetCursor(value string) error
- func (w *MenuButton) SetCursorM(value string) *MenuButton
- func (w *MenuButton) SetDirection(value string) error
- func (w *MenuButton) SetDirectionM(value string) *MenuButton
- func (w *MenuButton) SetDisabledForeground(value string) error
- func (w *MenuButton) SetDisabledForegroundM(value string) *MenuButton
- func (w *MenuButton) SetFont(value string) error
- func (w *MenuButton) SetFontM(value string) *MenuButton
- func (w *MenuButton) SetForeground(value string) error
- func (w *MenuButton) SetForegroundM(value string) *MenuButton
- func (w *MenuButton) SetHeight(value string) error
- func (w *MenuButton) SetHeightM(value string) *MenuButton
- func (w *MenuButton) SetHighlightBackground(value string) error
- func (w *MenuButton) SetHighlightBackgroundM(value string) *MenuButton
- func (w *MenuButton) SetHighlightColor(value string) error
- func (w *MenuButton) SetHighlightColorM(value string) *MenuButton
- func (w *MenuButton) SetHighlightThickness(value string) error
- func (w *MenuButton) SetHighlightThicknessM(value string) *MenuButton
- func (w *MenuButton) SetImage(value string) error
- func (w *MenuButton) SetImageM(value string) *MenuButton
- func (w *MenuButton) SetIndicatoron(value string) error
- func (w *MenuButton) SetIndicatoronM(value string) *MenuButton
- func (w *MenuButton) SetJustify(value string) error
- func (w *MenuButton) SetJustifyM(value string) *MenuButton
- func (w *MenuButton) SetMenu(value string) error
- func (w *MenuButton) SetMenuM(value string) *MenuButton
- func (w *MenuButton) SetPadX(value string) error
- func (w *MenuButton) SetPadXM(value string) *MenuButton
- func (w *MenuButton) SetPadY(value string) error
- func (w *MenuButton) SetPadYM(value string) *MenuButton
- func (w *MenuButton) SetRelief(value string) error
- func (w *MenuButton) SetReliefM(value string) *MenuButton
- func (w *MenuButton) SetState(value string) error
- func (w *MenuButton) SetStateM(value string) *MenuButton
- func (w *MenuButton) SetTakeFocus(value string) error
- func (w *MenuButton) SetTakeFocusM(value string) *MenuButton
- func (w *MenuButton) SetText(value string) error
- func (w *MenuButton) SetTextM(value string) *MenuButton
- func (w *MenuButton) SetTextVariable(value string) error
- func (w *MenuButton) SetTextVariableM(value string) *MenuButton
- func (w *MenuButton) SetUnderline(value string) error
- func (w *MenuButton) SetUnderlineM(value string) *MenuButton
- func (w *MenuButton) SetWidth(value string) error
- func (w *MenuButton) SetWidthM(value string) *MenuButton
- func (w *MenuButton) SetWrapLength(value string) error
- func (w *MenuButton) SetWrapLengthM(value string) *MenuButton
- func (w *MenuButton) State() (string, error)
- func (w *MenuButton) StateM() string
- func (w *MenuButton) TakeFocus() (string, error)
- func (w *MenuButton) TakeFocusM() string
- func (w *MenuButton) Text() (string, error)
- func (w *MenuButton) TextM() string
- func (w *MenuButton) TextVariable() (string, error)
- func (w *MenuButton) TextVariableM() string
- func (w *MenuButton) Underline() (string, error)
- func (w *MenuButton) UnderlineM() string
- func (w *MenuButton) Width() (string, error)
- func (w *MenuButton) WidthM() string
- func (w *MenuButton) WrapLength() (string, error)
- func (w *MenuButton) WrapLengthM() string
- type Message
- func (w *Message) Anchor() (string, error)
- func (w *Message) AnchorM() string
- func (w *Message) Aspect() (string, error)
- func (w *Message) AspectM() string
- func (w *Message) Background() (string, error)
- func (w *Message) BackgroundM() string
- func (w *Message) BorderWidth() (string, error)
- func (w *Message) BorderWidthM() string
- func (w *Message) Cursor() (string, error)
- func (w *Message) CursorM() string
- func (w *Message) Font() (string, error)
- func (w *Message) FontM() string
- func (w *Message) Foreground() (string, error)
- func (w *Message) ForegroundM() string
- func (w *Message) HighlightBackground() (string, error)
- func (w *Message) HighlightBackgroundM() string
- func (w *Message) HighlightColor() (string, error)
- func (w *Message) HighlightColorM() string
- func (w *Message) HighlightThickness() (string, error)
- func (w *Message) HighlightThicknessM() string
- func (w *Message) Justify() (string, error)
- func (w *Message) JustifyM() string
- func (w *Message) PadX() (string, error)
- func (w *Message) PadXM() string
- func (w *Message) PadY() (string, error)
- func (w *Message) PadYM() string
- func (w *Message) Relief() (string, error)
- func (w *Message) ReliefM() string
- func (w *Message) SetAnchor(value string) error
- func (w *Message) SetAnchorM(value string) *Message
- func (w *Message) SetAspect(value string) error
- func (w *Message) SetAspectM(value string) *Message
- func (w *Message) SetBackground(value string) error
- func (w *Message) SetBackgroundM(value string) *Message
- func (w *Message) SetBorderWidth(value string) error
- func (w *Message) SetBorderWidthM(value string) *Message
- func (w *Message) SetCursor(value string) error
- func (w *Message) SetCursorM(value string) *Message
- func (w *Message) SetFont(value string) error
- func (w *Message) SetFontM(value string) *Message
- func (w *Message) SetForeground(value string) error
- func (w *Message) SetForegroundM(value string) *Message
- func (w *Message) SetHighlightBackground(value string) error
- func (w *Message) SetHighlightBackgroundM(value string) *Message
- func (w *Message) SetHighlightColor(value string) error
- func (w *Message) SetHighlightColorM(value string) *Message
- func (w *Message) SetHighlightThickness(value string) error
- func (w *Message) SetHighlightThicknessM(value string) *Message
- func (w *Message) SetJustify(value string) error
- func (w *Message) SetJustifyM(value string) *Message
- func (w *Message) SetPadX(value string) error
- func (w *Message) SetPadXM(value string) *Message
- func (w *Message) SetPadY(value string) error
- func (w *Message) SetPadYM(value string) *Message
- func (w *Message) SetRelief(value string) error
- func (w *Message) SetReliefM(value string) *Message
- func (w *Message) SetTakeFocus(value string) error
- func (w *Message) SetTakeFocusM(value string) *Message
- func (w *Message) SetText(value string) error
- func (w *Message) SetTextM(value string) *Message
- func (w *Message) SetTextVariable(value string) error
- func (w *Message) SetTextVariableM(value string) *Message
- func (w *Message) SetWidth(value string) error
- func (w *Message) SetWidthM(value string) *Message
- func (w *Message) TakeFocus() (string, error)
- func (w *Message) TakeFocusM() string
- func (w *Message) Text() (string, error)
- func (w *Message) TextM() string
- func (w *Message) TextVariable() (string, error)
- func (w *Message) TextVariableM() string
- func (w *Message) Width() (string, error)
- func (w *Message) WidthM() string
- type PanedWindow
- func (w *PanedWindow) Background() (string, error)
- func (w *PanedWindow) BackgroundM() string
- func (w *PanedWindow) BorderWidth() (string, error)
- func (w *PanedWindow) BorderWidthM() string
- func (w *PanedWindow) Cursor() (string, error)
- func (w *PanedWindow) CursorM() string
- func (w *PanedWindow) HandlePad() (string, error)
- func (w *PanedWindow) HandlePadM() string
- func (w *PanedWindow) HandleSize() (string, error)
- func (w *PanedWindow) HandleSizeM() string
- func (w *PanedWindow) Height() (string, error)
- func (w *PanedWindow) HeightM() string
- func (w *PanedWindow) OpaqueResize() (string, error)
- func (w *PanedWindow) OpaqueResizeM() string
- func (w *PanedWindow) Orient() (string, error)
- func (w *PanedWindow) OrientM() string
- func (w *PanedWindow) ProxyBackground() (string, error)
- func (w *PanedWindow) ProxyBackgroundM() string
- func (w *PanedWindow) ProxyBorderWidth() (string, error)
- func (w *PanedWindow) ProxyBorderWidthM() string
- func (w *PanedWindow) ProxyRelief() (string, error)
- func (w *PanedWindow) ProxyReliefM() string
- func (w *PanedWindow) Relief() (string, error)
- func (w *PanedWindow) ReliefM() string
- func (w *PanedWindow) SashCursor() (string, error)
- func (w *PanedWindow) SashCursorM() string
- func (w *PanedWindow) SashPad() (string, error)
- func (w *PanedWindow) SashPadM() string
- func (w *PanedWindow) SashRelief() (string, error)
- func (w *PanedWindow) SashReliefM() string
- func (w *PanedWindow) SashWidth() (string, error)
- func (w *PanedWindow) SashWidthM() string
- func (w *PanedWindow) SetBackground(value string) error
- func (w *PanedWindow) SetBackgroundM(value string) *PanedWindow
- func (w *PanedWindow) SetBorderWidth(value string) error
- func (w *PanedWindow) SetBorderWidthM(value string) *PanedWindow
- func (w *PanedWindow) SetCursor(value string) error
- func (w *PanedWindow) SetCursorM(value string) *PanedWindow
- func (w *PanedWindow) SetHandlePad(value string) error
- func (w *PanedWindow) SetHandlePadM(value string) *PanedWindow
- func (w *PanedWindow) SetHandleSize(value string) error
- func (w *PanedWindow) SetHandleSizeM(value string) *PanedWindow
- func (w *PanedWindow) SetHeight(value string) error
- func (w *PanedWindow) SetHeightM(value string) *PanedWindow
- func (w *PanedWindow) SetOpaqueResize(value string) error
- func (w *PanedWindow) SetOpaqueResizeM(value string) *PanedWindow
- func (w *PanedWindow) SetOrient(value string) error
- func (w *PanedWindow) SetOrientM(value string) *PanedWindow
- func (w *PanedWindow) SetProxyBackground(value string) error
- func (w *PanedWindow) SetProxyBackgroundM(value string) *PanedWindow
- func (w *PanedWindow) SetProxyBorderWidth(value string) error
- func (w *PanedWindow) SetProxyBorderWidthM(value string) *PanedWindow
- func (w *PanedWindow) SetProxyRelief(value string) error
- func (w *PanedWindow) SetProxyReliefM(value string) *PanedWindow
- func (w *PanedWindow) SetRelief(value string) error
- func (w *PanedWindow) SetReliefM(value string) *PanedWindow
- func (w *PanedWindow) SetSashCursor(value string) error
- func (w *PanedWindow) SetSashCursorM(value string) *PanedWindow
- func (w *PanedWindow) SetSashPad(value string) error
- func (w *PanedWindow) SetSashPadM(value string) *PanedWindow
- func (w *PanedWindow) SetSashRelief(value string) error
- func (w *PanedWindow) SetSashReliefM(value string) *PanedWindow
- func (w *PanedWindow) SetSashWidth(value string) error
- func (w *PanedWindow) SetSashWidthM(value string) *PanedWindow
- func (w *PanedWindow) SetShowHandle(value string) error
- func (w *PanedWindow) SetShowHandleM(value string) *PanedWindow
- func (w *PanedWindow) SetWidth(value string) error
- func (w *PanedWindow) SetWidthM(value string) *PanedWindow
- func (w *PanedWindow) ShowHandle() (string, error)
- func (w *PanedWindow) ShowHandleM() string
- func (w *PanedWindow) Width() (string, error)
- func (w *PanedWindow) WidthM() string
- type RadioButton
- func (w *RadioButton) ActiveBackground() (string, error)
- func (w *RadioButton) ActiveBackgroundM() string
- func (w *RadioButton) ActiveForeground() (string, error)
- func (w *RadioButton) ActiveForegroundM() string
- func (w *RadioButton) Anchor() (string, error)
- func (w *RadioButton) AnchorM() string
- func (w *RadioButton) Background() (string, error)
- func (w *RadioButton) BackgroundM() string
- func (w *RadioButton) Bitmap() (string, error)
- func (w *RadioButton) BitmapM() string
- func (w *RadioButton) BorderWidth() (string, error)
- func (w *RadioButton) BorderWidthM() string
- func (w *RadioButton) Compound() (string, error)
- func (w *RadioButton) CompoundM() string
- func (w *RadioButton) Cursor() (string, error)
- func (w *RadioButton) CursorM() string
- func (w *RadioButton) DisabledForeground() (string, error)
- func (w *RadioButton) DisabledForegroundM() string
- func (w *RadioButton) Font() (string, error)
- func (w *RadioButton) FontM() string
- func (w *RadioButton) Foreground() (string, error)
- func (w *RadioButton) ForegroundM() string
- func (w *RadioButton) Height() (string, error)
- func (w *RadioButton) HeightM() string
- func (w *RadioButton) HighlightBackground() (string, error)
- func (w *RadioButton) HighlightBackgroundM() string
- func (w *RadioButton) HighlightColor() (string, error)
- func (w *RadioButton) HighlightColorM() string
- func (w *RadioButton) HighlightThickness() (string, error)
- func (w *RadioButton) HighlightThicknessM() string
- func (w *RadioButton) Image() (string, error)
- func (w *RadioButton) ImageM() string
- func (w *RadioButton) Indicatoron() (string, error)
- func (w *RadioButton) IndicatoronM() string
- func (w *RadioButton) Justify() (string, error)
- func (w *RadioButton) JustifyM() string
- func (w *RadioButton) OffRelief() (string, error)
- func (w *RadioButton) OffReliefM() string
- func (w *RadioButton) OverRelief() (string, error)
- func (w *RadioButton) OverReliefM() string
- func (w *RadioButton) PadX() (string, error)
- func (w *RadioButton) PadXM() string
- func (w *RadioButton) PadY() (string, error)
- func (w *RadioButton) PadYM() string
- func (w *RadioButton) Relief() (string, error)
- func (w *RadioButton) ReliefM() string
- func (w *RadioButton) SelectColor() (string, error)
- func (w *RadioButton) SelectColorM() string
- func (w *RadioButton) SelectImage() (string, error)
- func (w *RadioButton) SelectImageM() string
- func (w *RadioButton) SetActiveBackground(value string) error
- func (w *RadioButton) SetActiveBackgroundM(value string) *RadioButton
- func (w *RadioButton) SetActiveForeground(value string) error
- func (w *RadioButton) SetActiveForegroundM(value string) *RadioButton
- func (w *RadioButton) SetAnchor(value string) error
- func (w *RadioButton) SetAnchorM(value string) *RadioButton
- func (w *RadioButton) SetBackground(value string) error
- func (w *RadioButton) SetBackgroundM(value string) *RadioButton
- func (w *RadioButton) SetBitmap(value string) error
- func (w *RadioButton) SetBitmapM(value string) *RadioButton
- func (w *RadioButton) SetBorderWidth(value string) error
- func (w *RadioButton) SetBorderWidthM(value string) *RadioButton
- func (w *RadioButton) SetCommand(value Command) error
- func (w *RadioButton) SetCommandM(value Command) *RadioButton
- func (w *RadioButton) SetCompound(value string) error
- func (w *RadioButton) SetCompoundM(value string) *RadioButton
- func (w *RadioButton) SetCursor(value string) error
- func (w *RadioButton) SetCursorM(value string) *RadioButton
- func (w *RadioButton) SetDisabledForeground(value string) error
- func (w *RadioButton) SetDisabledForegroundM(value string) *RadioButton
- func (w *RadioButton) SetFont(value string) error
- func (w *RadioButton) SetFontM(value string) *RadioButton
- func (w *RadioButton) SetForeground(value string) error
- func (w *RadioButton) SetForegroundM(value string) *RadioButton
- func (w *RadioButton) SetHeight(value string) error
- func (w *RadioButton) SetHeightM(value string) *RadioButton
- func (w *RadioButton) SetHighlightBackground(value string) error
- func (w *RadioButton) SetHighlightBackgroundM(value string) *RadioButton
- func (w *RadioButton) SetHighlightColor(value string) error
- func (w *RadioButton) SetHighlightColorM(value string) *RadioButton
- func (w *RadioButton) SetHighlightThickness(value string) error
- func (w *RadioButton) SetHighlightThicknessM(value string) *RadioButton
- func (w *RadioButton) SetImage(value string) error
- func (w *RadioButton) SetImageM(value string) *RadioButton
- func (w *RadioButton) SetIndicatoron(value string) error
- func (w *RadioButton) SetIndicatoronM(value string) *RadioButton
- func (w *RadioButton) SetJustify(value string) error
- func (w *RadioButton) SetJustifyM(value string) *RadioButton
- func (w *RadioButton) SetOffRelief(value string) error
- func (w *RadioButton) SetOffReliefM(value string) *RadioButton
- func (w *RadioButton) SetOverRelief(value string) error
- func (w *RadioButton) SetOverReliefM(value string) *RadioButton
- func (w *RadioButton) SetPadX(value string) error
- func (w *RadioButton) SetPadXM(value string) *RadioButton
- func (w *RadioButton) SetPadY(value string) error
- func (w *RadioButton) SetPadYM(value string) *RadioButton
- func (w *RadioButton) SetRelief(value string) error
- func (w *RadioButton) SetReliefM(value string) *RadioButton
- func (w *RadioButton) SetSelectColor(value string) error
- func (w *RadioButton) SetSelectColorM(value string) *RadioButton
- func (w *RadioButton) SetSelectImage(value string) error
- func (w *RadioButton) SetSelectImageM(value string) *RadioButton
- func (w *RadioButton) SetState(value string) error
- func (w *RadioButton) SetStateM(value string) *RadioButton
- func (w *RadioButton) SetTakeFocus(value string) error
- func (w *RadioButton) SetTakeFocusM(value string) *RadioButton
- func (w *RadioButton) SetText(value string) error
- func (w *RadioButton) SetTextM(value string) *RadioButton
- func (w *RadioButton) SetTextVariable(value string) error
- func (w *RadioButton) SetTextVariableM(value string) *RadioButton
- func (w *RadioButton) SetTristateImage(value string) error
- func (w *RadioButton) SetTristateImageM(value string) *RadioButton
- func (w *RadioButton) SetTristateValue(value string) error
- func (w *RadioButton) SetTristateValueM(value string) *RadioButton
- func (w *RadioButton) SetUnderline(value string) error
- func (w *RadioButton) SetUnderlineM(value string) *RadioButton
- func (w *RadioButton) SetValue(value string) error
- func (w *RadioButton) SetValueM(value string) *RadioButton
- func (w *RadioButton) SetVariable(value string) error
- func (w *RadioButton) SetVariableM(value string) *RadioButton
- func (w *RadioButton) SetWidth(value string) error
- func (w *RadioButton) SetWidthM(value string) *RadioButton
- func (w *RadioButton) SetWrapLength(value string) error
- func (w *RadioButton) SetWrapLengthM(value string) *RadioButton
- func (w *RadioButton) State() (string, error)
- func (w *RadioButton) StateM() string
- func (w *RadioButton) TakeFocus() (string, error)
- func (w *RadioButton) TakeFocusM() string
- func (w *RadioButton) Text() (string, error)
- func (w *RadioButton) TextM() string
- func (w *RadioButton) TextVariable() (string, error)
- func (w *RadioButton) TextVariableM() string
- func (w *RadioButton) TristateImage() (string, error)
- func (w *RadioButton) TristateImageM() string
- func (w *RadioButton) TristateValue() (string, error)
- func (w *RadioButton) TristateValueM() string
- func (w *RadioButton) Underline() (string, error)
- func (w *RadioButton) UnderlineM() string
- func (w *RadioButton) Value() (string, error)
- func (w *RadioButton) ValueM() string
- func (w *RadioButton) Variable() (string, error)
- func (w *RadioButton) VariableM() string
- func (w *RadioButton) Width() (string, error)
- func (w *RadioButton) WidthM() string
- func (w *RadioButton) WrapLength() (string, error)
- func (w *RadioButton) WrapLengthM() string
- type Scale
- func (w *Scale) ActiveBackground() (string, error)
- func (w *Scale) ActiveBackgroundM() string
- func (w *Scale) Background() (string, error)
- func (w *Scale) BackgroundM() string
- func (w *Scale) BigIncrement() (string, error)
- func (w *Scale) BigIncrementM() string
- func (w *Scale) BorderWidth() (string, error)
- func (w *Scale) BorderWidthM() string
- func (w *Scale) Cursor() (string, error)
- func (w *Scale) CursorM() string
- func (w *Scale) Digits() (string, error)
- func (w *Scale) DigitsM() string
- func (w *Scale) Font() (string, error)
- func (w *Scale) FontM() string
- func (w *Scale) Foreground() (string, error)
- func (w *Scale) ForegroundM() string
- func (w *Scale) From() (string, error)
- func (w *Scale) FromM() string
- func (w *Scale) HighlightBackground() (string, error)
- func (w *Scale) HighlightBackgroundM() string
- func (w *Scale) HighlightColor() (string, error)
- func (w *Scale) HighlightColorM() string
- func (w *Scale) HighlightThickness() (string, error)
- func (w *Scale) HighlightThicknessM() string
- func (w *Scale) Label() (string, error)
- func (w *Scale) LabelM() string
- func (w *Scale) Length() (string, error)
- func (w *Scale) LengthM() string
- func (w *Scale) Orient() (string, error)
- func (w *Scale) OrientM() string
- func (w *Scale) Relief() (string, error)
- func (w *Scale) ReliefM() string
- func (w *Scale) RepeatDelay() (string, error)
- func (w *Scale) RepeatDelayM() string
- func (w *Scale) RepeatInterval() (string, error)
- func (w *Scale) RepeatIntervalM() string
- func (w *Scale) Resolution() (string, error)
- func (w *Scale) ResolutionM() string
- func (w *Scale) SetActiveBackground(value string) error
- func (w *Scale) SetActiveBackgroundM(value string) *Scale
- func (w *Scale) SetBackground(value string) error
- func (w *Scale) SetBackgroundM(value string) *Scale
- func (w *Scale) SetBigIncrement(value string) error
- func (w *Scale) SetBigIncrementM(value string) *Scale
- func (w *Scale) SetBorderWidth(value string) error
- func (w *Scale) SetBorderWidthM(value string) *Scale
- func (w *Scale) SetCommand(value Command) error
- func (w *Scale) SetCommandM(value Command) *Scale
- func (w *Scale) SetCursor(value string) error
- func (w *Scale) SetCursorM(value string) *Scale
- func (w *Scale) SetDigits(value string) error
- func (w *Scale) SetDigitsM(value string) *Scale
- func (w *Scale) SetFont(value string) error
- func (w *Scale) SetFontM(value string) *Scale
- func (w *Scale) SetForeground(value string) error
- func (w *Scale) SetForegroundM(value string) *Scale
- func (w *Scale) SetFrom(value string) error
- func (w *Scale) SetFromM(value string) *Scale
- func (w *Scale) SetHighlightBackground(value string) error
- func (w *Scale) SetHighlightBackgroundM(value string) *Scale
- func (w *Scale) SetHighlightColor(value string) error
- func (w *Scale) SetHighlightColorM(value string) *Scale
- func (w *Scale) SetHighlightThickness(value string) error
- func (w *Scale) SetHighlightThicknessM(value string) *Scale
- func (w *Scale) SetLabel(value string) error
- func (w *Scale) SetLabelM(value string) *Scale
- func (w *Scale) SetLength(value string) error
- func (w *Scale) SetLengthM(value string) *Scale
- func (w *Scale) SetOrient(value string) error
- func (w *Scale) SetOrientM(value string) *Scale
- func (w *Scale) SetRelief(value string) error
- func (w *Scale) SetReliefM(value string) *Scale
- func (w *Scale) SetRepeatDelay(value string) error
- func (w *Scale) SetRepeatDelayM(value string) *Scale
- func (w *Scale) SetRepeatInterval(value string) error
- func (w *Scale) SetRepeatIntervalM(value string) *Scale
- func (w *Scale) SetResolution(value string) error
- func (w *Scale) SetResolutionM(value string) *Scale
- func (w *Scale) SetShowValue(value string) error
- func (w *Scale) SetShowValueM(value string) *Scale
- func (w *Scale) SetSliderLength(value string) error
- func (w *Scale) SetSliderLengthM(value string) *Scale
- func (w *Scale) SetSliderRelief(value string) error
- func (w *Scale) SetSliderReliefM(value string) *Scale
- func (w *Scale) SetState(value string) error
- func (w *Scale) SetStateM(value string) *Scale
- func (w *Scale) SetTakeFocus(value string) error
- func (w *Scale) SetTakeFocusM(value string) *Scale
- func (w *Scale) SetTickInterval(value string) error
- func (w *Scale) SetTickIntervalM(value string) *Scale
- func (w *Scale) SetTo(value string) error
- func (w *Scale) SetToM(value string) *Scale
- func (w *Scale) SetTroughColor(value string) error
- func (w *Scale) SetTroughColorM(value string) *Scale
- func (w *Scale) SetVariable(value string) error
- func (w *Scale) SetVariableM(value string) *Scale
- func (w *Scale) SetWidth(value string) error
- func (w *Scale) SetWidthM(value string) *Scale
- func (w *Scale) ShowValue() (string, error)
- func (w *Scale) ShowValueM() string
- func (w *Scale) SliderLength() (string, error)
- func (w *Scale) SliderLengthM() string
- func (w *Scale) SliderRelief() (string, error)
- func (w *Scale) SliderReliefM() string
- func (w *Scale) State() (string, error)
- func (w *Scale) StateM() string
- func (w *Scale) TakeFocus() (string, error)
- func (w *Scale) TakeFocusM() string
- func (w *Scale) TickInterval() (string, error)
- func (w *Scale) TickIntervalM() string
- func (w *Scale) To() (string, error)
- func (w *Scale) ToM() string
- func (w *Scale) TroughColor() (string, error)
- func (w *Scale) TroughColorM() string
- func (w *Scale) Variable() (string, error)
- func (w *Scale) VariableM() string
- func (w *Scale) Width() (string, error)
- func (w *Scale) WidthM() string
- type Scrollbar
- func (w *Scrollbar) ActiveBackground() (string, error)
- func (w *Scrollbar) ActiveBackgroundM() string
- func (w *Scrollbar) ActiveRelief() (string, error)
- func (w *Scrollbar) ActiveReliefM() string
- func (w *Scrollbar) Background() (string, error)
- func (w *Scrollbar) BackgroundM() string
- func (w *Scrollbar) BorderWidth() (string, error)
- func (w *Scrollbar) BorderWidthM() string
- func (w *Scrollbar) Cursor() (string, error)
- func (w *Scrollbar) CursorM() string
- func (w *Scrollbar) ElementBorderWidth() (string, error)
- func (w *Scrollbar) ElementBorderWidthM() string
- func (w *Scrollbar) HighlightBackground() (string, error)
- func (w *Scrollbar) HighlightBackgroundM() string
- func (w *Scrollbar) HighlightColor() (string, error)
- func (w *Scrollbar) HighlightColorM() string
- func (w *Scrollbar) HighlightThickness() (string, error)
- func (w *Scrollbar) HighlightThicknessM() string
- func (w *Scrollbar) Jump() (string, error)
- func (w *Scrollbar) JumpM() string
- func (w *Scrollbar) Orient() (string, error)
- func (w *Scrollbar) OrientM() string
- func (w *Scrollbar) Relief() (string, error)
- func (w *Scrollbar) ReliefM() string
- func (w *Scrollbar) RepeatDelay() (string, error)
- func (w *Scrollbar) RepeatDelayM() string
- func (w *Scrollbar) RepeatInterval() (string, error)
- func (w *Scrollbar) RepeatIntervalM() string
- func (w *Scrollbar) SetActiveBackground(value string) error
- func (w *Scrollbar) SetActiveBackgroundM(value string) *Scrollbar
- func (w *Scrollbar) SetActiveRelief(value string) error
- func (w *Scrollbar) SetActiveReliefM(value string) *Scrollbar
- func (w *Scrollbar) SetBackground(value string) error
- func (w *Scrollbar) SetBackgroundM(value string) *Scrollbar
- func (w *Scrollbar) SetBorderWidth(value string) error
- func (w *Scrollbar) SetBorderWidthM(value string) *Scrollbar
- func (w *Scrollbar) SetCommand(value Command) error
- func (w *Scrollbar) SetCommandM(value Command) *Scrollbar
- func (w *Scrollbar) SetCursor(value string) error
- func (w *Scrollbar) SetCursorM(value string) *Scrollbar
- func (w *Scrollbar) SetElementBorderWidth(value string) error
- func (w *Scrollbar) SetElementBorderWidthM(value string) *Scrollbar
- func (w *Scrollbar) SetHighlightBackground(value string) error
- func (w *Scrollbar) SetHighlightBackgroundM(value string) *Scrollbar
- func (w *Scrollbar) SetHighlightColor(value string) error
- func (w *Scrollbar) SetHighlightColorM(value string) *Scrollbar
- func (w *Scrollbar) SetHighlightThickness(value string) error
- func (w *Scrollbar) SetHighlightThicknessM(value string) *Scrollbar
- func (w *Scrollbar) SetJump(value string) error
- func (w *Scrollbar) SetJumpM(value string) *Scrollbar
- func (w *Scrollbar) SetOrient(value string) error
- func (w *Scrollbar) SetOrientM(value string) *Scrollbar
- func (w *Scrollbar) SetRelief(value string) error
- func (w *Scrollbar) SetReliefM(value string) *Scrollbar
- func (w *Scrollbar) SetRepeatDelay(value string) error
- func (w *Scrollbar) SetRepeatDelayM(value string) *Scrollbar
- func (w *Scrollbar) SetRepeatInterval(value string) error
- func (w *Scrollbar) SetRepeatIntervalM(value string) *Scrollbar
- func (w *Scrollbar) SetTakeFocus(value string) error
- func (w *Scrollbar) SetTakeFocusM(value string) *Scrollbar
- func (w *Scrollbar) SetTroughColor(value string) error
- func (w *Scrollbar) SetTroughColorM(value string) *Scrollbar
- func (w *Scrollbar) SetWidth(value string) error
- func (w *Scrollbar) SetWidthM(value string) *Scrollbar
- func (w *Scrollbar) TakeFocus() (string, error)
- func (w *Scrollbar) TakeFocusM() string
- func (w *Scrollbar) TroughColor() (string, error)
- func (w *Scrollbar) TroughColorM() string
- func (w *Scrollbar) Width() (string, error)
- func (w *Scrollbar) WidthM() string
- type SpinBox
- func (w *SpinBox) ActiveBackground() (string, error)
- func (w *SpinBox) ActiveBackgroundM() string
- func (w *SpinBox) Background() (string, error)
- func (w *SpinBox) BackgroundM() string
- func (w *SpinBox) BorderWidth() (string, error)
- func (w *SpinBox) BorderWidthM() string
- func (w *SpinBox) ButtonBackground() (string, error)
- func (w *SpinBox) ButtonBackgroundM() string
- func (w *SpinBox) ButtonCursor() (string, error)
- func (w *SpinBox) ButtonCursorM() string
- func (w *SpinBox) ButtonDownRelief() (string, error)
- func (w *SpinBox) ButtonDownReliefM() string
- func (w *SpinBox) ButtonuPRelief() (string, error)
- func (w *SpinBox) ButtonuPReliefM() string
- func (w *SpinBox) Cursor() (string, error)
- func (w *SpinBox) CursorM() string
- func (w *SpinBox) DisabledBackground() (string, error)
- func (w *SpinBox) DisabledBackgroundM() string
- func (w *SpinBox) DisabledForeground() (string, error)
- func (w *SpinBox) DisabledForegroundM() string
- func (w *SpinBox) ExportSelection() (bool, error)
- func (w *SpinBox) ExportSelectionM() bool
- func (w *SpinBox) Font() (string, error)
- func (w *SpinBox) FontM() string
- func (w *SpinBox) Foreground() (string, error)
- func (w *SpinBox) ForegroundM() string
- func (w *SpinBox) Format() (string, error)
- func (w *SpinBox) FormatM() string
- func (w *SpinBox) From() (string, error)
- func (w *SpinBox) FromM() string
- func (w *SpinBox) HighlightBackground() (string, error)
- func (w *SpinBox) HighlightBackgroundM() string
- func (w *SpinBox) HighlightColor() (string, error)
- func (w *SpinBox) HighlightColorM() string
- func (w *SpinBox) HighlightThickness() (string, error)
- func (w *SpinBox) HighlightThicknessM() string
- func (w *SpinBox) Increment() (string, error)
- func (w *SpinBox) IncrementM() string
- func (w *SpinBox) InsertBackground() (string, error)
- func (w *SpinBox) InsertBackgroundM() string
- func (w *SpinBox) InsertBorderWidth() (string, error)
- func (w *SpinBox) InsertBorderWidthM() string
- func (w *SpinBox) InsertOffTime() (int, error)
- func (w *SpinBox) InsertOffTimeM() int
- func (w *SpinBox) InsertOnTime() (int, error)
- func (w *SpinBox) InsertOnTimeM() int
- func (w *SpinBox) InsertWidth() (string, error)
- func (w *SpinBox) InsertWidthM() string
- func (w *SpinBox) InvalidCommand() (string, error)
- func (w *SpinBox) InvalidCommandM() string
- func (w *SpinBox) Justify() (string, error)
- func (w *SpinBox) JustifyM() string
- func (w *SpinBox) ReadonlyBackground() (string, error)
- func (w *SpinBox) ReadonlyBackgroundM() string
- func (w *SpinBox) Relief() (string, error)
- func (w *SpinBox) ReliefM() string
- func (w *SpinBox) RepeatDelay() (string, error)
- func (w *SpinBox) RepeatDelayM() string
- func (w *SpinBox) RepeatInterval() (string, error)
- func (w *SpinBox) RepeatIntervalM() string
- func (w *SpinBox) SelectBackground() (string, error)
- func (w *SpinBox) SelectBackgroundM() string
- func (w *SpinBox) SelectBorderWidth() (string, error)
- func (w *SpinBox) SelectBorderWidthM() string
- func (w *SpinBox) SelectForeground() (string, error)
- func (w *SpinBox) SelectForegroundM() string
- func (w *SpinBox) SetActiveBackground(value string) error
- func (w *SpinBox) SetActiveBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetBackground(value string) error
- func (w *SpinBox) SetBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetBorderWidth(value string) error
- func (w *SpinBox) SetBorderWidthM(value string) *SpinBox
- func (w *SpinBox) SetButtonBackground(value string) error
- func (w *SpinBox) SetButtonBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetButtonCursor(value string) error
- func (w *SpinBox) SetButtonCursorM(value string) *SpinBox
- func (w *SpinBox) SetButtonDownRelief(value string) error
- func (w *SpinBox) SetButtonDownReliefM(value string) *SpinBox
- func (w *SpinBox) SetButtonuPRelief(value string) error
- func (w *SpinBox) SetButtonuPReliefM(value string) *SpinBox
- func (w *SpinBox) SetCommand(value Command) error
- func (w *SpinBox) SetCommandM(value Command) *SpinBox
- func (w *SpinBox) SetCursor(value string) error
- func (w *SpinBox) SetCursorM(value string) *SpinBox
- func (w *SpinBox) SetDisabledBackground(value string) error
- func (w *SpinBox) SetDisabledBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetDisabledForeground(value string) error
- func (w *SpinBox) SetDisabledForegroundM(value string) *SpinBox
- func (w *SpinBox) SetExportSelection(value bool) error
- func (w *SpinBox) SetExportSelectionM(value bool) *SpinBox
- func (w *SpinBox) SetFont(value string) error
- func (w *SpinBox) SetFontM(value string) *SpinBox
- func (w *SpinBox) SetForeground(value string) error
- func (w *SpinBox) SetForegroundM(value string) *SpinBox
- func (w *SpinBox) SetFormat(value string) error
- func (w *SpinBox) SetFormatM(value string) *SpinBox
- func (w *SpinBox) SetFrom(value string) error
- func (w *SpinBox) SetFromM(value string) *SpinBox
- func (w *SpinBox) SetHighlightBackground(value string) error
- func (w *SpinBox) SetHighlightBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetHighlightColor(value string) error
- func (w *SpinBox) SetHighlightColorM(value string) *SpinBox
- func (w *SpinBox) SetHighlightThickness(value string) error
- func (w *SpinBox) SetHighlightThicknessM(value string) *SpinBox
- func (w *SpinBox) SetIncrement(value string) error
- func (w *SpinBox) SetIncrementM(value string) *SpinBox
- func (w *SpinBox) SetInsertBackground(value string) error
- func (w *SpinBox) SetInsertBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetInsertBorderWidth(value string) error
- func (w *SpinBox) SetInsertBorderWidthM(value string) *SpinBox
- func (w *SpinBox) SetInsertOffTime(value int) error
- func (w *SpinBox) SetInsertOffTimeM(value int) *SpinBox
- func (w *SpinBox) SetInsertOnTime(value int) error
- func (w *SpinBox) SetInsertOnTimeM(value int) *SpinBox
- func (w *SpinBox) SetInsertWidth(value string) error
- func (w *SpinBox) SetInsertWidthM(value string) *SpinBox
- func (w *SpinBox) SetInvalidCommand(value string) error
- func (w *SpinBox) SetInvalidCommandM(value string) *SpinBox
- func (w *SpinBox) SetJustify(value string) error
- func (w *SpinBox) SetJustifyM(value string) *SpinBox
- func (w *SpinBox) SetReadonlyBackground(value string) error
- func (w *SpinBox) SetReadonlyBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetRelief(value string) error
- func (w *SpinBox) SetReliefM(value string) *SpinBox
- func (w *SpinBox) SetRepeatDelay(value string) error
- func (w *SpinBox) SetRepeatDelayM(value string) *SpinBox
- func (w *SpinBox) SetRepeatInterval(value string) error
- func (w *SpinBox) SetRepeatIntervalM(value string) *SpinBox
- func (w *SpinBox) SetSelectBackground(value string) error
- func (w *SpinBox) SetSelectBackgroundM(value string) *SpinBox
- func (w *SpinBox) SetSelectBorderWidth(value string) error
- func (w *SpinBox) SetSelectBorderWidthM(value string) *SpinBox
- func (w *SpinBox) SetSelectForeground(value string) error
- func (w *SpinBox) SetSelectForegroundM(value string) *SpinBox
- func (w *SpinBox) SetState(value string) error
- func (w *SpinBox) SetStateM(value string) *SpinBox
- func (w *SpinBox) SetTakeFocus(value string) error
- func (w *SpinBox) SetTakeFocusM(value string) *SpinBox
- func (w *SpinBox) SetTextVariable(value string) error
- func (w *SpinBox) SetTextVariableM(value string) *SpinBox
- func (w *SpinBox) SetTo(value string) error
- func (w *SpinBox) SetToM(value string) *SpinBox
- func (w *SpinBox) SetValidate(value string) error
- func (w *SpinBox) SetValidateCommand(value string) error
- func (w *SpinBox) SetValidateCommandM(value string) *SpinBox
- func (w *SpinBox) SetValidateM(value string) *SpinBox
- func (w *SpinBox) SetValues(value string) error
- func (w *SpinBox) SetValuesM(value string) *SpinBox
- func (w *SpinBox) SetWidth(value string) error
- func (w *SpinBox) SetWidthM(value string) *SpinBox
- func (w *SpinBox) SetWrap(value string) error
- func (w *SpinBox) SetWrapM(value string) *SpinBox
- func (w *SpinBox) SetXScrollCommand(value Command) error
- func (w *SpinBox) SetXScrollCommandM(value Command) *SpinBox
- func (w *SpinBox) State() (string, error)
- func (w *SpinBox) StateM() string
- func (w *SpinBox) TakeFocus() (string, error)
- func (w *SpinBox) TakeFocusM() string
- func (w *SpinBox) TextVariable() (string, error)
- func (w *SpinBox) TextVariableM() string
- func (w *SpinBox) To() (string, error)
- func (w *SpinBox) ToM() string
- func (w *SpinBox) Validate() (string, error)
- func (w *SpinBox) ValidateCommand() (string, error)
- func (w *SpinBox) ValidateCommandM() string
- func (w *SpinBox) ValidateM() string
- func (w *SpinBox) Values() (string, error)
- func (w *SpinBox) ValuesM() string
- func (w *SpinBox) Width() (string, error)
- func (w *SpinBox) WidthM() string
- func (w *SpinBox) Wrap() (string, error)
- func (w *SpinBox) WrapM() string
- type TButton
- func (w *TButton) Class() (string, error)
- func (w *TButton) ClassM() string
- func (w *TButton) Compound() (string, error)
- func (w *TButton) CompoundM() string
- func (w *TButton) Cursor() (string, error)
- func (w *TButton) CursorM() string
- func (w *TButton) Default() (string, error)
- func (w *TButton) DefaultM() string
- func (w *TButton) Image() (string, error)
- func (w *TButton) ImageM() string
- func (w *TButton) SetCommand(value Command) error
- func (w *TButton) SetCommandM(value Command) *TButton
- func (w *TButton) SetCompound(value string) error
- func (w *TButton) SetCompoundM(value string) *TButton
- func (w *TButton) SetCursor(value string) error
- func (w *TButton) SetCursorM(value string) *TButton
- func (w *TButton) SetDefault(value string) error
- func (w *TButton) SetDefaultM(value string) *TButton
- func (w *TButton) SetImage(value string) error
- func (w *TButton) SetImageM(value string) *TButton
- func (w *TButton) SetState(value string) error
- func (w *TButton) SetStateM(value string) *TButton
- func (w *TButton) SetStyle(value string) error
- func (w *TButton) SetStyleM(value string) *TButton
- func (w *TButton) SetTakeFocus(value string) error
- func (w *TButton) SetTakeFocusM(value string) *TButton
- func (w *TButton) SetText(value string) error
- func (w *TButton) SetTextM(value string) *TButton
- func (w *TButton) SetTextVariable(value string) error
- func (w *TButton) SetTextVariableM(value string) *TButton
- func (w *TButton) SetUnderline(value string) error
- func (w *TButton) SetUnderlineM(value string) *TButton
- func (w *TButton) SetWidth(value string) error
- func (w *TButton) SetWidthM(value string) *TButton
- func (w *TButton) State() (string, error)
- func (w *TButton) StateM() string
- func (w *TButton) Style() (string, error)
- func (w *TButton) StyleM() string
- func (w *TButton) TakeFocus() (string, error)
- func (w *TButton) TakeFocusM() string
- func (w *TButton) Text() (string, error)
- func (w *TButton) TextM() string
- func (w *TButton) TextVariable() (string, error)
- func (w *TButton) TextVariableM() string
- func (w *TButton) Underline() (string, error)
- func (w *TButton) UnderlineM() string
- func (w *TButton) Width() (string, error)
- func (w *TButton) WidthM() string
- type TCheckButton
- func (w *TCheckButton) Class() (string, error)
- func (w *TCheckButton) ClassM() string
- func (w *TCheckButton) Compound() (string, error)
- func (w *TCheckButton) CompoundM() string
- func (w *TCheckButton) Cursor() (string, error)
- func (w *TCheckButton) CursorM() string
- func (w *TCheckButton) Image() (string, error)
- func (w *TCheckButton) ImageM() string
- func (w *TCheckButton) OffValue() (string, error)
- func (w *TCheckButton) OffValueM() string
- func (w *TCheckButton) OnValue() (string, error)
- func (w *TCheckButton) OnValueM() string
- func (w *TCheckButton) SetCommand(value Command) error
- func (w *TCheckButton) SetCommandM(value Command) *TCheckButton
- func (w *TCheckButton) SetCompound(value string) error
- func (w *TCheckButton) SetCompoundM(value string) *TCheckButton
- func (w *TCheckButton) SetCursor(value string) error
- func (w *TCheckButton) SetCursorM(value string) *TCheckButton
- func (w *TCheckButton) SetImage(value string) error
- func (w *TCheckButton) SetImageM(value string) *TCheckButton
- func (w *TCheckButton) SetOffValue(value string) error
- func (w *TCheckButton) SetOffValueM(value string) *TCheckButton
- func (w *TCheckButton) SetOnValue(value string) error
- func (w *TCheckButton) SetOnValueM(value string) *TCheckButton
- func (w *TCheckButton) SetState(value string) error
- func (w *TCheckButton) SetStateM(value string) *TCheckButton
- func (w *TCheckButton) SetStyle(value string) error
- func (w *TCheckButton) SetStyleM(value string) *TCheckButton
- func (w *TCheckButton) SetTakeFocus(value string) error
- func (w *TCheckButton) SetTakeFocusM(value string) *TCheckButton
- func (w *TCheckButton) SetText(value string) error
- func (w *TCheckButton) SetTextM(value string) *TCheckButton
- func (w *TCheckButton) SetTextVariable(value string) error
- func (w *TCheckButton) SetTextVariableM(value string) *TCheckButton
- func (w *TCheckButton) SetUnderline(value string) error
- func (w *TCheckButton) SetUnderlineM(value string) *TCheckButton
- func (w *TCheckButton) SetVariable(value string) error
- func (w *TCheckButton) SetVariableM(value string) *TCheckButton
- func (w *TCheckButton) SetWidth(value string) error
- func (w *TCheckButton) SetWidthM(value string) *TCheckButton
- func (w *TCheckButton) State() (string, error)
- func (w *TCheckButton) StateM() string
- func (w *TCheckButton) Style() (string, error)
- func (w *TCheckButton) StyleM() string
- func (w *TCheckButton) TakeFocus() (string, error)
- func (w *TCheckButton) TakeFocusM() string
- func (w *TCheckButton) Text() (string, error)
- func (w *TCheckButton) TextM() string
- func (w *TCheckButton) TextVariable() (string, error)
- func (w *TCheckButton) TextVariableM() string
- func (w *TCheckButton) Underline() (string, error)
- func (w *TCheckButton) UnderlineM() string
- func (w *TCheckButton) Variable() (string, error)
- func (w *TCheckButton) VariableM() string
- func (w *TCheckButton) Width() (string, error)
- func (w *TCheckButton) WidthM() string
- type TComboBox
- func (w *TComboBox) Class() (string, error)
- func (w *TComboBox) ClassM() string
- func (w *TComboBox) Cursor() (string, error)
- func (w *TComboBox) CursorM() string
- func (w *TComboBox) ExportSelection() (bool, error)
- func (w *TComboBox) ExportSelectionM() bool
- func (w *TComboBox) Height() (string, error)
- func (w *TComboBox) HeightM() string
- func (w *TComboBox) Justify() (string, error)
- func (w *TComboBox) JustifyM() string
- func (w *TComboBox) PostCommand() (string, error)
- func (w *TComboBox) PostCommandM() string
- func (w *TComboBox) SetCursor(value string) error
- func (w *TComboBox) SetCursorM(value string) *TComboBox
- func (w *TComboBox) SetExportSelection(value bool) error
- func (w *TComboBox) SetExportSelectionM(value bool) *TComboBox
- func (w *TComboBox) SetHeight(value string) error
- func (w *TComboBox) SetHeightM(value string) *TComboBox
- func (w *TComboBox) SetJustify(value string) error
- func (w *TComboBox) SetJustifyM(value string) *TComboBox
- func (w *TComboBox) SetPostCommand(value string) error
- func (w *TComboBox) SetPostCommandM(value string) *TComboBox
- func (w *TComboBox) SetState(value string) error
- func (w *TComboBox) SetStateM(value string) *TComboBox
- func (w *TComboBox) SetStyle(value string) error
- func (w *TComboBox) SetStyleM(value string) *TComboBox
- func (w *TComboBox) SetTakeFocus(value string) error
- func (w *TComboBox) SetTakeFocusM(value string) *TComboBox
- func (w *TComboBox) SetTextVariable(value string) error
- func (w *TComboBox) SetTextVariableM(value string) *TComboBox
- func (w *TComboBox) SetValues(value string) error
- func (w *TComboBox) SetValuesM(value string) *TComboBox
- func (w *TComboBox) SetWidth(value string) error
- func (w *TComboBox) SetWidthM(value string) *TComboBox
- func (w *TComboBox) State() (string, error)
- func (w *TComboBox) StateM() string
- func (w *TComboBox) Style() (string, error)
- func (w *TComboBox) StyleM() string
- func (w *TComboBox) TakeFocus() (string, error)
- func (w *TComboBox) TakeFocusM() string
- func (w *TComboBox) TextVariable() (string, error)
- func (w *TComboBox) TextVariableM() string
- func (w *TComboBox) Values() (string, error)
- func (w *TComboBox) ValuesM() string
- func (w *TComboBox) Width() (string, error)
- func (w *TComboBox) WidthM() string
- type TEntry
- func (w *TEntry) Class() (string, error)
- func (w *TEntry) ClassM() string
- func (w *TEntry) Cursor() (string, error)
- func (w *TEntry) CursorM() string
- func (w *TEntry) ExportSelection() (bool, error)
- func (w *TEntry) ExportSelectionM() bool
- func (w *TEntry) Font() (string, error)
- func (w *TEntry) FontM() string
- func (w *TEntry) Foreground() (string, error)
- func (w *TEntry) ForegroundM() string
- func (w *TEntry) InvalidCommand() (string, error)
- func (w *TEntry) InvalidCommandM() string
- func (w *TEntry) Justify() (string, error)
- func (w *TEntry) JustifyM() string
- func (w *TEntry) SetCursor(value string) error
- func (w *TEntry) SetCursorM(value string) *TEntry
- func (w *TEntry) SetExportSelection(value bool) error
- func (w *TEntry) SetExportSelectionM(value bool) *TEntry
- func (w *TEntry) SetFont(value string) error
- func (w *TEntry) SetFontM(value string) *TEntry
- func (w *TEntry) SetForeground(value string) error
- func (w *TEntry) SetForegroundM(value string) *TEntry
- func (w *TEntry) SetInvalidCommand(value string) error
- func (w *TEntry) SetInvalidCommandM(value string) *TEntry
- func (w *TEntry) SetJustify(value string) error
- func (w *TEntry) SetJustifyM(value string) *TEntry
- func (w *TEntry) SetShow(value string) error
- func (w *TEntry) SetShowM(value string) *TEntry
- func (w *TEntry) SetState(value string) error
- func (w *TEntry) SetStateM(value string) *TEntry
- func (w *TEntry) SetStyle(value string) error
- func (w *TEntry) SetStyleM(value string) *TEntry
- func (w *TEntry) SetTakeFocus(value string) error
- func (w *TEntry) SetTakeFocusM(value string) *TEntry
- func (w *TEntry) SetTextVariable(value string) error
- func (w *TEntry) SetTextVariableM(value string) *TEntry
- func (w *TEntry) SetValidate(value string) error
- func (w *TEntry) SetValidateCommand(value string) error
- func (w *TEntry) SetValidateCommandM(value string) *TEntry
- func (w *TEntry) SetValidateM(value string) *TEntry
- func (w *TEntry) SetWidth(value string) error
- func (w *TEntry) SetWidthM(value string) *TEntry
- func (w *TEntry) SetXScrollCommand(value Command) error
- func (w *TEntry) SetXScrollCommandM(value Command) *TEntry
- func (w *TEntry) Show() (string, error)
- func (w *TEntry) ShowM() string
- func (w *TEntry) State() (string, error)
- func (w *TEntry) StateM() string
- func (w *TEntry) Style() (string, error)
- func (w *TEntry) StyleM() string
- func (w *TEntry) TakeFocus() (string, error)
- func (w *TEntry) TakeFocusM() string
- func (w *TEntry) TextVariable() (string, error)
- func (w *TEntry) TextVariableM() string
- func (w *TEntry) Validate() (string, error)
- func (w *TEntry) ValidateCommand() (string, error)
- func (w *TEntry) ValidateCommandM() string
- func (w *TEntry) ValidateM() string
- func (w *TEntry) Width() (string, error)
- func (w *TEntry) WidthM() string
- type TFrame
- func (w *TFrame) BorderWidth() (string, error)
- func (w *TFrame) BorderWidthM() string
- func (w *TFrame) Class() (string, error)
- func (w *TFrame) ClassM() string
- func (w *TFrame) Cursor() (string, error)
- func (w *TFrame) CursorM() string
- func (w *TFrame) Height() (string, error)
- func (w *TFrame) HeightM() string
- func (w *TFrame) Padding() (string, error)
- func (w *TFrame) PaddingM() string
- func (w *TFrame) Relief() (string, error)
- func (w *TFrame) ReliefM() string
- func (w *TFrame) SetBorderWidth(value string) error
- func (w *TFrame) SetBorderWidthM(value string) *TFrame
- func (w *TFrame) SetCursor(value string) error
- func (w *TFrame) SetCursorM(value string) *TFrame
- func (w *TFrame) SetHeight(value string) error
- func (w *TFrame) SetHeightM(value string) *TFrame
- func (w *TFrame) SetPadding(value string) error
- func (w *TFrame) SetPaddingM(value string) *TFrame
- func (w *TFrame) SetRelief(value string) error
- func (w *TFrame) SetReliefM(value string) *TFrame
- func (w *TFrame) SetStyle(value string) error
- func (w *TFrame) SetStyleM(value string) *TFrame
- func (w *TFrame) SetTakeFocus(value string) error
- func (w *TFrame) SetTakeFocusM(value string) *TFrame
- func (w *TFrame) SetWidth(value string) error
- func (w *TFrame) SetWidthM(value string) *TFrame
- func (w *TFrame) Style() (string, error)
- func (w *TFrame) StyleM() string
- func (w *TFrame) TakeFocus() (string, error)
- func (w *TFrame) TakeFocusM() string
- func (w *TFrame) Width() (string, error)
- func (w *TFrame) WidthM() string
- type TLabel
- func (w *TLabel) Anchor() (string, error)
- func (w *TLabel) AnchorM() string
- func (w *TLabel) Background() (string, error)
- func (w *TLabel) BackgroundM() string
- func (w *TLabel) Class() (string, error)
- func (w *TLabel) ClassM() string
- func (w *TLabel) Compound() (string, error)
- func (w *TLabel) CompoundM() string
- func (w *TLabel) Cursor() (string, error)
- func (w *TLabel) CursorM() string
- func (w *TLabel) Font() (string, error)
- func (w *TLabel) FontM() string
- func (w *TLabel) Foreground() (string, error)
- func (w *TLabel) ForegroundM() string
- func (w *TLabel) Image() (string, error)
- func (w *TLabel) ImageM() string
- func (w *TLabel) Justify() (string, error)
- func (w *TLabel) JustifyM() string
- func (w *TLabel) Padding() (string, error)
- func (w *TLabel) PaddingM() string
- func (w *TLabel) Relief() (string, error)
- func (w *TLabel) ReliefM() string
- func (w *TLabel) SetAnchor(value string) error
- func (w *TLabel) SetAnchorM(value string) *TLabel
- func (w *TLabel) SetBackground(value string) error
- func (w *TLabel) SetBackgroundM(value string) *TLabel
- func (w *TLabel) SetCompound(value string) error
- func (w *TLabel) SetCompoundM(value string) *TLabel
- func (w *TLabel) SetCursor(value string) error
- func (w *TLabel) SetCursorM(value string) *TLabel
- func (w *TLabel) SetFont(value string) error
- func (w *TLabel) SetFontM(value string) *TLabel
- func (w *TLabel) SetForeground(value string) error
- func (w *TLabel) SetForegroundM(value string) *TLabel
- func (w *TLabel) SetImage(value string) error
- func (w *TLabel) SetImageM(value string) *TLabel
- func (w *TLabel) SetJustify(value string) error
- func (w *TLabel) SetJustifyM(value string) *TLabel
- func (w *TLabel) SetPadding(value string) error
- func (w *TLabel) SetPaddingM(value string) *TLabel
- func (w *TLabel) SetRelief(value string) error
- func (w *TLabel) SetReliefM(value string) *TLabel
- func (w *TLabel) SetState(value string) error
- func (w *TLabel) SetStateM(value string) *TLabel
- func (w *TLabel) SetStyle(value string) error
- func (w *TLabel) SetStyleM(value string) *TLabel
- func (w *TLabel) SetTakeFocus(value string) error
- func (w *TLabel) SetTakeFocusM(value string) *TLabel
- func (w *TLabel) SetText(value string) error
- func (w *TLabel) SetTextM(value string) *TLabel
- func (w *TLabel) SetTextVariable(value string) error
- func (w *TLabel) SetTextVariableM(value string) *TLabel
- func (w *TLabel) SetUnderline(value string) error
- func (w *TLabel) SetUnderlineM(value string) *TLabel
- func (w *TLabel) SetWidth(value string) error
- func (w *TLabel) SetWidthM(value string) *TLabel
- func (w *TLabel) SetWrapLength(value string) error
- func (w *TLabel) SetWrapLengthM(value string) *TLabel
- func (w *TLabel) State() (string, error)
- func (w *TLabel) StateM() string
- func (w *TLabel) Style() (string, error)
- func (w *TLabel) StyleM() string
- func (w *TLabel) TakeFocus() (string, error)
- func (w *TLabel) TakeFocusM() string
- func (w *TLabel) Text() (string, error)
- func (w *TLabel) TextM() string
- func (w *TLabel) TextVariable() (string, error)
- func (w *TLabel) TextVariableM() string
- func (w *TLabel) Underline() (string, error)
- func (w *TLabel) UnderlineM() string
- func (w *TLabel) Width() (string, error)
- func (w *TLabel) WidthM() string
- func (w *TLabel) WrapLength() (string, error)
- func (w *TLabel) WrapLengthM() string
- type TLabelFrame
- func (w *TLabelFrame) Class() (string, error)
- func (w *TLabelFrame) ClassM() string
- func (w *TLabelFrame) Cursor() (string, error)
- func (w *TLabelFrame) CursorM() string
- func (w *TLabelFrame) Height() (string, error)
- func (w *TLabelFrame) HeightM() string
- func (w *TLabelFrame) LabelAnchor() (string, error)
- func (w *TLabelFrame) LabelAnchorM() string
- func (w *TLabelFrame) LabelWidget() (string, error)
- func (w *TLabelFrame) LabelWidgetM() string
- func (w *TLabelFrame) Padding() (string, error)
- func (w *TLabelFrame) PaddingM() string
- func (w *TLabelFrame) SetCursor(value string) error
- func (w *TLabelFrame) SetCursorM(value string) *TLabelFrame
- func (w *TLabelFrame) SetHeight(value string) error
- func (w *TLabelFrame) SetHeightM(value string) *TLabelFrame
- func (w *TLabelFrame) SetLabelAnchor(value string) error
- func (w *TLabelFrame) SetLabelAnchorM(value string) *TLabelFrame
- func (w *TLabelFrame) SetLabelWidget(value string) error
- func (w *TLabelFrame) SetLabelWidgetM(value string) *TLabelFrame
- func (w *TLabelFrame) SetPadding(value string) error
- func (w *TLabelFrame) SetPaddingM(value string) *TLabelFrame
- func (w *TLabelFrame) SetStyle(value string) error
- func (w *TLabelFrame) SetStyleM(value string) *TLabelFrame
- func (w *TLabelFrame) SetTakeFocus(value string) error
- func (w *TLabelFrame) SetTakeFocusM(value string) *TLabelFrame
- func (w *TLabelFrame) SetText(value string) error
- func (w *TLabelFrame) SetTextM(value string) *TLabelFrame
- func (w *TLabelFrame) SetUnderline(value string) error
- func (w *TLabelFrame) SetUnderlineM(value string) *TLabelFrame
- func (w *TLabelFrame) SetWidth(value string) error
- func (w *TLabelFrame) SetWidthM(value string) *TLabelFrame
- func (w *TLabelFrame) Style() (string, error)
- func (w *TLabelFrame) StyleM() string
- func (w *TLabelFrame) TakeFocus() (string, error)
- func (w *TLabelFrame) TakeFocusM() string
- func (w *TLabelFrame) Text() (string, error)
- func (w *TLabelFrame) TextM() string
- func (w *TLabelFrame) Underline() (string, error)
- func (w *TLabelFrame) UnderlineM() string
- func (w *TLabelFrame) Width() (string, error)
- func (w *TLabelFrame) WidthM() string
- type TMenuButton
- func (w *TMenuButton) Class() (string, error)
- func (w *TMenuButton) ClassM() string
- func (w *TMenuButton) Compound() (string, error)
- func (w *TMenuButton) CompoundM() string
- func (w *TMenuButton) Cursor() (string, error)
- func (w *TMenuButton) CursorM() string
- func (w *TMenuButton) Direction() (string, error)
- func (w *TMenuButton) DirectionM() string
- func (w *TMenuButton) Image() (string, error)
- func (w *TMenuButton) ImageM() string
- func (w *TMenuButton) Menu() (string, error)
- func (w *TMenuButton) MenuM() string
- func (w *TMenuButton) SetCompound(value string) error
- func (w *TMenuButton) SetCompoundM(value string) *TMenuButton
- func (w *TMenuButton) SetCursor(value string) error
- func (w *TMenuButton) SetCursorM(value string) *TMenuButton
- func (w *TMenuButton) SetDirection(value string) error
- func (w *TMenuButton) SetDirectionM(value string) *TMenuButton
- func (w *TMenuButton) SetImage(value string) error
- func (w *TMenuButton) SetImageM(value string) *TMenuButton
- func (w *TMenuButton) SetMenu(value string) error
- func (w *TMenuButton) SetMenuM(value string) *TMenuButton
- func (w *TMenuButton) SetState(value string) error
- func (w *TMenuButton) SetStateM(value string) *TMenuButton
- func (w *TMenuButton) SetStyle(value string) error
- func (w *TMenuButton) SetStyleM(value string) *TMenuButton
- func (w *TMenuButton) SetTakeFocus(value string) error
- func (w *TMenuButton) SetTakeFocusM(value string) *TMenuButton
- func (w *TMenuButton) SetText(value string) error
- func (w *TMenuButton) SetTextM(value string) *TMenuButton
- func (w *TMenuButton) SetTextVariable(value string) error
- func (w *TMenuButton) SetTextVariableM(value string) *TMenuButton
- func (w *TMenuButton) SetUnderline(value string) error
- func (w *TMenuButton) SetUnderlineM(value string) *TMenuButton
- func (w *TMenuButton) SetWidth(value string) error
- func (w *TMenuButton) SetWidthM(value string) *TMenuButton
- func (w *TMenuButton) State() (string, error)
- func (w *TMenuButton) StateM() string
- func (w *TMenuButton) Style() (string, error)
- func (w *TMenuButton) StyleM() string
- func (w *TMenuButton) TakeFocus() (string, error)
- func (w *TMenuButton) TakeFocusM() string
- func (w *TMenuButton) Text() (string, error)
- func (w *TMenuButton) TextM() string
- func (w *TMenuButton) TextVariable() (string, error)
- func (w *TMenuButton) TextVariableM() string
- func (w *TMenuButton) Underline() (string, error)
- func (w *TMenuButton) UnderlineM() string
- func (w *TMenuButton) Width() (string, error)
- func (w *TMenuButton) WidthM() string
- type TNotebook
- func (w *TNotebook) Class() (string, error)
- func (w *TNotebook) ClassM() string
- func (w *TNotebook) Cursor() (string, error)
- func (w *TNotebook) CursorM() string
- func (w *TNotebook) Height() (string, error)
- func (w *TNotebook) HeightM() string
- func (w *TNotebook) Padding() (string, error)
- func (w *TNotebook) PaddingM() string
- func (w *TNotebook) SetCursor(value string) error
- func (w *TNotebook) SetCursorM(value string) *TNotebook
- func (w *TNotebook) SetHeight(value string) error
- func (w *TNotebook) SetHeightM(value string) *TNotebook
- func (w *TNotebook) SetPadding(value string) error
- func (w *TNotebook) SetPaddingM(value string) *TNotebook
- func (w *TNotebook) SetStyle(value string) error
- func (w *TNotebook) SetStyleM(value string) *TNotebook
- func (w *TNotebook) SetTakeFocus(value string) error
- func (w *TNotebook) SetTakeFocusM(value string) *TNotebook
- func (w *TNotebook) SetWidth(value string) error
- func (w *TNotebook) SetWidthM(value string) *TNotebook
- func (w *TNotebook) Style() (string, error)
- func (w *TNotebook) StyleM() string
- func (w *TNotebook) TakeFocus() (string, error)
- func (w *TNotebook) TakeFocusM() string
- func (w *TNotebook) Width() (string, error)
- func (w *TNotebook) WidthM() string
- type TPanedWindow
- func (w *TPanedWindow) Class() (string, error)
- func (w *TPanedWindow) ClassM() string
- func (w *TPanedWindow) Cursor() (string, error)
- func (w *TPanedWindow) CursorM() string
- func (w *TPanedWindow) Height() (string, error)
- func (w *TPanedWindow) HeightM() string
- func (w *TPanedWindow) Orient() (string, error)
- func (w *TPanedWindow) OrientM() string
- func (w *TPanedWindow) SetCursor(value string) error
- func (w *TPanedWindow) SetCursorM(value string) *TPanedWindow
- func (w *TPanedWindow) SetHeight(value string) error
- func (w *TPanedWindow) SetHeightM(value string) *TPanedWindow
- func (w *TPanedWindow) SetOrient(value string) error
- func (w *TPanedWindow) SetOrientM(value string) *TPanedWindow
- func (w *TPanedWindow) SetStyle(value string) error
- func (w *TPanedWindow) SetStyleM(value string) *TPanedWindow
- func (w *TPanedWindow) SetTakeFocus(value string) error
- func (w *TPanedWindow) SetTakeFocusM(value string) *TPanedWindow
- func (w *TPanedWindow) SetWidth(value string) error
- func (w *TPanedWindow) SetWidthM(value string) *TPanedWindow
- func (w *TPanedWindow) Style() (string, error)
- func (w *TPanedWindow) StyleM() string
- func (w *TPanedWindow) TakeFocus() (string, error)
- func (w *TPanedWindow) TakeFocusM() string
- func (w *TPanedWindow) Width() (string, error)
- func (w *TPanedWindow) WidthM() string
- type TProgressBar
- func (w *TProgressBar) Class() (string, error)
- func (w *TProgressBar) ClassM() string
- func (w *TProgressBar) Cursor() (string, error)
- func (w *TProgressBar) CursorM() string
- func (w *TProgressBar) Length() (string, error)
- func (w *TProgressBar) LengthM() string
- func (w *TProgressBar) Maximum() (string, error)
- func (w *TProgressBar) MaximumM() string
- func (w *TProgressBar) Mode() (string, error)
- func (w *TProgressBar) ModeM() string
- func (w *TProgressBar) Orient() (string, error)
- func (w *TProgressBar) OrientM() string
- func (w *TProgressBar) Phase() (string, error)
- func (w *TProgressBar) PhaseM() string
- func (w *TProgressBar) SetCursor(value string) error
- func (w *TProgressBar) SetCursorM(value string) *TProgressBar
- func (w *TProgressBar) SetLength(value string) error
- func (w *TProgressBar) SetLengthM(value string) *TProgressBar
- func (w *TProgressBar) SetMaximum(value string) error
- func (w *TProgressBar) SetMaximumM(value string) *TProgressBar
- func (w *TProgressBar) SetMode(value string) error
- func (w *TProgressBar) SetModeM(value string) *TProgressBar
- func (w *TProgressBar) SetOrient(value string) error
- func (w *TProgressBar) SetOrientM(value string) *TProgressBar
- func (w *TProgressBar) SetPhase(value string) error
- func (w *TProgressBar) SetPhaseM(value string) *TProgressBar
- func (w *TProgressBar) SetStyle(value string) error
- func (w *TProgressBar) SetStyleM(value string) *TProgressBar
- func (w *TProgressBar) SetTakeFocus(value string) error
- func (w *TProgressBar) SetTakeFocusM(value string) *TProgressBar
- func (w *TProgressBar) SetValue(value string) error
- func (w *TProgressBar) SetValueM(value string) *TProgressBar
- func (w *TProgressBar) SetVariable(value string) error
- func (w *TProgressBar) SetVariableM(value string) *TProgressBar
- func (w *TProgressBar) Style() (string, error)
- func (w *TProgressBar) StyleM() string
- func (w *TProgressBar) TakeFocus() (string, error)
- func (w *TProgressBar) TakeFocusM() string
- func (w *TProgressBar) Value() (string, error)
- func (w *TProgressBar) ValueM() string
- func (w *TProgressBar) Variable() (string, error)
- func (w *TProgressBar) VariableM() string
- type TRadioButton
- func (w *TRadioButton) Class() (string, error)
- func (w *TRadioButton) ClassM() string
- func (w *TRadioButton) Compound() (string, error)
- func (w *TRadioButton) CompoundM() string
- func (w *TRadioButton) Cursor() (string, error)
- func (w *TRadioButton) CursorM() string
- func (w *TRadioButton) Image() (string, error)
- func (w *TRadioButton) ImageM() string
- func (w *TRadioButton) SetCommand(value Command) error
- func (w *TRadioButton) SetCommandM(value Command) *TRadioButton
- func (w *TRadioButton) SetCompound(value string) error
- func (w *TRadioButton) SetCompoundM(value string) *TRadioButton
- func (w *TRadioButton) SetCursor(value string) error
- func (w *TRadioButton) SetCursorM(value string) *TRadioButton
- func (w *TRadioButton) SetImage(value string) error
- func (w *TRadioButton) SetImageM(value string) *TRadioButton
- func (w *TRadioButton) SetState(value string) error
- func (w *TRadioButton) SetStateM(value string) *TRadioButton
- func (w *TRadioButton) SetStyle(value string) error
- func (w *TRadioButton) SetStyleM(value string) *TRadioButton
- func (w *TRadioButton) SetTakeFocus(value string) error
- func (w *TRadioButton) SetTakeFocusM(value string) *TRadioButton
- func (w *TRadioButton) SetText(value string) error
- func (w *TRadioButton) SetTextM(value string) *TRadioButton
- func (w *TRadioButton) SetTextVariable(value string) error
- func (w *TRadioButton) SetTextVariableM(value string) *TRadioButton
- func (w *TRadioButton) SetUnderline(value string) error
- func (w *TRadioButton) SetUnderlineM(value string) *TRadioButton
- func (w *TRadioButton) SetValue(value string) error
- func (w *TRadioButton) SetValueM(value string) *TRadioButton
- func (w *TRadioButton) SetVariable(value string) error
- func (w *TRadioButton) SetVariableM(value string) *TRadioButton
- func (w *TRadioButton) SetWidth(value string) error
- func (w *TRadioButton) SetWidthM(value string) *TRadioButton
- func (w *TRadioButton) State() (string, error)
- func (w *TRadioButton) StateM() string
- func (w *TRadioButton) Style() (string, error)
- func (w *TRadioButton) StyleM() string
- func (w *TRadioButton) TakeFocus() (string, error)
- func (w *TRadioButton) TakeFocusM() string
- func (w *TRadioButton) Text() (string, error)
- func (w *TRadioButton) TextM() string
- func (w *TRadioButton) TextVariable() (string, error)
- func (w *TRadioButton) TextVariableM() string
- func (w *TRadioButton) Underline() (string, error)
- func (w *TRadioButton) UnderlineM() string
- func (w *TRadioButton) Value() (string, error)
- func (w *TRadioButton) ValueM() string
- func (w *TRadioButton) Variable() (string, error)
- func (w *TRadioButton) VariableM() string
- func (w *TRadioButton) Width() (string, error)
- func (w *TRadioButton) WidthM() string
- type TScale
- func (w *TScale) Class() (string, error)
- func (w *TScale) ClassM() string
- func (w *TScale) Cursor() (string, error)
- func (w *TScale) CursorM() string
- func (w *TScale) From() (string, error)
- func (w *TScale) FromM() string
- func (w *TScale) Length() (string, error)
- func (w *TScale) LengthM() string
- func (w *TScale) Orient() (string, error)
- func (w *TScale) OrientM() string
- func (w *TScale) SetCommand(value Command) error
- func (w *TScale) SetCommandM(value Command) *TScale
- func (w *TScale) SetCursor(value string) error
- func (w *TScale) SetCursorM(value string) *TScale
- func (w *TScale) SetFrom(value string) error
- func (w *TScale) SetFromM(value string) *TScale
- func (w *TScale) SetLength(value string) error
- func (w *TScale) SetLengthM(value string) *TScale
- func (w *TScale) SetOrient(value string) error
- func (w *TScale) SetOrientM(value string) *TScale
- func (w *TScale) SetStyle(value string) error
- func (w *TScale) SetStyleM(value string) *TScale
- func (w *TScale) SetTakeFocus(value string) error
- func (w *TScale) SetTakeFocusM(value string) *TScale
- func (w *TScale) SetTo(value string) error
- func (w *TScale) SetToM(value string) *TScale
- func (w *TScale) SetValue(value string) error
- func (w *TScale) SetValueM(value string) *TScale
- func (w *TScale) SetVariable(value string) error
- func (w *TScale) SetVariableM(value string) *TScale
- func (w *TScale) Style() (string, error)
- func (w *TScale) StyleM() string
- func (w *TScale) TakeFocus() (string, error)
- func (w *TScale) TakeFocusM() string
- func (w *TScale) To() (string, error)
- func (w *TScale) ToM() string
- func (w *TScale) Value() (string, error)
- func (w *TScale) ValueM() string
- func (w *TScale) Variable() (string, error)
- func (w *TScale) VariableM() string
- type TScrollbar
- func (w *TScrollbar) Class() (string, error)
- func (w *TScrollbar) ClassM() string
- func (w *TScrollbar) Cursor() (string, error)
- func (w *TScrollbar) CursorM() string
- func (w *TScrollbar) Orient() (string, error)
- func (w *TScrollbar) OrientM() string
- func (w *TScrollbar) SetCommand(value Command) error
- func (w *TScrollbar) SetCommandM(value Command) *TScrollbar
- func (w *TScrollbar) SetCursor(value string) error
- func (w *TScrollbar) SetCursorM(value string) *TScrollbar
- func (w *TScrollbar) SetOrient(value string) error
- func (w *TScrollbar) SetOrientM(value string) *TScrollbar
- func (w *TScrollbar) SetStyle(value string) error
- func (w *TScrollbar) SetStyleM(value string) *TScrollbar
- func (w *TScrollbar) SetTakeFocus(value string) error
- func (w *TScrollbar) SetTakeFocusM(value string) *TScrollbar
- func (w *TScrollbar) Style() (string, error)
- func (w *TScrollbar) StyleM() string
- func (w *TScrollbar) TakeFocus() (string, error)
- func (w *TScrollbar) TakeFocusM() string
- type TSeparator
- func (w *TSeparator) Class() (string, error)
- func (w *TSeparator) ClassM() string
- func (w *TSeparator) Cursor() (string, error)
- func (w *TSeparator) CursorM() string
- func (w *TSeparator) Orient() (string, error)
- func (w *TSeparator) OrientM() string
- func (w *TSeparator) SetCursor(value string) error
- func (w *TSeparator) SetCursorM(value string) *TSeparator
- func (w *TSeparator) SetOrient(value string) error
- func (w *TSeparator) SetOrientM(value string) *TSeparator
- func (w *TSeparator) SetStyle(value string) error
- func (w *TSeparator) SetStyleM(value string) *TSeparator
- func (w *TSeparator) SetTakeFocus(value string) error
- func (w *TSeparator) SetTakeFocusM(value string) *TSeparator
- func (w *TSeparator) Style() (string, error)
- func (w *TSeparator) StyleM() string
- func (w *TSeparator) TakeFocus() (string, error)
- func (w *TSeparator) TakeFocusM() string
- type TSizeGrip
- func (w *TSizeGrip) Class() (string, error)
- func (w *TSizeGrip) ClassM() string
- func (w *TSizeGrip) Cursor() (string, error)
- func (w *TSizeGrip) CursorM() string
- func (w *TSizeGrip) SetCursor(value string) error
- func (w *TSizeGrip) SetCursorM(value string) *TSizeGrip
- func (w *TSizeGrip) SetStyle(value string) error
- func (w *TSizeGrip) SetStyleM(value string) *TSizeGrip
- func (w *TSizeGrip) SetTakeFocus(value string) error
- func (w *TSizeGrip) SetTakeFocusM(value string) *TSizeGrip
- func (w *TSizeGrip) Style() (string, error)
- func (w *TSizeGrip) StyleM() string
- func (w *TSizeGrip) TakeFocus() (string, error)
- func (w *TSizeGrip) TakeFocusM() string
- type TSpinBox
- func (w *TSpinBox) Class() (string, error)
- func (w *TSpinBox) ClassM() string
- func (w *TSpinBox) Cursor() (string, error)
- func (w *TSpinBox) CursorM() string
- func (w *TSpinBox) Format() (string, error)
- func (w *TSpinBox) FormatM() string
- func (w *TSpinBox) From() (string, error)
- func (w *TSpinBox) FromM() string
- func (w *TSpinBox) Increment() (string, error)
- func (w *TSpinBox) IncrementM() string
- func (w *TSpinBox) SetCommand(value Command) error
- func (w *TSpinBox) SetCommandM(value Command) *TSpinBox
- func (w *TSpinBox) SetCursor(value string) error
- func (w *TSpinBox) SetCursorM(value string) *TSpinBox
- func (w *TSpinBox) SetFormat(value string) error
- func (w *TSpinBox) SetFormatM(value string) *TSpinBox
- func (w *TSpinBox) SetFrom(value string) error
- func (w *TSpinBox) SetFromM(value string) *TSpinBox
- func (w *TSpinBox) SetIncrement(value string) error
- func (w *TSpinBox) SetIncrementM(value string) *TSpinBox
- func (w *TSpinBox) SetState(value string) error
- func (w *TSpinBox) SetStateM(value string) *TSpinBox
- func (w *TSpinBox) SetStyle(value string) error
- func (w *TSpinBox) SetStyleM(value string) *TSpinBox
- func (w *TSpinBox) SetTakeFocus(value string) error
- func (w *TSpinBox) SetTakeFocusM(value string) *TSpinBox
- func (w *TSpinBox) SetTo(value string) error
- func (w *TSpinBox) SetToM(value string) *TSpinBox
- func (w *TSpinBox) SetValidate(value string) error
- func (w *TSpinBox) SetValidateCommand(value string) error
- func (w *TSpinBox) SetValidateCommandM(value string) *TSpinBox
- func (w *TSpinBox) SetValidateM(value string) *TSpinBox
- func (w *TSpinBox) SetValues(value string) error
- func (w *TSpinBox) SetValuesM(value string) *TSpinBox
- func (w *TSpinBox) SetWrap(value string) error
- func (w *TSpinBox) SetWrapM(value string) *TSpinBox
- func (w *TSpinBox) SetXScrollCommand(value Command) error
- func (w *TSpinBox) SetXScrollCommandM(value Command) *TSpinBox
- func (w *TSpinBox) State() (string, error)
- func (w *TSpinBox) StateM() string
- func (w *TSpinBox) Style() (string, error)
- func (w *TSpinBox) StyleM() string
- func (w *TSpinBox) TakeFocus() (string, error)
- func (w *TSpinBox) TakeFocusM() string
- func (w *TSpinBox) To() (string, error)
- func (w *TSpinBox) ToM() string
- func (w *TSpinBox) Validate() (string, error)
- func (w *TSpinBox) ValidateCommand() (string, error)
- func (w *TSpinBox) ValidateCommandM() string
- func (w *TSpinBox) ValidateM() string
- func (w *TSpinBox) Values() (string, error)
- func (w *TSpinBox) ValuesM() string
- func (w *TSpinBox) Wrap() (string, error)
- func (w *TSpinBox) WrapM() string
- type TTreeView
- func (w *TTreeView) Class() (string, error)
- func (w *TTreeView) ClassM() string
- func (w *TTreeView) Columns() (string, error)
- func (w *TTreeView) ColumnsM() string
- func (w *TTreeView) Cursor() (string, error)
- func (w *TTreeView) CursorM() string
- func (w *TTreeView) DisplayColumns() (string, error)
- func (w *TTreeView) DisplayColumnsM() string
- func (w *TTreeView) Height() (string, error)
- func (w *TTreeView) HeightM() string
- func (w *TTreeView) Padding() (string, error)
- func (w *TTreeView) PaddingM() string
- func (w *TTreeView) SelectMode() (string, error)
- func (w *TTreeView) SelectModeM() string
- func (w *TTreeView) SetColumns(value string) error
- func (w *TTreeView) SetColumnsM(value string) *TTreeView
- func (w *TTreeView) SetCursor(value string) error
- func (w *TTreeView) SetCursorM(value string) *TTreeView
- func (w *TTreeView) SetDisplayColumns(value string) error
- func (w *TTreeView) SetDisplayColumnsM(value string) *TTreeView
- func (w *TTreeView) SetHeight(value string) error
- func (w *TTreeView) SetHeightM(value string) *TTreeView
- func (w *TTreeView) SetPadding(value string) error
- func (w *TTreeView) SetPaddingM(value string) *TTreeView
- func (w *TTreeView) SetSelectMode(value string) error
- func (w *TTreeView) SetSelectModeM(value string) *TTreeView
- func (w *TTreeView) SetShow(value string) error
- func (w *TTreeView) SetShowM(value string) *TTreeView
- func (w *TTreeView) SetStyle(value string) error
- func (w *TTreeView) SetStyleM(value string) *TTreeView
- func (w *TTreeView) SetTakeFocus(value string) error
- func (w *TTreeView) SetTakeFocusM(value string) *TTreeView
- func (w *TTreeView) SetXScrollCommand(value Command) error
- func (w *TTreeView) SetXScrollCommandM(value Command) *TTreeView
- func (w *TTreeView) SetYScrollCommand(value Command) error
- func (w *TTreeView) SetYScrollCommandM(value Command) *TTreeView
- func (w *TTreeView) Show() (string, error)
- func (w *TTreeView) ShowM() string
- func (w *TTreeView) Style() (string, error)
- func (w *TTreeView) StyleM() string
- func (w *TTreeView) TakeFocus() (string, error)
- func (w *TTreeView) TakeFocusM() string
- type Text
- func (w *Text) AutoSeparators() (string, error)
- func (w *Text) AutoSeparatorsM() string
- func (w *Text) Background() (string, error)
- func (w *Text) BackgroundM() string
- func (w *Text) BlockCursor() (string, error)
- func (w *Text) BlockCursorM() string
- func (w *Text) BorderWidth() (string, error)
- func (w *Text) BorderWidthM() string
- func (w *Text) Cursor() (string, error)
- func (w *Text) CursorM() string
- func (w *Text) EndLine() (string, error)
- func (w *Text) EndLineM() string
- func (w *Text) ExportSelection() (bool, error)
- func (w *Text) ExportSelectionM() bool
- func (w *Text) Font() (string, error)
- func (w *Text) FontM() string
- func (w *Text) Foreground() (string, error)
- func (w *Text) ForegroundM() string
- func (w *Text) Height() (string, error)
- func (w *Text) HeightM() string
- func (w *Text) HighlightBackground() (string, error)
- func (w *Text) HighlightBackgroundM() string
- func (w *Text) HighlightColor() (string, error)
- func (w *Text) HighlightColorM() string
- func (w *Text) HighlightThickness() (string, error)
- func (w *Text) HighlightThicknessM() string
- func (w *Text) InactiveSelectBackground() (string, error)
- func (w *Text) InactiveSelectBackgroundM() string
- func (w *Text) InsertBackground() (string, error)
- func (w *Text) InsertBackgroundM() string
- func (w *Text) InsertBorderWidth() (string, error)
- func (w *Text) InsertBorderWidthM() string
- func (w *Text) InsertOffTime() (int, error)
- func (w *Text) InsertOffTimeM() int
- func (w *Text) InsertOnTime() (int, error)
- func (w *Text) InsertOnTimeM() int
- func (w *Text) InsertUnfocussed() (string, error)
- func (w *Text) InsertUnfocussedM() string
- func (w *Text) InsertWidth() (string, error)
- func (w *Text) InsertWidthM() string
- func (w *Text) MaxUndo() (string, error)
- func (w *Text) MaxUndoM() string
- func (w *Text) PadX() (string, error)
- func (w *Text) PadXM() string
- func (w *Text) PadY() (string, error)
- func (w *Text) PadYM() string
- func (w *Text) Relief() (string, error)
- func (w *Text) ReliefM() string
- func (w *Text) SelectBackground() (string, error)
- func (w *Text) SelectBackgroundM() string
- func (w *Text) SelectBorderWidth() (string, error)
- func (w *Text) SelectBorderWidthM() string
- func (w *Text) SelectForeground() (string, error)
- func (w *Text) SelectForegroundM() string
- func (w *Text) SetAutoSeparators(value string) error
- func (w *Text) SetAutoSeparatorsM(value string) *Text
- func (w *Text) SetBackground(value string) error
- func (w *Text) SetBackgroundM(value string) *Text
- func (w *Text) SetBlockCursor(value string) error
- func (w *Text) SetBlockCursorM(value string) *Text
- func (w *Text) SetBorderWidth(value string) error
- func (w *Text) SetBorderWidthM(value string) *Text
- func (w *Text) SetCursor(value string) error
- func (w *Text) SetCursorM(value string) *Text
- func (w *Text) SetEndLine(value string) error
- func (w *Text) SetEndLineM(value string) *Text
- func (w *Text) SetExportSelection(value bool) error
- func (w *Text) SetExportSelectionM(value bool) *Text
- func (w *Text) SetFont(value string) error
- func (w *Text) SetFontM(value string) *Text
- func (w *Text) SetForeground(value string) error
- func (w *Text) SetForegroundM(value string) *Text
- func (w *Text) SetGrid() (string, error)
- func (w *Text) SetGridM() string
- func (w *Text) SetHeight(value string) error
- func (w *Text) SetHeightM(value string) *Text
- func (w *Text) SetHighlightBackground(value string) error
- func (w *Text) SetHighlightBackgroundM(value string) *Text
- func (w *Text) SetHighlightColor(value string) error
- func (w *Text) SetHighlightColorM(value string) *Text
- func (w *Text) SetHighlightThickness(value string) error
- func (w *Text) SetHighlightThicknessM(value string) *Text
- func (w *Text) SetInactiveSelectBackground(value string) error
- func (w *Text) SetInactiveSelectBackgroundM(value string) *Text
- func (w *Text) SetInsertBackground(value string) error
- func (w *Text) SetInsertBackgroundM(value string) *Text
- func (w *Text) SetInsertBorderWidth(value string) error
- func (w *Text) SetInsertBorderWidthM(value string) *Text
- func (w *Text) SetInsertOffTime(value int) error
- func (w *Text) SetInsertOffTimeM(value int) *Text
- func (w *Text) SetInsertOnTime(value int) error
- func (w *Text) SetInsertOnTimeM(value int) *Text
- func (w *Text) SetInsertUnfocussed(value string) error
- func (w *Text) SetInsertUnfocussedM(value string) *Text
- func (w *Text) SetInsertWidth(value string) error
- func (w *Text) SetInsertWidthM(value string) *Text
- func (w *Text) SetMaxUndo(value string) error
- func (w *Text) SetMaxUndoM(value string) *Text
- func (w *Text) SetPadX(value string) error
- func (w *Text) SetPadXM(value string) *Text
- func (w *Text) SetPadY(value string) error
- func (w *Text) SetPadYM(value string) *Text
- func (w *Text) SetRelief(value string) error
- func (w *Text) SetReliefM(value string) *Text
- func (w *Text) SetSelectBackground(value string) error
- func (w *Text) SetSelectBackgroundM(value string) *Text
- func (w *Text) SetSelectBorderWidth(value string) error
- func (w *Text) SetSelectBorderWidthM(value string) *Text
- func (w *Text) SetSelectForeground(value string) error
- func (w *Text) SetSelectForegroundM(value string) *Text
- func (w *Text) SetSetGrid(value string) error
- func (w *Text) SetSetGridM(value string) *Text
- func (w *Text) SetSpacing1(value string) error
- func (w *Text) SetSpacing1M(value string) *Text
- func (w *Text) SetSpacing2(value string) error
- func (w *Text) SetSpacing2M(value string) *Text
- func (w *Text) SetSpacing3(value string) error
- func (w *Text) SetSpacing3M(value string) *Text
- func (w *Text) SetStartLine(value string) error
- func (w *Text) SetStartLineM(value string) *Text
- func (w *Text) SetState(value string) error
- func (w *Text) SetStateM(value string) *Text
- func (w *Text) SetTabStyle(value string) error
- func (w *Text) SetTabStyleM(value string) *Text
- func (w *Text) SetTabs(value string) error
- func (w *Text) SetTabsM(value string) *Text
- func (w *Text) SetTakeFocus(value string) error
- func (w *Text) SetTakeFocusM(value string) *Text
- func (w *Text) SetUndo(value string) error
- func (w *Text) SetUndoM(value string) *Text
- func (w *Text) SetWidth(value string) error
- func (w *Text) SetWidthM(value string) *Text
- func (w *Text) SetWrap(value string) error
- func (w *Text) SetWrapM(value string) *Text
- func (w *Text) SetXScrollCommand(value Command) error
- func (w *Text) SetXScrollCommandM(value Command) *Text
- func (w *Text) SetYScrollCommand(value Command) error
- func (w *Text) SetYScrollCommandM(value Command) *Text
- func (w *Text) Spacing1() (string, error)
- func (w *Text) Spacing1M() string
- func (w *Text) Spacing2() (string, error)
- func (w *Text) Spacing2M() string
- func (w *Text) Spacing3() (string, error)
- func (w *Text) Spacing3M() string
- func (w *Text) StartLine() (string, error)
- func (w *Text) StartLineM() string
- func (w *Text) State() (string, error)
- func (w *Text) StateM() string
- func (w *Text) TabStyle() (string, error)
- func (w *Text) TabStyleM() string
- func (w *Text) Tabs() (string, error)
- func (w *Text) TabsM() string
- func (w *Text) TakeFocus() (string, error)
- func (w *Text) TakeFocusM() string
- func (w *Text) Undo() (string, error)
- func (w *Text) UndoM() string
- func (w *Text) Width() (string, error)
- func (w *Text) WidthM() string
- func (w *Text) Wrap() (string, error)
- func (w *Text) WrapM() string
- type TopLevel
- func (w *TopLevel) Background() (string, error)
- func (w *TopLevel) BackgroundM() string
- func (w *TopLevel) BorderWidth() (string, error)
- func (w *TopLevel) BorderWidthM() string
- func (w *TopLevel) Class() (string, error)
- func (w *TopLevel) ClassM() string
- func (w *TopLevel) Colormap() (string, error)
- func (w *TopLevel) ColormapM() string
- func (w *TopLevel) Container() (string, error)
- func (w *TopLevel) ContainerM() string
- func (w *TopLevel) Cursor() (string, error)
- func (w *TopLevel) CursorM() string
- func (w *TopLevel) Height() (string, error)
- func (w *TopLevel) HeightM() string
- func (w *TopLevel) HighlightBackground() (string, error)
- func (w *TopLevel) HighlightBackgroundM() string
- func (w *TopLevel) HighlightColor() (string, error)
- func (w *TopLevel) HighlightColorM() string
- func (w *TopLevel) HighlightThickness() (string, error)
- func (w *TopLevel) HighlightThicknessM() string
- func (w *TopLevel) Menu() (string, error)
- func (w *TopLevel) MenuM() string
- func (w *TopLevel) PadX() (string, error)
- func (w *TopLevel) PadXM() string
- func (w *TopLevel) PadY() (string, error)
- func (w *TopLevel) PadYM() string
- func (w *TopLevel) Relief() (string, error)
- func (w *TopLevel) ReliefM() string
- func (w *TopLevel) Screen() (string, error)
- func (w *TopLevel) ScreenM() string
- func (w *TopLevel) SetBackground(value string) error
- func (w *TopLevel) SetBackgroundM(value string) *TopLevel
- func (w *TopLevel) SetBorderWidth(value string) error
- func (w *TopLevel) SetBorderWidthM(value string) *TopLevel
- func (w *TopLevel) SetColormap(value string) error
- func (w *TopLevel) SetColormapM(value string) *TopLevel
- func (w *TopLevel) SetContainer(value string) error
- func (w *TopLevel) SetContainerM(value string) *TopLevel
- func (w *TopLevel) SetCursor(value string) error
- func (w *TopLevel) SetCursorM(value string) *TopLevel
- func (w *TopLevel) SetHeight(value string) error
- func (w *TopLevel) SetHeightM(value string) *TopLevel
- func (w *TopLevel) SetHighlightBackground(value string) error
- func (w *TopLevel) SetHighlightBackgroundM(value string) *TopLevel
- func (w *TopLevel) SetHighlightColor(value string) error
- func (w *TopLevel) SetHighlightColorM(value string) *TopLevel
- func (w *TopLevel) SetHighlightThickness(value string) error
- func (w *TopLevel) SetHighlightThicknessM(value string) *TopLevel
- func (w *TopLevel) SetMenu(value string) error
- func (w *TopLevel) SetMenuM(value string) *TopLevel
- func (w *TopLevel) SetPadX(value string) error
- func (w *TopLevel) SetPadXM(value string) *TopLevel
- func (w *TopLevel) SetPadY(value string) error
- func (w *TopLevel) SetPadYM(value string) *TopLevel
- func (w *TopLevel) SetRelief(value string) error
- func (w *TopLevel) SetReliefM(value string) *TopLevel
- func (w *TopLevel) SetScreen(value string) error
- func (w *TopLevel) SetScreenM(value string) *TopLevel
- func (w *TopLevel) SetTakeFocus(value string) error
- func (w *TopLevel) SetTakeFocusM(value string) *TopLevel
- func (w *TopLevel) SetUse(value string) error
- func (w *TopLevel) SetUseM(value string) *TopLevel
- func (w *TopLevel) SetVisual(value string) error
- func (w *TopLevel) SetVisualM(value string) *TopLevel
- func (w *TopLevel) SetWidth(value string) error
- func (w *TopLevel) SetWidthM(value string) *TopLevel
- func (w *TopLevel) TakeFocus() (string, error)
- func (w *TopLevel) TakeFocusM() string
- func (w *TopLevel) Use() (string, error)
- func (w *TopLevel) UseM() string
- func (w *TopLevel) Visual() (string, error)
- func (w *TopLevel) VisualM() string
- func (w *TopLevel) Width() (string, error)
- func (w *TopLevel) WidthM() string
- type Widget
- type Window
- func (w *Window) NewButton() (r *Button, err error)
- func (w *Window) NewButtonM() *Button
- func (w *Window) NewCanvas() (r *Canvas, err error)
- func (w *Window) NewCanvasM() *Canvas
- func (w *Window) NewCheckButton() (r *CheckButton, err error)
- func (w *Window) NewCheckButtonM() *CheckButton
- func (w *Window) NewEntry() (r *Entry, err error)
- func (w *Window) NewEntryM() *Entry
- func (w *Window) NewFrame() (r *Frame, err error)
- func (w *Window) NewFrameM() *Frame
- func (w *Window) NewLabel() (r *Label, err error)
- func (w *Window) NewLabelFrame() (r *LabelFrame, err error)
- func (w *Window) NewLabelFrameM() *LabelFrame
- func (w *Window) NewLabelM() *Label
- func (w *Window) NewListBox() (r *ListBox, err error)
- func (w *Window) NewListBoxM() *ListBox
- func (w *Window) NewMenu() (r *Menu, err error)
- func (w *Window) NewMenuButton() (r *MenuButton, err error)
- func (w *Window) NewMenuButtonM() *MenuButton
- func (w *Window) NewMenuM() *Menu
- func (w *Window) NewMessage() (r *Message, err error)
- func (w *Window) NewMessageM() *Message
- func (w *Window) NewPanedWindow() (r *PanedWindow, err error)
- func (w *Window) NewPanedWindowM() *PanedWindow
- func (w *Window) NewRadioButton() (r *RadioButton, err error)
- func (w *Window) NewRadioButtonM() *RadioButton
- func (w *Window) NewScale() (r *Scale, err error)
- func (w *Window) NewScaleM() *Scale
- func (w *Window) NewScrollbar() (r *Scrollbar, err error)
- func (w *Window) NewScrollbarM() *Scrollbar
- func (w *Window) NewSpinBox() (r *SpinBox, err error)
- func (w *Window) NewSpinBoxM() *SpinBox
- func (w *Window) NewTButton() (r *TButton, err error)
- func (w *Window) NewTButtonM() *TButton
- func (w *Window) NewTCheckButton() (r *TCheckButton, err error)
- func (w *Window) NewTCheckButtonM() *TCheckButton
- func (w *Window) NewTComboBox() (r *TComboBox, err error)
- func (w *Window) NewTComboBoxM() *TComboBox
- func (w *Window) NewTEntry() (r *TEntry, err error)
- func (w *Window) NewTEntryM() *TEntry
- func (w *Window) NewTFrame() (r *TFrame, err error)
- func (w *Window) NewTFrameM() *TFrame
- func (w *Window) NewTLabel() (r *TLabel, err error)
- func (w *Window) NewTLabelFrame() (r *TLabelFrame, err error)
- func (w *Window) NewTLabelFrameM() *TLabelFrame
- func (w *Window) NewTLabelM() *TLabel
- func (w *Window) NewTMenuButton() (r *TMenuButton, err error)
- func (w *Window) NewTMenuButtonM() *TMenuButton
- func (w *Window) NewTNotebook() (r *TNotebook, err error)
- func (w *Window) NewTNotebookM() *TNotebook
- func (w *Window) NewTPanedWindow() (r *TPanedWindow, err error)
- func (w *Window) NewTPanedWindowM() *TPanedWindow
- func (w *Window) NewTProgressBar() (r *TProgressBar, err error)
- func (w *Window) NewTProgressBarM() *TProgressBar
- func (w *Window) NewTRadioButton() (r *TRadioButton, err error)
- func (w *Window) NewTRadioButtonM() *TRadioButton
- func (w *Window) NewTScale() (r *TScale, err error)
- func (w *Window) NewTScaleM() *TScale
- func (w *Window) NewTScrollbar() (r *TScrollbar, err error)
- func (w *Window) NewTScrollbarM() *TScrollbar
- func (w *Window) NewTSeparator() (r *TSeparator, err error)
- func (w *Window) NewTSeparatorM() *TSeparator
- func (w *Window) NewTSizeGrip() (r *TSizeGrip, err error)
- func (w *Window) NewTSizeGripM() *TSizeGrip
- func (w *Window) NewTSpinBox() (r *TSpinBox, err error)
- func (w *Window) NewTSpinBoxM() *TSpinBox
- func (w *Window) NewTTreeView() (r *TTreeView, err error)
- func (w *Window) NewTTreeViewM() *TTreeView
- func (w *Window) NewText() (r *Text, err error)
- func (w *Window) NewTextM() *Text
- func (w *Window) NewTopLevel() (r *TopLevel, err error)
- func (w *Window) NewTopLevelM() *TopLevel
- func (w *Window) Win() *Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountLibraryVFS ¶
MountLibraryVFS mounts the tk library virtual file system and returns the mount point.
Types ¶
type Application ¶ added in v1.0.12
type Application struct { *Window // contains filtered or unexported fields }
Application represents the Tk application. It also implements Widget and the Window() method returns the root window.
func App ¶ added in v1.0.12
func App() (r *Application, err error)
App returns the Application singleton or an error, if any.
func (*Application) Bitmap ¶ added in v1.0.15
func (a *Application) Bitmap(s string) (string, error)
Bitmap wraps the Tk image create bitmap command.
A bitmap is an image whose pixels can display either of two colors or be transparent. A bitmap image is defined by four things: a background color, a foreground color, and two bitmaps, called the source and the mask. Each of the bitmaps specifies 0/1 values for a rectangular array of pixels, and the two bitmaps must have the same dimensions. For pixels where the mask is zero, the image displays nothing, producing a transparent effect. For other pixels, the image displays the foreground color if the source data is one and the background color if the source data is zero.
Bitmaps support the following options:
-background color
Specifies a background color for the image in any of the standard ways accepted by Tk. If this option is set to an empty string then the background pixels will be transparent. This effect is achieved by using the source bitmap as the mask bitmap, ignoring any -maskdata or -maskfile options.
-data string
Specifies the contents of the source bitmap as a string. The string must adhere to X11 bitmap format (e.g., as generated by the bitmap program). If both the -data and -file options are specified, the -data option takes precedence.
-file name
name gives the name of a file whose contents define the source bitmap. The file must adhere to X11 bitmap format (e.g., as generated by the bitmap program).
-foreground color
Specifies a foreground color for the image in any of the standard ways accepted by Tk.
-maskdata string
Specifies the contents of the mask as a string. The string must adhere to X11 bitmap format (e.g., as generated by the bitmap program). If both the -maskdata and -maskfile options are specified, the -maskdata option takes precedence.
-maskfile name
name gives the name of a file whose contents define the mask. The file must adhere to X11 bitmap format (e.g., as generated by the bitmap program).
func (*Application) BitmapM ¶ added in v1.0.16
func (a *Application) BitmapM(s string) string
BitmapM is like Bitmap but panics on errors.
func (*Application) Destroy ¶ added in v1.0.15
func (a *Application) Destroy(w ...Widget) error
Destroy deletes the widgets given by the w arguments, plus all of their descendants. If the root window from (*Application).Root is deleted then all widgets will be destroyed and the application will (normally) exit. The widgets are destroyed in order, and if an error occurs in destroying a widget the command aborts without destroying the remaining widgets. No error is returned if widget does not exist.
func (*Application) DestroyM ¶ added in v1.0.16
func (a *Application) DestroyM(w ...Widget) *Application
DestroyM is like Destroy but panics on errors.
func (*Application) Font ¶ added in v1.0.15
func (a *Application) Font(s string) (string, error)
Font wraps the Tk font command, providing several facilities for dealing with fonts, such as defining named fonts and inspecting the actual attributes of a font. The command arguments have several different forms, determined by the first argument. The following forms are currently supported:
actual font ?-displayof window? ?option? ?--? ?char?
Returns information about the actual attributes that are obtained when font is used on window's display; the actual attributes obtained may differ from the attributes requested due to platform-dependent limitations, such as the availability of font families and point sizes. font is a font description; see "Font Descriptions" below. If the window argument is omitted, it defaults to the main window. If option is specified, returns the value of that attribute; if it is omitted, the return value is a list of all the attributes and their values. See "Font Options" below for a list of the possible attributes. If the char argument is supplied, it must be a single character. The font attributes returned will be those of the specific font used to render that character, which will be different from the base font if the base font does not contain the given character. If char may be a hyphen, it should be preceded by -- to distinguish it from a misspelled option.
configure fontname ?option? ?value option value ...?
Query or modify the desired attributes for the named font called fontname. If no option is specified, returns a list describing all the options and their values for fontname. If a single option is specified with no value, then returns the current value of that attribute. If one or more option-value pairs are specified, then the command modifies the given named font to have the given values; in this case, all widgets using that font will redisplay themselves using the new attributes for the font. See "Font Options" below for a list of the possible attributes.
Note that on Aqua/Mac OS X, the system fonts (see "Platform Specific Fonts" below) may not be actually altered because they are implemented by the system theme. To achieve the effect of modification, use font actual to get their configuration and font create to synthesize a copy of the font which can be modified.
create ?fontname? ?option value ...?
Creates a new named font and returns its name. fontname specifies the name for the font; if it is omitted, then Tk generates a new name of the form fontx, where x is an integer. There may be any number of option-value pairs, which provide the desired attributes for the new named font. See "Font Options" below for a list of the possible attributes.
delete fontname ?fontname ...?
Delete the specified named fonts. If there are widgets using the named font, the named font will not actually be deleted until all the instances are released. Those widgets will continue to display using the last known values for the named font. If a deleted named font is subsequently recreated with another call to font create, the widgets will use the new named font and redisplay themselves using the new attributes of that font.
families ?-displayof window?
The return value is a list of the case-insensitive names of all font families that exist on window's display. If the window argument is omitted, it defaults to the main window.
measure font ?-displayof window? text
Measures the amount of space the string text would use in the given font when displayed in window. font is a font description; see "Font Descriptions" below. If the window argument is omitted, it defaults to the main window. The return value is the total width in pixels of text, not including the extra pixels used by highly exaggerated characters such as cursive “f”. If the string contains newlines or tabs, those characters are not expanded or treated specially when measuring the string.
metrics font ?-displayof window? ?option?
Returns information about the metrics (the font-specific data), for font when it is used on window's display. font is a font description; see "Font Descriptions" below. If the window argument is omitted, it defaults to the main window. If option is specified, returns the value of that metric; if it is omitted, the return value is a list of all the metrics and their values. See FONT METRICS below for a list of the possible metrics.
names
The return value is a list of all the named fonts that are currently defined.
Font Descriptions ¶
The following formats are accepted as a font description anywhere font is specified as an argument above; these same forms are also permitted when specifying the -font option for widgets.
[1] fontname
The name of a named font, created using the font create command. When a widget uses a named font, it is guaranteed that this will never cause an error, as long as the named font exists, no matter what potentially invalid or meaningless set of attributes the named font has. If the named font cannot be displayed with exactly the specified attributes, some other close font will be substituted automatically.
[2] systemfont
The platform-specific name of a font, interpreted by the graphics server. This also includes, under X, an XLFD (see [4]) for which a single “*” character was used to elide more than one field in the middle of the name. See "Platform Specific Fonts" for a list of the system fonts.
[3] family ?size? ?style? ?style ...?
A properly formed list whose first element is the desired font family and whose optional second element is the desired size. The interpretation of the size attribute follows the same rules described for -size in FONT OPTIONS below. Any additional optional arguments following the size are font styles. Possible values for the style arguments are as follows:
normal bold roman italic underline overstrike
.
[4] X-font names (XLFD)
A Unix-centric font name of the form -foundry-family-weight-slant-setwidth-addstyle-pixel-point-resx-resy-spacing-width-charset-encoding. The “*” character may be used to skip individual fields that the user does not care about. There must be exactly one “*” for each field skipped, except that a “*” at the end of the XLFD skips any remaining fields; the shortest valid XLFD is simply “*”, signifying all fields as defaults. Any fields that were skipped are given default values. For compatibility, an XLFD always chooses a font of the specified pixel size (not point size); although this interpretation is not strictly correct, all existing applications using XLFDs assumed that one “point” was in fact one pixel and would display incorrectly (generally larger) if the correct size font were actually used.
[5] option value ?option value ...?
A properly formed list of option-value pairs that specify the desired attributes of the font, in the same format used when defining a named font; see "Font Options" below.
When font description font is used, the system attempts to parse the description according to each of the above five rules, in the order specified. Cases [1] and [2] must match the name of an existing named font or of a system font. Cases [3], [4], and [5] are accepted on all platforms and the closest available font will be used. In some situations it may not be possible to find any close font (e.g., the font family was a garbage value); in that case, some system-dependent default font is chosen. If the font description does not match any of the above patterns, an error is generated.
Font Metrics ¶
The following options are used by the font metrics command to query font-specific data determined when the font was created. These properties are for the whole font itself and not for individual characters drawn in that font. In the following definitions, the “baseline” of a font is the horizontal line where the bottom of most letters line up; certain letters, such as lower-case “g” stick below the baseline.
-ascent
The amount in pixels that the tallest letter sticks up above the baseline of the font, plus any extra blank space added by the designer of the font.
-descent
The largest amount in pixels that any letter sticks down below the baseline of the font, plus any extra blank space added by the designer of the font.
-linespace
Returns how far apart vertically in pixels two lines of text using the same font should be placed so that none of the characters in one line overlap any of the characters in the other line. This is generally the sum of the ascent above the baseline line plus the descent below the baseline.
-fixed
Returns a boolean flag that is “1” if this is a fixed-width font, where each normal character is the same width as all the other characters, or is “0” if this is a proportionally-spaced font, where individual characters have different widths. The widths of control characters, tab characters, and other non-printing characters are not included when calculating this value.;
Font Options ¶
The following options are supported on all platforms, and are used when constructing a named font or when specifying a font using style [5] as above:
-family name
The case-insensitive font family name. Tk guarantees to support the font families named Courier (a monospaced “typewriter” font), Times (a serifed “newspaper” font), and Helvetica (a sans-serif “European” font). The most closely matching native font family will automatically be substituted when one of the above font families is used. The name may also be the name of a native, platform-specific font family; in that case it will work as desired on one platform but may not display correctly on other platforms. If the family is unspecified or unrecognized, a platform-specific default font will be chosen.
-size size
The desired size of the font. If the size argument is a positive number, it is interpreted as a size in points. If size is a negative number, its absolute value is interpreted as a size in pixels. If a font cannot be displayed at the specified size, a nearby size will be chosen. If size is unspecified or zero, a platform-dependent default size will be chosen.
Sizes should normally be specified in points so the application will remain the same ruler size on the screen, even when changing screen resolutions or moving scripts across platforms. However, specifying pixels is useful in certain circumstances such as when a piece of text must line up with respect to a fixed-size bitmap. The mapping between points and pixels is set when the application starts, based on properties of the installed monitor, but it can be overridden by calling the tk scaling command.
-weight weight
The nominal thickness of the characters in the font. The value normal specifies a normal weight font, while bold specifies a bold font. The closest available weight to the one specified will be chosen. The default weight is normal.
-slant slant
The amount the characters in the font are slanted away from the vertical. Valid values for slant are roman and italic. A roman font is the normal, upright appearance of a font, while an italic font is one that is tilted some number of degrees from upright. The closest available slant to the one specified will be chosen. The default slant is roman.
-underline boolean
The value is a boolean flag that specifies whether characters in this font should be underlined. The default value for underline is false.
-overstrike boolean
The value is a boolean flag that specifies whether a horizontal line should be drawn through the middle of characters in this font. The default value for overstrike is false.
Standard Fonts ¶
The following named fonts are supported on all systems, and default to values that match appropriate system defaults.
TkDefaultFont
This font is the default for all GUI items not otherwise specified.
TkTextFont
This font should be used for user text in entry widgets, listboxes etc.
TkFixedFont
This font is the standard fixed-width font.
TkMenuFont
This font is used for menu items.
TkHeadingFont
This font should be used for column headings in lists and tables.
TkCaptionFont
This font should be used for window and dialog caption bars.
TkSmallCaptionFont
This font should be used for captions on contained windows or tool dialogs.
TkIconFont
This font should be used for icon captions.
TkTooltipFont
This font should be used for tooltip windows (transient information windows).
It is not advised to change these fonts, as they may be modified by Tk itself in response to system changes. Instead, make a copy of the font and modify that.
Platform Specific Fonts ¶
The following system fonts are supported:
X Windows: All valid X font names, including those listed by xlsfonts(1), are available.
MS Windows: The following fonts are supported, and are mapped to the user's style defaults.
system ansi device systemfixed ansifixed oemfixed
Mac OS X: The following fonts are supported, and are mapped to the user's style defaults.
system application menu
Additionally, the following named fonts provide access to the Aqua theme fonts:
systemSystemFont systemEmphasizedSystemFont systemSmallSystemFont systemSmallEmphasizedSystemFont systemApplicationFont systemLabelFont systemViewsFont systemMenuTitleFont systemMenuItemFont systemMenuItemMarkFont systemMenuItemCmdKeyFont systemWindowTitleFont systemPushButtonFont systemUtilityWindowTitleFont systemAlertHeaderFont systemToolbarFont systemMiniSystemFont systemDetailSystemFont systemDetailEmphasizedSystemFont
func (*Application) FontM ¶ added in v1.0.16
func (a *Application) FontM(s string) string
FontM is like Font but panics on errors.
func (*Application) Main ¶ added in v1.0.12
func (a *Application) Main() error
Main repeatedly handles events. It returns only when there are no main windows left. Most windowing applications will call Main after initialization; the main execution of the application will consist entirely of callbacks.
Calling Main more than once panics.
func (*Application) MainM ¶ added in v1.0.16
func (a *Application) MainM()
MainM is like Main but panics on error.
func (*Application) Pack ¶ added in v1.0.16
func (a *Application) Pack(w ...Widget) error
Pack is equivalent to PackConfigure with no options.
func (*Application) PackM ¶ added in v1.0.16
func (a *Application) PackM(w ...Widget) *Application
PackM is like pack but panics on error.
func (*Application) SetStrictMotif ¶ added in v1.0.14
func (a *Application) SetStrictMotif(value bool) error
SetStrictMotif sets the tk_strictMotif variable. It is set to false by default. If an application sets it to true, then Tk attempts to adhere as closely as possible to Motif look-and-feel standards. For example, active elements such as buttons and scrollbar sliders will not change color when the pointer passes over them. Modern applications should not normally set this variable.
func (*Application) SetStrictMotifM ¶ added in v1.0.16
func (a *Application) SetStrictMotifM(value bool) *Application
SetStrictMotifM is like SetStrictMotif but panics on error.
func (*Application) StrictMotif ¶ added in v1.0.14
func (a *Application) StrictMotif() (bool, error)
StrictMotif returns the current value of the tk_strictMotif variable.
func (*Application) StrictMotifM ¶ added in v1.0.16
func (a *Application) StrictMotifM() bool
StrictMotifM is like StrictMotif but panics on error.
type Button ¶ added in v1.0.13
type Button struct {
Window
}
Button represents the Tk button widget.
func (*Button) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Button) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*Button) ActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Button) ActiveForegroundM ¶ added in v1.0.16
ActiveForegroundM is like ActiveForeground but panics on error.
func (*Button) Anchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Button) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Button) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Button) Bitmap ¶ added in v1.0.14
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*Button) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Button) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Button) Compound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*Button) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Button) Default ¶ added in v1.0.14
Default reports one of three states for the default ring: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In active state, the button is drawn with the platform specific appearance for a default button. In normal state, the button is drawn with the platform specific appearance for a non-default button, leaving enough space to draw the default button appearance. The normal and active states will result in buttons of the same size. In disabled state, the button is drawn with the non-default button appearance without leaving space for the default appearance. The disabled state may result in a smaller button than the active state.
func (*Button) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Button) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*Button) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Button) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Button) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Button) Height ¶ added in v1.0.14
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*Button) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Button) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Button) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Button) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Button) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Button) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Button) Image ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*Button) Justify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Button) OverRelief ¶ added in v1.0.14
OverRelief reports an alternative relief for the button, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the button. The empty string is the default value.
func (*Button) OverReliefM ¶ added in v1.0.16
OverReliefM is like OverRelief but panics on error.
func (*Button) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Button) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Button) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Button) RepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Button) RepeatDelayM ¶ added in v1.0.16
RepeatDelayM is like RepeatDelay but panics on error.
func (*Button) RepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Button) RepeatIntervalM ¶ added in v1.0.16
RepeatIntervalM is like RepeatInterval but panics on error.
func (*Button) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Button) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*Button) SetActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Button) SetActiveForegroundM ¶ added in v1.0.16
SetActiveForegroundM is like ActiveForeground but panics on error
func (*Button) SetAnchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Button) SetAnchorM ¶ added in v1.0.16
SetAnchorM is like Anchor but panics on error
func (*Button) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Button) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Button) SetBitmap ¶ added in v1.0.14
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*Button) SetBitmapM ¶ added in v1.0.16
SetBitmapM is like Bitmap but panics on error
func (*Button) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Button) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Button) SetCommand ¶ added in v1.0.14
Command specifies a Tcl command to associate with the button. This command is typically invoked when mouse button 1 is released over the button window.
func (*Button) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*Button) SetCompound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*Button) SetCompoundM ¶ added in v1.0.16
SetCompoundM is like Compound but panics on error
func (*Button) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Button) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Button) SetDefault ¶ added in v1.0.14
Default reports one of three states for the default ring: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In active state, the button is drawn with the platform specific appearance for a default button. In normal state, the button is drawn with the platform specific appearance for a non-default button, leaving enough space to draw the default button appearance. The normal and active states will result in buttons of the same size. In disabled state, the button is drawn with the non-default button appearance without leaving space for the default appearance. The disabled state may result in a smaller button than the active state.
func (*Button) SetDefaultM ¶ added in v1.0.16
SetDefaultM is like Default but panics on error
func (*Button) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Button) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*Button) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Button) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Button) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Button) SetHeight ¶ added in v1.0.14
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*Button) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*Button) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Button) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Button) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Button) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Button) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Button) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Button) SetImage ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*Button) SetJustify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Button) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*Button) SetOverRelief ¶ added in v1.0.14
OverRelief reports an alternative relief for the button, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the button. The empty string is the default value.
func (*Button) SetOverReliefM ¶ added in v1.0.16
SetOverReliefM is like OverRelief but panics on error
func (*Button) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Button) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Button) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Button) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Button) SetRepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Button) SetRepeatDelayM ¶ added in v1.0.16
SetRepeatDelayM is like RepeatDelay but panics on error
func (*Button) SetRepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Button) SetRepeatIntervalM ¶ added in v1.0.16
SetRepeatIntervalM is like RepeatInterval but panics on error
func (*Button) SetState ¶ added in v1.0.14
State reports one of three states for the button: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the button is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the button. In active state the button is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the button should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*Button) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Button) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Button) SetText ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Button) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Button) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*Button) SetUnderline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*Button) SetUnderlineM ¶ added in v1.0.16
SetUnderlineM is like Underline but panics on error
func (*Button) SetWidth ¶ added in v1.0.14
Width reports a desired width for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For a text button (no image or with \fB-compound none\fR) then the width specifies how much space in characters to allocate for the text label. If the width is negative then this specifies a minimum width. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*Button) SetWrapLength ¶ added in v1.0.14
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*Button) SetWrapLengthM ¶ added in v1.0.16
SetWrapLengthM is like WrapLength but panics on error
func (*Button) State ¶ added in v1.0.14
State reports one of three states for the button: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the button is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the button. In active state the button is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the button should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*Button) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Button) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Button) Text ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Button) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Button) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*Button) Underline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*Button) UnderlineM ¶ added in v1.0.16
UnderlineM is like Underline but panics on error.
func (*Button) Width ¶ added in v1.0.14
Width reports a desired width for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For a text button (no image or with \fB-compound none\fR) then the width specifies how much space in characters to allocate for the text label. If the width is negative then this specifies a minimum width. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*Button) WrapLength ¶ added in v1.0.14
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*Button) WrapLengthM ¶ added in v1.0.16
WrapLengthM is like WrapLength but panics on error.
type Canvas ¶ added in v1.0.13
type Canvas struct {
Window
}
Canvas represents the Tk canvas widget.
func (*Canvas) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Canvas) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Canvas) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Canvas) CloseEnough ¶ added in v1.0.14
CloseEnough reports a floating-point value indicating how close the mouse cursor must be to an item before it is considered to be TODO .QW(inside) the item. Defaults to 1.0.
func (*Canvas) CloseEnoughM ¶ added in v1.0.16
CloseEnoughM is like CloseEnough but panics on error.
func (*Canvas) Confine ¶ added in v1.0.14
Confine reports a boolean value that indicates whether or not it should be allowable to set the canvas's view outside the region defined by the \fBscrollRegion\fR argument. Defaults to true, which means that the view will be constrained within the scroll region.
func (*Canvas) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Canvas) Height ¶ added in v1.0.14
Height reports a desired window height that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the \fBCOORDINATES\fR section below.
func (*Canvas) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Canvas) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Canvas) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Canvas) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Canvas) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Canvas) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Canvas) InsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Canvas) InsertBackgroundM ¶ added in v1.0.16
InsertBackgroundM is like InsertBackground but panics on error.
func (*Canvas) InsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) InsertBorderWidthM ¶ added in v1.0.16
InsertBorderWidthM is like InsertBorderWidth but panics on error.
func (*Canvas) InsertOffTime ¶ added in v1.0.14
InsertOffTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Canvas) InsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Canvas) InsertOnTime ¶ added in v1.0.14
InsertOnTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Canvas) InsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Canvas) InsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Canvas) InsertWidthM ¶ added in v1.0.16
InsertWidthM is like InsertWidth but panics on error.
func (*Canvas) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Canvas) ScrollRegion ¶ added in v1.0.14
ScrollRegion reports a list with four coordinates describing the left, top, right, and bottom coordinates of a rectangular region. This region is used for scrolling purposes and is considered to be the boundary of the information in the canvas. Each of the coordinates may be specified in any of the forms given in the \fBCOORDINATES\fR section below.
func (*Canvas) ScrollRegionM ¶ added in v1.0.16
ScrollRegionM is like ScrollRegion but panics on error.
func (*Canvas) SelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Canvas) SelectBackgroundM ¶ added in v1.0.16
SelectBackgroundM is like SelectBackground but panics on error.
func (*Canvas) SelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) SelectBorderWidthM ¶ added in v1.0.17
SelectBorderWidthM is like SelectBorderWidth but panics on error.
func (*Canvas) SelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Canvas) SelectForegroundM ¶ added in v1.0.16
SelectForegroundM is like SelectForeground but panics on error.
func (*Canvas) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Canvas) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Canvas) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Canvas) SetCloseEnough ¶ added in v1.0.14
CloseEnough specifies a floating-point value indicating how close the mouse cursor must be to an item before it is considered to be TODO .QW(inside) the item. Defaults to 1.0.
func (*Canvas) SetCloseEnoughM ¶ added in v1.0.16
CloseEnoughM is like CloseEnough but panics on error.
func (*Canvas) SetConfine ¶ added in v1.0.14
Confine specifies a boolean value that indicates whether or not it should be allowable to set the canvas's view outside the region defined by the \fBscrollRegion\fR argument. Defaults to true, which means that the view will be constrained within the scroll region.
func (*Canvas) SetConfineM ¶ added in v1.0.16
ConfineM is like Confine but panics on error.
func (*Canvas) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Canvas) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Canvas) SetHeight ¶ added in v1.0.14
Height reports a desired window height that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the \fBCOORDINATES\fR section below.
func (*Canvas) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*Canvas) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Canvas) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Canvas) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Canvas) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Canvas) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Canvas) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Canvas) SetInsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Canvas) SetInsertBackgroundM ¶ added in v1.0.16
SetInsertBackgroundM is like InsertBackground but panics on error
func (*Canvas) SetInsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) SetInsertBorderWidthM ¶ added in v1.0.16
SetInsertBorderWidthM is like InsertBorderWidth but panics on error
func (*Canvas) SetInsertOffTime ¶ added in v1.0.14
InsertOffTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Canvas) SetInsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Canvas) SetInsertOnTime ¶ added in v1.0.14
InsertOnTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Canvas) SetInsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Canvas) SetInsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Canvas) SetInsertWidthM ¶ added in v1.0.16
SetInsertWidthM is like InsertWidth but panics on error
func (*Canvas) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Canvas) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Canvas) SetScrollRegion ¶ added in v1.0.14
ScrollRegion reports a list with four coordinates describing the left, top, right, and bottom coordinates of a rectangular region. This region is used for scrolling purposes and is considered to be the boundary of the information in the canvas. Each of the coordinates may be specified in any of the forms given in the \fBCOORDINATES\fR section below.
func (*Canvas) SetScrollRegionM ¶ added in v1.0.16
SetScrollRegionM is like ScrollRegion but panics on error
func (*Canvas) SetSelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Canvas) SetSelectBackgroundM ¶ added in v1.0.16
SetSelectBackgroundM is like SelectBackground but panics on error
func (*Canvas) SetSelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Canvas) SetSelectBorderWidthM ¶ added in v1.0.17
SetSelectBorderWidthM is like SelectBorderWidth but panics on error
func (*Canvas) SetSelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Canvas) SetSelectForegroundM ¶ added in v1.0.16
SetSelectForegroundM is like SelectForeground but panics on error
func (*Canvas) SetState ¶ added in v1.0.14
Modifies the default state of the canvas where \fIstate\fR may be set to one of: \fBnormal\fR, \fBdisabled\fR, or \fBhidden\fR. Individual canvas objects all have their own state option which may override the default state. Many options can take separate specifications such that the appearance of the item can be different in different situations. The options that start with \fBactive\fR control the appearance when the mouse pointer is over it, while the option starting with \fBdisabled\fR controls the appearance when the state is disabled. Canvas items which are \fBdisabled\fR will not react to canvas bindings.
func (*Canvas) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Canvas) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Canvas) SetWidth ¶ added in v1.0.14
Width reports a desired window width that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the \fBCOORDINATES\fR section below.
func (*Canvas) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*Canvas) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*Canvas) SetXScrollIncrement ¶ added in v1.0.14
XScrollIncrement reports an increment for horizontal scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the horizontal view in the window will be constrained so that the canvas x coordinate at the left edge of the window is always an even multiple of \fBxScrollIncrement\fR; furthermore, the units for scrolling (e.g., the change in view when the left and right arrows of a scrollbar are selected) will also be \fBxScrollIncrement\fR. If the value of this option is less than or equal to zero, then horizontal scrolling is unconstrained.
func (*Canvas) SetXScrollIncrementM ¶ added in v1.0.16
SetXScrollIncrementM is like XScrollIncrement but panics on error
func (*Canvas) SetYScrollCommand ¶ added in v1.0.17
YScrollCommand specifies the prefix for a command used to communicate with vertical scrollbars. This option is treated in the same way as the \fB-xscrollcommand\fR option, except that it is used for vertical scrollbars and is provided by widgets that support vertical scrolling. See the description of \fB-xscrollcommand\fR for details on how this option is used.
func (*Canvas) SetYScrollCommandM ¶ added in v1.0.17
SetYScrollCommandM is like YScrollCommand but panics on error
func (*Canvas) SetYScrollIncrement ¶ added in v1.0.14
YScrollIncrement reports an increment for vertical scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the vertical view in the window will be constrained so that the canvas y coordinate at the top edge of the window is always an even multiple of \fByScrollIncrement\fR; furthermore, the units for scrolling (e.g., the change in view when the top and bottom arrows of a scrollbar are selected) will also be \fByScrollIncrement\fR. If the value of this option is less than or equal to zero, then vertical scrolling is unconstrained.
func (*Canvas) SetYScrollIncrementM ¶ added in v1.0.16
SetYScrollIncrementM is like YScrollIncrement but panics on error
func (*Canvas) State ¶ added in v1.0.14
Modifies the default state of the canvas where \fIstate\fR may be set to one of: \fBnormal\fR, \fBdisabled\fR, or \fBhidden\fR. Individual canvas objects all have their own state option which may override the default state. Many options can take separate specifications such that the appearance of the item can be different in different situations. The options that start with \fBactive\fR control the appearance when the mouse pointer is over it, while the option starting with \fBdisabled\fR controls the appearance when the state is disabled. Canvas items which are \fBdisabled\fR will not react to canvas bindings.
func (*Canvas) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Canvas) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Canvas) Width ¶ added in v1.0.14
Width reports a desired window width that the canvas widget should request from its geometry manager. The value may be specified in any of the forms described in the \fBCOORDINATES\fR section below.
func (*Canvas) XScrollIncrement ¶ added in v1.0.14
XScrollIncrement reports an increment for horizontal scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the horizontal view in the window will be constrained so that the canvas x coordinate at the left edge of the window is always an even multiple of \fBxScrollIncrement\fR; furthermore, the units for scrolling (e.g., the change in view when the left and right arrows of a scrollbar are selected) will also be \fBxScrollIncrement\fR. If the value of this option is less than or equal to zero, then horizontal scrolling is unconstrained.
func (*Canvas) XScrollIncrementM ¶ added in v1.0.16
XScrollIncrementM is like XScrollIncrement but panics on error.
func (*Canvas) YScrollIncrement ¶ added in v1.0.14
YScrollIncrement reports an increment for vertical scrolling, in any of the usual forms permitted for screen distances. If the value of this option is greater than zero, the vertical view in the window will be constrained so that the canvas y coordinate at the top edge of the window is always an even multiple of \fByScrollIncrement\fR; furthermore, the units for scrolling (e.g., the change in view when the top and bottom arrows of a scrollbar are selected) will also be \fByScrollIncrement\fR. If the value of this option is less than or equal to zero, then vertical scrolling is unconstrained.
func (*Canvas) YScrollIncrementM ¶ added in v1.0.16
YScrollIncrementM is like YScrollIncrement but panics on error.
type CheckButton ¶ added in v1.0.14
type CheckButton struct {
Window
}
CheckButton represents the Tk checkbutton widget.
func (*CheckButton) ActiveBackground ¶ added in v1.0.14
func (w *CheckButton) ActiveBackground() (string, error)
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*CheckButton) ActiveBackgroundM ¶ added in v1.0.16
func (w *CheckButton) ActiveBackgroundM() string
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*CheckButton) ActiveForeground ¶ added in v1.0.14
func (w *CheckButton) ActiveForeground() (string, error)
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*CheckButton) ActiveForegroundM ¶ added in v1.0.16
func (w *CheckButton) ActiveForegroundM() string
ActiveForegroundM is like ActiveForeground but panics on error.
func (*CheckButton) Anchor ¶ added in v1.0.14
func (w *CheckButton) Anchor() (string, error)
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*CheckButton) AnchorM ¶ added in v1.0.16
func (w *CheckButton) AnchorM() string
AnchorM is like Anchor but panics on error.
func (*CheckButton) Background ¶ added in v1.0.14
func (w *CheckButton) Background() (string, error)
Background reports the normal background color to use when displaying the widget.
func (*CheckButton) BackgroundM ¶ added in v1.0.16
func (w *CheckButton) BackgroundM() string
BackgroundM is like Background but panics on error.
func (*CheckButton) Bitmap ¶ added in v1.0.14
func (w *CheckButton) Bitmap() (string, error)
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*CheckButton) BitmapM ¶ added in v1.0.16
func (w *CheckButton) BitmapM() string
BitmapM is like Bitmap but panics on error.
func (*CheckButton) BorderWidth ¶ added in v1.0.14
func (w *CheckButton) BorderWidth() (string, error)
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*CheckButton) BorderWidthM ¶ added in v1.0.16
func (w *CheckButton) BorderWidthM() string
BorderWidthM is like BorderWidth but panics on error.
func (*CheckButton) Compound ¶ added in v1.0.14
func (w *CheckButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*CheckButton) CompoundM ¶ added in v1.0.16
func (w *CheckButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*CheckButton) Cursor ¶ added in v1.0.14
func (w *CheckButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*CheckButton) CursorM ¶ added in v1.0.16
func (w *CheckButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*CheckButton) DisabledForeground ¶ added in v1.0.14
func (w *CheckButton) DisabledForeground() (string, error)
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*CheckButton) DisabledForegroundM ¶ added in v1.0.16
func (w *CheckButton) DisabledForegroundM() string
DisabledForegroundM is like DisabledForeground but panics on error.
func (*CheckButton) Font ¶ added in v1.0.14
func (w *CheckButton) Font() (string, error)
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*CheckButton) FontM ¶ added in v1.0.16
func (w *CheckButton) FontM() string
FontM is like Font but panics on error.
func (*CheckButton) Foreground ¶ added in v1.0.14
func (w *CheckButton) Foreground() (string, error)
Foreground reports the normal foreground color to use when displaying the widget.
func (*CheckButton) ForegroundM ¶ added in v1.0.16
func (w *CheckButton) ForegroundM() string
ForegroundM is like Foreground but panics on error.
func (*CheckButton) Height ¶ added in v1.0.14
func (w *CheckButton) Height() (string, error)
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*CheckButton) HeightM ¶ added in v1.0.16
func (w *CheckButton) HeightM() string
HeightM is like Height but panics on error.
func (*CheckButton) HighlightBackground ¶ added in v1.0.14
func (w *CheckButton) HighlightBackground() (string, error)
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*CheckButton) HighlightBackgroundM ¶ added in v1.0.16
func (w *CheckButton) HighlightBackgroundM() string
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*CheckButton) HighlightColor ¶ added in v1.0.14
func (w *CheckButton) HighlightColor() (string, error)
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*CheckButton) HighlightColorM ¶ added in v1.0.16
func (w *CheckButton) HighlightColorM() string
HighlightColorM is like HighlightColor but panics on error.
func (*CheckButton) HighlightThickness ¶ added in v1.0.14
func (w *CheckButton) HighlightThickness() (string, error)
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*CheckButton) HighlightThicknessM ¶ added in v1.0.16
func (w *CheckButton) HighlightThicknessM() string
HighlightThicknessM is like HighlightThickness but panics on error.
func (*CheckButton) Image ¶ added in v1.0.14
func (w *CheckButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*CheckButton) ImageM ¶ added in v1.0.16
func (w *CheckButton) ImageM() string
ImageM is like Image but panics on error.
func (*CheckButton) Indicatoron ¶ added in v1.0.14
func (w *CheckButton) Indicatoron() (string, error)
Indicatoron reports whether or not the indicator should be drawn. Must be a proper boolean value. If false, the \fB-relief\fR option is ignored and the widget's relief is always sunken if the widget is selected and raised otherwise.
func (*CheckButton) IndicatoronM ¶ added in v1.0.16
func (w *CheckButton) IndicatoronM() string
IndicatoronM is like Indicatoron but panics on error.
func (*CheckButton) Justify ¶ added in v1.0.14
func (w *CheckButton) Justify() (string, error)
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*CheckButton) JustifyM ¶ added in v1.0.16
func (w *CheckButton) JustifyM() string
JustifyM is like Justify but panics on error.
func (*CheckButton) OffRelief ¶ added in v1.0.14
func (w *CheckButton) OffRelief() (string, error)
OffRelief reports the relief for the checkbutton when the indicator is not drawn and the checkbutton is off. The default value is TODO .QW(raised .) By setting this option to TODO .QW(flat) and setting \fB-indicatoron\fR to false and \fB-overrelief\fR to TODO .QW(raised ,) the effect is achieved of having a flat button that raises on mouse-over and which is depressed when activated. This is the behavior typically exhibited by the Bold, Italic, and Underline checkbuttons on the toolbar of a word-processor, for example.
func (*CheckButton) OffReliefM ¶ added in v1.0.16
func (w *CheckButton) OffReliefM() string
OffReliefM is like OffRelief but panics on error.
func (*CheckButton) OffValue ¶ added in v1.0.14
func (w *CheckButton) OffValue() (string, error)
OffValue reports value to store in the button's associated variable whenever this button is deselected. Defaults to TODO .QW(0 .)
func (*CheckButton) OffValueM ¶ added in v1.0.16
func (w *CheckButton) OffValueM() string
OffValueM is like OffValue but panics on error.
func (*CheckButton) OnValue ¶ added in v1.0.14
func (w *CheckButton) OnValue() (string, error)
OnValue reports value to store in the button's associated variable whenever this button is selected. Defaults to TODO .QW(1 .)
func (*CheckButton) OnValueM ¶ added in v1.0.16
func (w *CheckButton) OnValueM() string
OnValueM is like OnValue but panics on error.
func (*CheckButton) OverRelief ¶ added in v1.0.14
func (w *CheckButton) OverRelief() (string, error)
OverRelief reports an alternative relief for the checkbutton, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the checkbutton. The empty string is the default value.
func (*CheckButton) OverReliefM ¶ added in v1.0.16
func (w *CheckButton) OverReliefM() string
OverReliefM is like OverRelief but panics on error.
func (*CheckButton) PadX ¶ added in v1.0.14
func (w *CheckButton) PadX() (string, error)
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*CheckButton) PadXM ¶ added in v1.0.16
func (w *CheckButton) PadXM() string
PadXM is like PadX but panics on error.
func (*CheckButton) PadY ¶ added in v1.0.14
func (w *CheckButton) PadY() (string, error)
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*CheckButton) PadYM ¶ added in v1.0.16
func (w *CheckButton) PadYM() string
PadYM is like PadY but panics on error.
func (*CheckButton) Relief ¶ added in v1.0.14
func (w *CheckButton) Relief() (string, error)
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*CheckButton) ReliefM ¶ added in v1.0.16
func (w *CheckButton) ReliefM() string
ReliefM is like Relief but panics on error.
func (*CheckButton) SelectColor ¶ added in v1.0.14
func (w *CheckButton) SelectColor() (string, error)
SelectColor reports a background color to use when the button is selected. If \fBindicatorOn\fR is true then the color is used as the background for the indicator regardless of the select state. If \fBindicatorOn\fR is false, this color is used as the background for the entire widget, in place of \fBbackground\fR or \fBactiveBackground\fR, whenever the widget is selected. If specified as an empty string then no special color is used for displaying when the widget is selected.
func (*CheckButton) SelectColorM ¶ added in v1.0.16
func (w *CheckButton) SelectColorM() string
SelectColorM is like SelectColor but panics on error.
func (*CheckButton) SelectImage ¶ added in v1.0.14
func (w *CheckButton) SelectImage() (string, error)
SelectImage reports an image to display (in place of the \fB-image\fR option) when the checkbutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*CheckButton) SelectImageM ¶ added in v1.0.16
func (w *CheckButton) SelectImageM() string
SelectImageM is like SelectImage but panics on error.
func (*CheckButton) SetActiveBackground ¶ added in v1.0.14
func (w *CheckButton) SetActiveBackground(value string) error
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*CheckButton) SetActiveBackgroundM ¶ added in v1.0.16
func (w *CheckButton) SetActiveBackgroundM(value string) *CheckButton
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*CheckButton) SetActiveForeground ¶ added in v1.0.14
func (w *CheckButton) SetActiveForeground(value string) error
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*CheckButton) SetActiveForegroundM ¶ added in v1.0.16
func (w *CheckButton) SetActiveForegroundM(value string) *CheckButton
SetActiveForegroundM is like ActiveForeground but panics on error
func (*CheckButton) SetAnchor ¶ added in v1.0.14
func (w *CheckButton) SetAnchor(value string) error
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*CheckButton) SetAnchorM ¶ added in v1.0.16
func (w *CheckButton) SetAnchorM(value string) *CheckButton
SetAnchorM is like Anchor but panics on error
func (*CheckButton) SetBackground ¶ added in v1.0.14
func (w *CheckButton) SetBackground(value string) error
Background reports the normal background color to use when displaying the widget.
func (*CheckButton) SetBackgroundM ¶ added in v1.0.16
func (w *CheckButton) SetBackgroundM(value string) *CheckButton
SetBackgroundM is like Background but panics on error
func (*CheckButton) SetBitmap ¶ added in v1.0.14
func (w *CheckButton) SetBitmap(value string) error
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*CheckButton) SetBitmapM ¶ added in v1.0.16
func (w *CheckButton) SetBitmapM(value string) *CheckButton
SetBitmapM is like Bitmap but panics on error
func (*CheckButton) SetBorderWidth ¶ added in v1.0.14
func (w *CheckButton) SetBorderWidth(value string) error
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*CheckButton) SetBorderWidthM ¶ added in v1.0.16
func (w *CheckButton) SetBorderWidthM(value string) *CheckButton
SetBorderWidthM is like BorderWidth but panics on error
func (*CheckButton) SetCommand ¶ added in v1.0.14
func (w *CheckButton) SetCommand(value Command) error
Command specifies a Tcl command to associate with the button. This command is typically invoked when mouse button 1 is released over the button window. The button's global variable (\fB-variable\fR option) will be updated before the command is invoked.
func (*CheckButton) SetCommandM ¶ added in v1.0.16
func (w *CheckButton) SetCommandM(value Command) *CheckButton
SetCommandM is like Command but panics on error
func (*CheckButton) SetCompound ¶ added in v1.0.14
func (w *CheckButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*CheckButton) SetCompoundM ¶ added in v1.0.16
func (w *CheckButton) SetCompoundM(value string) *CheckButton
SetCompoundM is like Compound but panics on error
func (*CheckButton) SetCursor ¶ added in v1.0.14
func (w *CheckButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*CheckButton) SetCursorM ¶ added in v1.0.16
func (w *CheckButton) SetCursorM(value string) *CheckButton
SetCursorM is like Cursor but panics on error
func (*CheckButton) SetDisabledForeground ¶ added in v1.0.14
func (w *CheckButton) SetDisabledForeground(value string) error
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*CheckButton) SetDisabledForegroundM ¶ added in v1.0.16
func (w *CheckButton) SetDisabledForegroundM(value string) *CheckButton
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*CheckButton) SetFont ¶ added in v1.0.14
func (w *CheckButton) SetFont(value string) error
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*CheckButton) SetFontM ¶ added in v1.0.16
func (w *CheckButton) SetFontM(value string) *CheckButton
SetFontM is like Font but panics on error
func (*CheckButton) SetForeground ¶ added in v1.0.14
func (w *CheckButton) SetForeground(value string) error
Foreground reports the normal foreground color to use when displaying the widget.
func (*CheckButton) SetForegroundM ¶ added in v1.0.16
func (w *CheckButton) SetForegroundM(value string) *CheckButton
SetForegroundM is like Foreground but panics on error
func (*CheckButton) SetHeight ¶ added in v1.0.14
func (w *CheckButton) SetHeight(value string) error
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*CheckButton) SetHeightM ¶ added in v1.0.16
func (w *CheckButton) SetHeightM(value string) *CheckButton
SetHeightM is like Height but panics on error
func (*CheckButton) SetHighlightBackground ¶ added in v1.0.14
func (w *CheckButton) SetHighlightBackground(value string) error
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*CheckButton) SetHighlightBackgroundM ¶ added in v1.0.16
func (w *CheckButton) SetHighlightBackgroundM(value string) *CheckButton
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*CheckButton) SetHighlightColor ¶ added in v1.0.14
func (w *CheckButton) SetHighlightColor(value string) error
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*CheckButton) SetHighlightColorM ¶ added in v1.0.16
func (w *CheckButton) SetHighlightColorM(value string) *CheckButton
SetHighlightColorM is like HighlightColor but panics on error
func (*CheckButton) SetHighlightThickness ¶ added in v1.0.14
func (w *CheckButton) SetHighlightThickness(value string) error
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*CheckButton) SetHighlightThicknessM ¶ added in v1.0.16
func (w *CheckButton) SetHighlightThicknessM(value string) *CheckButton
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*CheckButton) SetImage ¶ added in v1.0.14
func (w *CheckButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*CheckButton) SetImageM ¶ added in v1.0.16
func (w *CheckButton) SetImageM(value string) *CheckButton
SetImageM is like Image but panics on error
func (*CheckButton) SetIndicatoron ¶ added in v1.0.14
func (w *CheckButton) SetIndicatoron(value string) error
Indicatoron reports whether or not the indicator should be drawn. Must be a proper boolean value. If false, the \fB-relief\fR option is ignored and the widget's relief is always sunken if the widget is selected and raised otherwise.
func (*CheckButton) SetIndicatoronM ¶ added in v1.0.16
func (w *CheckButton) SetIndicatoronM(value string) *CheckButton
SetIndicatoronM is like Indicatoron but panics on error
func (*CheckButton) SetJustify ¶ added in v1.0.14
func (w *CheckButton) SetJustify(value string) error
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*CheckButton) SetJustifyM ¶ added in v1.0.16
func (w *CheckButton) SetJustifyM(value string) *CheckButton
SetJustifyM is like Justify but panics on error
func (*CheckButton) SetOffRelief ¶ added in v1.0.14
func (w *CheckButton) SetOffRelief(value string) error
OffRelief reports the relief for the checkbutton when the indicator is not drawn and the checkbutton is off. The default value is TODO .QW(raised .) By setting this option to TODO .QW(flat) and setting \fB-indicatoron\fR to false and \fB-overrelief\fR to TODO .QW(raised ,) the effect is achieved of having a flat button that raises on mouse-over and which is depressed when activated. This is the behavior typically exhibited by the Bold, Italic, and Underline checkbuttons on the toolbar of a word-processor, for example.
func (*CheckButton) SetOffReliefM ¶ added in v1.0.16
func (w *CheckButton) SetOffReliefM(value string) *CheckButton
SetOffReliefM is like OffRelief but panics on error
func (*CheckButton) SetOffValue ¶ added in v1.0.14
func (w *CheckButton) SetOffValue(value string) error
OffValue reports value to store in the button's associated variable whenever this button is deselected. Defaults to TODO .QW(0 .)
func (*CheckButton) SetOffValueM ¶ added in v1.0.16
func (w *CheckButton) SetOffValueM(value string) *CheckButton
SetOffValueM is like OffValue but panics on error
func (*CheckButton) SetOnValue ¶ added in v1.0.14
func (w *CheckButton) SetOnValue(value string) error
OnValue reports value to store in the button's associated variable whenever this button is selected. Defaults to TODO .QW(1 .)
func (*CheckButton) SetOnValueM ¶ added in v1.0.16
func (w *CheckButton) SetOnValueM(value string) *CheckButton
SetOnValueM is like OnValue but panics on error
func (*CheckButton) SetOverRelief ¶ added in v1.0.14
func (w *CheckButton) SetOverRelief(value string) error
OverRelief reports an alternative relief for the checkbutton, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the checkbutton. The empty string is the default value.
func (*CheckButton) SetOverReliefM ¶ added in v1.0.16
func (w *CheckButton) SetOverReliefM(value string) *CheckButton
SetOverReliefM is like OverRelief but panics on error
func (*CheckButton) SetPadX ¶ added in v1.0.14
func (w *CheckButton) SetPadX(value string) error
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*CheckButton) SetPadXM ¶ added in v1.0.16
func (w *CheckButton) SetPadXM(value string) *CheckButton
SetPadXM is like PadX but panics on error
func (*CheckButton) SetPadY ¶ added in v1.0.14
func (w *CheckButton) SetPadY(value string) error
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*CheckButton) SetPadYM ¶ added in v1.0.16
func (w *CheckButton) SetPadYM(value string) *CheckButton
SetPadYM is like PadY but panics on error
func (*CheckButton) SetRelief ¶ added in v1.0.14
func (w *CheckButton) SetRelief(value string) error
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*CheckButton) SetReliefM ¶ added in v1.0.16
func (w *CheckButton) SetReliefM(value string) *CheckButton
SetReliefM is like Relief but panics on error
func (*CheckButton) SetSelectColor ¶ added in v1.0.14
func (w *CheckButton) SetSelectColor(value string) error
SelectColor reports a background color to use when the button is selected. If \fBindicatorOn\fR is true then the color is used as the background for the indicator regardless of the select state. If \fBindicatorOn\fR is false, this color is used as the background for the entire widget, in place of \fBbackground\fR or \fBactiveBackground\fR, whenever the widget is selected. If specified as an empty string then no special color is used for displaying when the widget is selected.
func (*CheckButton) SetSelectColorM ¶ added in v1.0.16
func (w *CheckButton) SetSelectColorM(value string) *CheckButton
SetSelectColorM is like SelectColor but panics on error
func (*CheckButton) SetSelectImage ¶ added in v1.0.14
func (w *CheckButton) SetSelectImage(value string) error
SelectImage reports an image to display (in place of the \fB-image\fR option) when the checkbutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*CheckButton) SetSelectImageM ¶ added in v1.0.16
func (w *CheckButton) SetSelectImageM(value string) *CheckButton
SetSelectImageM is like SelectImage but panics on error
func (*CheckButton) SetState ¶ added in v1.0.14
func (w *CheckButton) SetState(value string) error
State reports one of three states for the checkbutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the checkbutton is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the checkbutton. In active state the checkbutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the checkbutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the checkbutton is displayed.
func (*CheckButton) SetStateM ¶ added in v1.0.16
func (w *CheckButton) SetStateM(value string) *CheckButton
SetStateM is like State but panics on error
func (*CheckButton) SetTakeFocus ¶ added in v1.0.14
func (w *CheckButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*CheckButton) SetTakeFocusM ¶ added in v1.0.16
func (w *CheckButton) SetTakeFocusM(value string) *CheckButton
SetTakeFocusM is like TakeFocus but panics on error
func (*CheckButton) SetText ¶ added in v1.0.14
func (w *CheckButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*CheckButton) SetTextM ¶ added in v1.0.16
func (w *CheckButton) SetTextM(value string) *CheckButton
SetTextM is like Text but panics on error
func (*CheckButton) SetTextVariable ¶ added in v1.0.15
func (w *CheckButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*CheckButton) SetTextVariableM ¶ added in v1.0.16
func (w *CheckButton) SetTextVariableM(value string) *CheckButton
SetTextVariableM is like TextVariable but panics on error
func (*CheckButton) SetTristateImage ¶ added in v1.0.14
func (w *CheckButton) SetTristateImage(value string) error
TristateImage reports an image to display (in place of the \fB-image\fR option) when the checkbutton is in tri-state mode. This option is ignored unless the \fB-image\fR option has been specified.
func (*CheckButton) SetTristateImageM ¶ added in v1.0.16
func (w *CheckButton) SetTristateImageM(value string) *CheckButton
SetTristateImageM is like TristateImage but panics on error
func (*CheckButton) SetTristateValue ¶ added in v1.0.14
func (w *CheckButton) SetTristateValue(value string) error
TristateValue reports the value that causes the checkbutton to display the multi-value selection, also known as the tri-state mode. Defaults to TODO .QW("" .)
func (*CheckButton) SetTristateValueM ¶ added in v1.0.16
func (w *CheckButton) SetTristateValueM(value string) *CheckButton
SetTristateValueM is like TristateValue but panics on error
func (*CheckButton) SetUnderline ¶ added in v1.0.14
func (w *CheckButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*CheckButton) SetUnderlineM ¶ added in v1.0.16
func (w *CheckButton) SetUnderlineM(value string) *CheckButton
SetUnderlineM is like Underline but panics on error
func (*CheckButton) SetVariable ¶ added in v1.0.15
func (w *CheckButton) SetVariable(value string) error
Variable reports the name of a global variable to set to indicate whether or not this button is selected. Defaults to the name of the button within its parent (i.e. the last element of the button window's path name).
func (*CheckButton) SetVariableM ¶ added in v1.0.16
func (w *CheckButton) SetVariableM(value string) *CheckButton
SetVariableM is like Variable but panics on error
func (*CheckButton) SetWidth ¶ added in v1.0.14
func (w *CheckButton) SetWidth(value string) error
Width reports a desired width for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*CheckButton) SetWidthM ¶ added in v1.0.16
func (w *CheckButton) SetWidthM(value string) *CheckButton
SetWidthM is like Width but panics on error
func (*CheckButton) SetWrapLength ¶ added in v1.0.14
func (w *CheckButton) SetWrapLength(value string) error
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*CheckButton) SetWrapLengthM ¶ added in v1.0.16
func (w *CheckButton) SetWrapLengthM(value string) *CheckButton
SetWrapLengthM is like WrapLength but panics on error
func (*CheckButton) State ¶ added in v1.0.14
func (w *CheckButton) State() (string, error)
State reports one of three states for the checkbutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the checkbutton is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the checkbutton. In active state the checkbutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the checkbutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the checkbutton is displayed.
func (*CheckButton) StateM ¶ added in v1.0.16
func (w *CheckButton) StateM() string
StateM is like State but panics on error.
func (*CheckButton) TakeFocus ¶ added in v1.0.14
func (w *CheckButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*CheckButton) TakeFocusM ¶ added in v1.0.16
func (w *CheckButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*CheckButton) Text ¶ added in v1.0.14
func (w *CheckButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*CheckButton) TextM ¶ added in v1.0.16
func (w *CheckButton) TextM() string
TextM is like Text but panics on error.
func (*CheckButton) TextVariable ¶ added in v1.0.15
func (w *CheckButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*CheckButton) TextVariableM ¶ added in v1.0.16
func (w *CheckButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*CheckButton) TristateImage ¶ added in v1.0.14
func (w *CheckButton) TristateImage() (string, error)
TristateImage reports an image to display (in place of the \fB-image\fR option) when the checkbutton is in tri-state mode. This option is ignored unless the \fB-image\fR option has been specified.
func (*CheckButton) TristateImageM ¶ added in v1.0.16
func (w *CheckButton) TristateImageM() string
TristateImageM is like TristateImage but panics on error.
func (*CheckButton) TristateValue ¶ added in v1.0.14
func (w *CheckButton) TristateValue() (string, error)
TristateValue reports the value that causes the checkbutton to display the multi-value selection, also known as the tri-state mode. Defaults to TODO .QW("" .)
func (*CheckButton) TristateValueM ¶ added in v1.0.16
func (w *CheckButton) TristateValueM() string
TristateValueM is like TristateValue but panics on error.
func (*CheckButton) Underline ¶ added in v1.0.14
func (w *CheckButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*CheckButton) UnderlineM ¶ added in v1.0.16
func (w *CheckButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*CheckButton) Variable ¶ added in v1.0.15
func (w *CheckButton) Variable() (string, error)
Variable reports the name of a global variable to set to indicate whether or not this button is selected. Defaults to the name of the button within its parent (i.e. the last element of the button window's path name).
func (*CheckButton) VariableM ¶ added in v1.0.16
func (w *CheckButton) VariableM() string
VariableM is like Variable but panics on error.
func (*CheckButton) Width ¶ added in v1.0.14
func (w *CheckButton) Width() (string, error)
Width reports a desired width for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*CheckButton) WidthM ¶ added in v1.0.16
func (w *CheckButton) WidthM() string
WidthM is like Width but panics on error.
func (*CheckButton) WrapLength ¶ added in v1.0.14
func (w *CheckButton) WrapLength() (string, error)
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*CheckButton) WrapLengthM ¶ added in v1.0.16
func (w *CheckButton) WrapLengthM() string
WrapLengthM is like WrapLength but panics on error.
type Command ¶ added in v1.0.15
Command is a Go function used by the Command option of some widgets.
type Entry ¶ added in v1.0.13
type Entry struct {
Window
}
Entry represents the Tk entry widget.
func (*Entry) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Entry) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Entry) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Entry) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Entry) DisabledBackground ¶ added in v1.0.14
DisabledBackground reports the background color to use when the entry is disabled. If this option is the empty string, the normal background color is used.
func (*Entry) DisabledBackgroundM ¶ added in v1.0.16
DisabledBackgroundM is like DisabledBackground but panics on error.
func (*Entry) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports the foreground color to use when the entry is disabled. If this option is the empty string, the normal foreground color is used.
func (*Entry) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*Entry) ExportSelection ¶ added in v1.0.14
ExportSelection reports whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*Entry) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*Entry) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Entry) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Entry) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Entry) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Entry) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Entry) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Entry) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Entry) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Entry) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Entry) InsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Entry) InsertBackgroundM ¶ added in v1.0.16
InsertBackgroundM is like InsertBackground but panics on error.
func (*Entry) InsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) InsertBorderWidthM ¶ added in v1.0.16
InsertBorderWidthM is like InsertBorderWidth but panics on error.
func (*Entry) InsertOffTime ¶ added in v1.0.14
InsertOffTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Entry) InsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Entry) InsertOnTime ¶ added in v1.0.14
InsertOnTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Entry) InsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Entry) InsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Entry) InsertWidthM ¶ added in v1.0.16
InsertWidthM is like InsertWidth but panics on error.
func (*Entry) InvalidCommand ¶ added in v1.0.14
InvalidCommand reports a script to eval when \fB-validatecommand\fR returns 0. Setting it to {} disables this feature (the default). The best use of this option is to set it to \fIbell\fR. See \fBVALIDATION\fR below for more information.
func (*Entry) InvalidCommandM ¶ added in v1.0.16
InvalidCommandM is like InvalidCommand but panics on error.
func (*Entry) Justify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Entry) ReadonlyBackground ¶ added in v1.0.14
ReadonlyBackground reports the background color to use when the entry is readonly. If this option is the empty string, the normal background color is used.
func (*Entry) ReadonlyBackgroundM ¶ added in v1.0.16
ReadonlyBackgroundM is like ReadonlyBackground but panics on error.
func (*Entry) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Entry) SelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Entry) SelectBackgroundM ¶ added in v1.0.16
SelectBackgroundM is like SelectBackground but panics on error.
func (*Entry) SelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) SelectBorderWidthM ¶ added in v1.0.17
SelectBorderWidthM is like SelectBorderWidth but panics on error.
func (*Entry) SelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Entry) SelectForegroundM ¶ added in v1.0.16
SelectForegroundM is like SelectForeground but panics on error.
func (*Entry) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Entry) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Entry) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Entry) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Entry) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Entry) SetDisabledBackground ¶ added in v1.0.14
DisabledBackground reports the background color to use when the entry is disabled. If this option is the empty string, the normal background color is used.
func (*Entry) SetDisabledBackgroundM ¶ added in v1.0.16
SetDisabledBackgroundM is like DisabledBackground but panics on error
func (*Entry) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports the foreground color to use when the entry is disabled. If this option is the empty string, the normal foreground color is used.
func (*Entry) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*Entry) SetExportSelection ¶ added in v1.0.14
ExportSelection specifies whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*Entry) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*Entry) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Entry) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Entry) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Entry) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Entry) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Entry) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Entry) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Entry) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Entry) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Entry) SetInsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Entry) SetInsertBackgroundM ¶ added in v1.0.16
SetInsertBackgroundM is like InsertBackground but panics on error
func (*Entry) SetInsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) SetInsertBorderWidthM ¶ added in v1.0.16
SetInsertBorderWidthM is like InsertBorderWidth but panics on error
func (*Entry) SetInsertOffTime ¶ added in v1.0.14
InsertOffTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Entry) SetInsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Entry) SetInsertOnTime ¶ added in v1.0.14
InsertOnTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Entry) SetInsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Entry) SetInsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Entry) SetInsertWidthM ¶ added in v1.0.16
SetInsertWidthM is like InsertWidth but panics on error
func (*Entry) SetInvalidCommand ¶ added in v1.0.14
InvalidCommand reports a script to eval when \fB-validatecommand\fR returns 0. Setting it to {} disables this feature (the default). The best use of this option is to set it to \fIbell\fR. See \fBVALIDATION\fR below for more information.
func (*Entry) SetInvalidCommandM ¶ added in v1.0.16
SetInvalidCommandM is like InvalidCommand but panics on error
func (*Entry) SetJustify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Entry) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*Entry) SetReadonlyBackground ¶ added in v1.0.14
ReadonlyBackground reports the background color to use when the entry is readonly. If this option is the empty string, the normal background color is used.
func (*Entry) SetReadonlyBackgroundM ¶ added in v1.0.16
SetReadonlyBackgroundM is like ReadonlyBackground but panics on error
func (*Entry) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Entry) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Entry) SetSelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Entry) SetSelectBackgroundM ¶ added in v1.0.16
SetSelectBackgroundM is like SelectBackground but panics on error
func (*Entry) SetSelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Entry) SetSelectBorderWidthM ¶ added in v1.0.17
SetSelectBorderWidthM is like SelectBorderWidth but panics on error
func (*Entry) SetSelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Entry) SetSelectForegroundM ¶ added in v1.0.16
SetSelectForegroundM is like SelectForeground but panics on error
func (*Entry) SetShow ¶ added in v1.0.14
If this option is specified, then the true contents of the entry are not displayed in the window. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as TODO .QW(* .) This is useful, for example, if the entry is to be used to enter a password. If characters in the entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the entry.
func (*Entry) SetState ¶ added in v1.0.14
State reports one of three states for the entry: \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. If the entry is readonly, then the value may not be changed using widget commands and no insertion cursor will be displayed, even if the input focus is in the widget; the contents of the widget may still be selected. If the entry is disabled, the value may not be changed, no insertion cursor will be displayed, the contents will not be selectable, and the entry may be displayed in a different color, depending on the values of the \fB-disabledforeground\fR and \fB-disabledbackground\fR options.
func (*Entry) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Entry) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Entry) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Entry) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*Entry) SetValidate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. It defaults to \fBnone\fR. When you want validation, you must explicitly state which mode you wish to use. See \fBVALIDATION\fR below for more.
func (*Entry) SetValidateCommand ¶ added in v1.0.14
ValidateCommand reports a script to eval when you want to validate the input into the entry widget. Setting it to {} disables this feature (the default). This command must return a valid Tcl boolean value. If it returns 0 (or the valid Tcl boolean equivalent) then it means you reject the new edition and it will not occur and the \fB-invalidcommand\fR will be evaluated if it is set. If it returns 1, then the new edition occurs. See \fBVALIDATION\fR below for more information.
func (*Entry) SetValidateCommandM ¶ added in v1.0.16
SetValidateCommandM is like ValidateCommand but panics on error
func (*Entry) SetValidateM ¶ added in v1.0.16
SetValidateM is like Validate but panics on error
func (*Entry) SetWidth ¶ added in v1.0.14
Width reports an integer value indicating the desired width of the entry window, in average-size characters of the widget's font. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text.
func (*Entry) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*Entry) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*Entry) Show ¶ added in v1.0.14
If this option is specified, then the true contents of the entry are not displayed in the window. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as TODO .QW(* .) This is useful, for example, if the entry is to be used to enter a password. If characters in the entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the entry.
func (*Entry) State ¶ added in v1.0.14
State reports one of three states for the entry: \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. If the entry is readonly, then the value may not be changed using widget commands and no insertion cursor will be displayed, even if the input focus is in the widget; the contents of the widget may still be selected. If the entry is disabled, the value may not be changed, no insertion cursor will be displayed, the contents will not be selectable, and the entry may be displayed in a different color, depending on the values of the \fB-disabledforeground\fR and \fB-disabledbackground\fR options.
func (*Entry) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Entry) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Entry) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Entry) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*Entry) Validate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. It defaults to \fBnone\fR. When you want validation, you must explicitly state which mode you wish to use. See \fBVALIDATION\fR below for more.
func (*Entry) ValidateCommand ¶ added in v1.0.14
ValidateCommand reports a script to eval when you want to validate the input into the entry widget. Setting it to {} disables this feature (the default). This command must return a valid Tcl boolean value. If it returns 0 (or the valid Tcl boolean equivalent) then it means you reject the new edition and it will not occur and the \fB-invalidcommand\fR will be evaluated if it is set. If it returns 1, then the new edition occurs. See \fBVALIDATION\fR below for more information.
func (*Entry) ValidateCommandM ¶ added in v1.0.16
ValidateCommandM is like ValidateCommand but panics on error.
type Frame ¶ added in v1.0.13
type Frame struct {
Window
}
Frame represents the Tk frame widget.
func (*Frame) Background ¶ added in v1.0.14
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*Frame) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Frame) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Frame) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Frame) Class ¶ added in v1.0.14
Class reports a class for the window. This class will be used when querying the option database for the window's other options, and it will also be used later for other purposes such as bindings. The \fB-class\fR option may not be changed with the \fBconfigure\fR widget command.
func (*Frame) Colormap ¶ added in v1.0.14
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the same colormap as its parent. This option may not be changed with the \fBconfigure\fR widget command.
func (*Frame) Container ¶ added in v1.0.14
The value must be a boolean. If true, it means that this window will be used as a container in which some other application will be embedded (for example, a Tk toplevel can be embedded using the \fB-use\fR option). The window will support the appropriate window manager protocols for things like geometry requests. The window should not have any children of its own in this application. This option may not be changed with the \fBconfigure\fR widget command. Note that \fB-borderwidth\fR, \fB-padx\fR and \fB-pady\fR are ignored when configured as a container since a container has no border.
func (*Frame) ContainerM ¶ added in v1.0.16
ContainerM is like Container but panics on error.
func (*Frame) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Frame) Height ¶ added in v1.0.14
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all. Note that this sets the total height of the frame, any \fB-borderwidth\fR or similar is not added. Normally \fB-height\fR should not be used if a propagating geometry manager, such as \fBgrid\fR or \fBpack\fR, is used within the frame since the geometry manager will override the height of the frame.
func (*Frame) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Frame) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Frame) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Frame) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Frame) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Frame) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Frame) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Frame) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Frame) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Frame) SetBackground ¶ added in v1.0.14
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*Frame) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Frame) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Frame) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Frame) SetColormap ¶ added in v1.0.14
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the same colormap as its parent. This option may not be changed with the \fBconfigure\fR widget command.
func (*Frame) SetColormapM ¶ added in v1.0.16
SetColormapM is like Colormap but panics on error
func (*Frame) SetContainer ¶ added in v1.0.14
The value must be a boolean. If true, it means that this window will be used as a container in which some other application will be embedded (for example, a Tk toplevel can be embedded using the \fB-use\fR option). The window will support the appropriate window manager protocols for things like geometry requests. The window should not have any children of its own in this application. This option may not be changed with the \fBconfigure\fR widget command. Note that \fB-borderwidth\fR, \fB-padx\fR and \fB-pady\fR are ignored when configured as a container since a container has no border.
func (*Frame) SetContainerM ¶ added in v1.0.16
SetContainerM is like Container but panics on error
func (*Frame) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Frame) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Frame) SetHeight ¶ added in v1.0.14
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all. Note that this sets the total height of the frame, any \fB-borderwidth\fR or similar is not added. Normally \fB-height\fR should not be used if a propagating geometry manager, such as \fBgrid\fR or \fBpack\fR, is used within the frame since the geometry manager will override the height of the frame.
func (*Frame) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*Frame) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Frame) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Frame) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Frame) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Frame) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Frame) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Frame) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Frame) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Frame) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Frame) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Frame) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Frame) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Frame) SetVisual ¶ added in v1.0.14
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the same visual as its parent. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
func (*Frame) SetVisualM ¶ added in v1.0.16
SetVisualM is like Visual but panics on error
func (*Frame) SetWidth ¶ added in v1.0.14
Width reports the desired width for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all. Note that this sets the total width of the frame, any \fB-borderwidth\fR or similar is not added. Normally \fB-width\fR should not be used if a propagating geometry manager, such as \fBgrid\fR or \fBpack\fR, is used within the frame since the geometry manager will override the width of the frame.
func (*Frame) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Frame) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Frame) Visual ¶ added in v1.0.14
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the same visual as its parent. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
func (*Frame) Width ¶ added in v1.0.14
Width reports the desired width for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all. Note that this sets the total width of the frame, any \fB-borderwidth\fR or similar is not added. Normally \fB-width\fR should not be used if a propagating geometry manager, such as \fBgrid\fR or \fBpack\fR, is used within the frame since the geometry manager will override the width of the frame.
type Label ¶ added in v1.0.13
type Label struct {
Window
}
Label represents the Tk label widget.
func (*Label) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Label) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*Label) ActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Label) ActiveForegroundM ¶ added in v1.0.16
ActiveForegroundM is like ActiveForeground but panics on error.
func (*Label) Anchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Label) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Label) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Label) Bitmap ¶ added in v1.0.14
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*Label) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Label) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Label) Compound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*Label) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Label) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Label) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*Label) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Label) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Label) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Label) Height ¶ added in v1.0.14
Height reports a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the label's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*Label) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Label) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Label) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Label) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Label) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Label) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Label) Image ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*Label) Justify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Label) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Label) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Label) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Label) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Label) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*Label) SetActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Label) SetActiveForegroundM ¶ added in v1.0.16
SetActiveForegroundM is like ActiveForeground but panics on error
func (*Label) SetAnchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Label) SetAnchorM ¶ added in v1.0.16
SetAnchorM is like Anchor but panics on error
func (*Label) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Label) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Label) SetBitmap ¶ added in v1.0.14
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*Label) SetBitmapM ¶ added in v1.0.16
SetBitmapM is like Bitmap but panics on error
func (*Label) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Label) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Label) SetCompound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*Label) SetCompoundM ¶ added in v1.0.16
SetCompoundM is like Compound but panics on error
func (*Label) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Label) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Label) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Label) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*Label) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Label) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Label) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Label) SetHeight ¶ added in v1.0.14
Height reports a desired height for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the label's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*Label) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*Label) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Label) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Label) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Label) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Label) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Label) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Label) SetImage ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*Label) SetJustify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*Label) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*Label) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Label) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Label) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Label) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Label) SetState ¶ added in v1.0.14
State reports one of three states for the label: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the button is displayed using the \fB-foreground\fR and \fB-background\fR options. In active state the label is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. In the disabled state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*Label) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Label) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Label) SetText ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Label) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Label) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*Label) SetUnderline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*Label) SetUnderlineM ¶ added in v1.0.16
SetUnderlineM is like Underline but panics on error
func (*Label) SetWidth ¶ added in v1.0.14
Width reports a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the label's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*Label) SetWrapLength ¶ added in v1.0.14
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*Label) SetWrapLengthM ¶ added in v1.0.16
SetWrapLengthM is like WrapLength but panics on error
func (*Label) State ¶ added in v1.0.14
State reports one of three states for the label: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the button is displayed using the \fB-foreground\fR and \fB-background\fR options. In active state the label is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. In the disabled state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*Label) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Label) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Label) Text ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Label) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Label) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*Label) Underline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*Label) UnderlineM ¶ added in v1.0.16
UnderlineM is like Underline but panics on error.
func (*Label) Width ¶ added in v1.0.14
Width reports a desired width for the label. If an image or bitmap is being displayed in the label then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the label's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*Label) WrapLength ¶ added in v1.0.14
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*Label) WrapLengthM ¶ added in v1.0.16
WrapLengthM is like WrapLength but panics on error.
type LabelFrame ¶ added in v1.0.14
type LabelFrame struct {
Window
}
LabelFrame represents the Tk labelframe widget.
func (*LabelFrame) Background ¶ added in v1.0.14
func (w *LabelFrame) Background() (string, error)
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*LabelFrame) BackgroundM ¶ added in v1.0.16
func (w *LabelFrame) BackgroundM() string
BackgroundM is like Background but panics on error.
func (*LabelFrame) BorderWidth ¶ added in v1.0.14
func (w *LabelFrame) BorderWidth() (string, error)
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*LabelFrame) BorderWidthM ¶ added in v1.0.16
func (w *LabelFrame) BorderWidthM() string
BorderWidthM is like BorderWidth but panics on error.
func (*LabelFrame) Class ¶ added in v1.0.14
func (w *LabelFrame) Class() (string, error)
Class reports a class for the window. This class will be used when querying the option database for the window's other options, and it will also be used later for other purposes such as bindings. The \fB-class\fR option may not be changed with the \fBconfigure\fR widget command.
func (*LabelFrame) ClassM ¶ added in v1.0.16
func (w *LabelFrame) ClassM() string
ClassM is like Class but panics on error.
func (*LabelFrame) Colormap ¶ added in v1.0.14
func (w *LabelFrame) Colormap() (string, error)
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the same colormap as its parent. This option may not be changed with the \fBconfigure\fR widget command.
func (*LabelFrame) ColormapM ¶ added in v1.0.16
func (w *LabelFrame) ColormapM() string
ColormapM is like Colormap but panics on error.
func (*LabelFrame) Cursor ¶ added in v1.0.14
func (w *LabelFrame) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*LabelFrame) CursorM ¶ added in v1.0.16
func (w *LabelFrame) CursorM() string
CursorM is like Cursor but panics on error.
func (*LabelFrame) Font ¶ added in v1.0.14
func (w *LabelFrame) Font() (string, error)
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*LabelFrame) FontM ¶ added in v1.0.16
func (w *LabelFrame) FontM() string
FontM is like Font but panics on error.
func (*LabelFrame) Foreground ¶ added in v1.0.14
func (w *LabelFrame) Foreground() (string, error)
Foreground reports the normal foreground color to use when displaying the widget.
func (*LabelFrame) ForegroundM ¶ added in v1.0.16
func (w *LabelFrame) ForegroundM() string
ForegroundM is like Foreground but panics on error.
func (*LabelFrame) Height ¶ added in v1.0.14
func (w *LabelFrame) Height() (string, error)
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*LabelFrame) HeightM ¶ added in v1.0.16
func (w *LabelFrame) HeightM() string
HeightM is like Height but panics on error.
func (*LabelFrame) HighlightBackground ¶ added in v1.0.14
func (w *LabelFrame) HighlightBackground() (string, error)
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*LabelFrame) HighlightBackgroundM ¶ added in v1.0.16
func (w *LabelFrame) HighlightBackgroundM() string
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*LabelFrame) HighlightColor ¶ added in v1.0.14
func (w *LabelFrame) HighlightColor() (string, error)
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*LabelFrame) HighlightColorM ¶ added in v1.0.16
func (w *LabelFrame) HighlightColorM() string
HighlightColorM is like HighlightColor but panics on error.
func (*LabelFrame) HighlightThickness ¶ added in v1.0.14
func (w *LabelFrame) HighlightThickness() (string, error)
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*LabelFrame) HighlightThicknessM ¶ added in v1.0.16
func (w *LabelFrame) HighlightThicknessM() string
HighlightThicknessM is like HighlightThickness but panics on error.
func (*LabelFrame) LabelAnchor ¶ added in v1.0.14
func (w *LabelFrame) LabelAnchor() (string, error)
LabelAnchor reports where to place the label. A label is only displayed if the \fB-text\fR option is not the empty string. Valid values for this option are (listing them clockwise) \fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR, \fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR. The default value is \fBnw\fR.
func (*LabelFrame) LabelAnchorM ¶ added in v1.0.16
func (w *LabelFrame) LabelAnchorM() string
LabelAnchorM is like LabelAnchor but panics on error.
func (*LabelFrame) LabelWidget ¶ added in v1.0.14
func (w *LabelFrame) LabelWidget() (string, error)
LabelWidget reports a widget to use as label. This overrides any \fB-text\fR option. The widget must exist before being used as \fB-labelwidget\fR and if it is not a descendant of this window, it will be raised above it in the stacking order.
func (*LabelFrame) LabelWidgetM ¶ added in v1.0.16
func (w *LabelFrame) LabelWidgetM() string
LabelWidgetM is like LabelWidget but panics on error.
func (*LabelFrame) PadX ¶ added in v1.0.14
func (w *LabelFrame) PadX() (string, error)
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*LabelFrame) PadXM ¶ added in v1.0.16
func (w *LabelFrame) PadXM() string
PadXM is like PadX but panics on error.
func (*LabelFrame) PadY ¶ added in v1.0.14
func (w *LabelFrame) PadY() (string, error)
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*LabelFrame) PadYM ¶ added in v1.0.16
func (w *LabelFrame) PadYM() string
PadYM is like PadY but panics on error.
func (*LabelFrame) Relief ¶ added in v1.0.14
func (w *LabelFrame) Relief() (string, error)
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*LabelFrame) ReliefM ¶ added in v1.0.16
func (w *LabelFrame) ReliefM() string
ReliefM is like Relief but panics on error.
func (*LabelFrame) SetBackground ¶ added in v1.0.14
func (w *LabelFrame) SetBackground(value string) error
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*LabelFrame) SetBackgroundM ¶ added in v1.0.16
func (w *LabelFrame) SetBackgroundM(value string) *LabelFrame
SetBackgroundM is like Background but panics on error
func (*LabelFrame) SetBorderWidth ¶ added in v1.0.14
func (w *LabelFrame) SetBorderWidth(value string) error
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*LabelFrame) SetBorderWidthM ¶ added in v1.0.16
func (w *LabelFrame) SetBorderWidthM(value string) *LabelFrame
SetBorderWidthM is like BorderWidth but panics on error
func (*LabelFrame) SetColormap ¶ added in v1.0.14
func (w *LabelFrame) SetColormap(value string) error
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the same colormap as its parent. This option may not be changed with the \fBconfigure\fR widget command.
func (*LabelFrame) SetColormapM ¶ added in v1.0.16
func (w *LabelFrame) SetColormapM(value string) *LabelFrame
SetColormapM is like Colormap but panics on error
func (*LabelFrame) SetCursor ¶ added in v1.0.14
func (w *LabelFrame) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*LabelFrame) SetCursorM ¶ added in v1.0.16
func (w *LabelFrame) SetCursorM(value string) *LabelFrame
SetCursorM is like Cursor but panics on error
func (*LabelFrame) SetFont ¶ added in v1.0.14
func (w *LabelFrame) SetFont(value string) error
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*LabelFrame) SetFontM ¶ added in v1.0.16
func (w *LabelFrame) SetFontM(value string) *LabelFrame
SetFontM is like Font but panics on error
func (*LabelFrame) SetForeground ¶ added in v1.0.14
func (w *LabelFrame) SetForeground(value string) error
Foreground reports the normal foreground color to use when displaying the widget.
func (*LabelFrame) SetForegroundM ¶ added in v1.0.16
func (w *LabelFrame) SetForegroundM(value string) *LabelFrame
SetForegroundM is like Foreground but panics on error
func (*LabelFrame) SetHeight ¶ added in v1.0.14
func (w *LabelFrame) SetHeight(value string) error
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*LabelFrame) SetHeightM ¶ added in v1.0.16
func (w *LabelFrame) SetHeightM(value string) *LabelFrame
SetHeightM is like Height but panics on error
func (*LabelFrame) SetHighlightBackground ¶ added in v1.0.14
func (w *LabelFrame) SetHighlightBackground(value string) error
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*LabelFrame) SetHighlightBackgroundM ¶ added in v1.0.16
func (w *LabelFrame) SetHighlightBackgroundM(value string) *LabelFrame
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*LabelFrame) SetHighlightColor ¶ added in v1.0.14
func (w *LabelFrame) SetHighlightColor(value string) error
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*LabelFrame) SetHighlightColorM ¶ added in v1.0.16
func (w *LabelFrame) SetHighlightColorM(value string) *LabelFrame
SetHighlightColorM is like HighlightColor but panics on error
func (*LabelFrame) SetHighlightThickness ¶ added in v1.0.14
func (w *LabelFrame) SetHighlightThickness(value string) error
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*LabelFrame) SetHighlightThicknessM ¶ added in v1.0.16
func (w *LabelFrame) SetHighlightThicknessM(value string) *LabelFrame
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*LabelFrame) SetLabelAnchor ¶ added in v1.0.14
func (w *LabelFrame) SetLabelAnchor(value string) error
LabelAnchor reports where to place the label. A label is only displayed if the \fB-text\fR option is not the empty string. Valid values for this option are (listing them clockwise) \fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR, \fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR. The default value is \fBnw\fR.
func (*LabelFrame) SetLabelAnchorM ¶ added in v1.0.16
func (w *LabelFrame) SetLabelAnchorM(value string) *LabelFrame
SetLabelAnchorM is like LabelAnchor but panics on error
func (*LabelFrame) SetLabelWidget ¶ added in v1.0.14
func (w *LabelFrame) SetLabelWidget(value string) error
LabelWidget reports a widget to use as label. This overrides any \fB-text\fR option. The widget must exist before being used as \fB-labelwidget\fR and if it is not a descendant of this window, it will be raised above it in the stacking order.
func (*LabelFrame) SetLabelWidgetM ¶ added in v1.0.16
func (w *LabelFrame) SetLabelWidgetM(value string) *LabelFrame
SetLabelWidgetM is like LabelWidget but panics on error
func (*LabelFrame) SetPadX ¶ added in v1.0.14
func (w *LabelFrame) SetPadX(value string) error
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*LabelFrame) SetPadXM ¶ added in v1.0.16
func (w *LabelFrame) SetPadXM(value string) *LabelFrame
SetPadXM is like PadX but panics on error
func (*LabelFrame) SetPadY ¶ added in v1.0.14
func (w *LabelFrame) SetPadY(value string) error
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*LabelFrame) SetPadYM ¶ added in v1.0.16
func (w *LabelFrame) SetPadYM(value string) *LabelFrame
SetPadYM is like PadY but panics on error
func (*LabelFrame) SetRelief ¶ added in v1.0.14
func (w *LabelFrame) SetRelief(value string) error
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*LabelFrame) SetReliefM ¶ added in v1.0.16
func (w *LabelFrame) SetReliefM(value string) *LabelFrame
SetReliefM is like Relief but panics on error
func (*LabelFrame) SetTakeFocus ¶ added in v1.0.14
func (w *LabelFrame) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*LabelFrame) SetTakeFocusM ¶ added in v1.0.16
func (w *LabelFrame) SetTakeFocusM(value string) *LabelFrame
SetTakeFocusM is like TakeFocus but panics on error
func (*LabelFrame) SetText ¶ added in v1.0.14
func (w *LabelFrame) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*LabelFrame) SetTextM ¶ added in v1.0.16
func (w *LabelFrame) SetTextM(value string) *LabelFrame
SetTextM is like Text but panics on error
func (*LabelFrame) SetVisual ¶ added in v1.0.14
func (w *LabelFrame) SetVisual(value string) error
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the same visual as its parent. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
func (*LabelFrame) SetVisualM ¶ added in v1.0.16
func (w *LabelFrame) SetVisualM(value string) *LabelFrame
SetVisualM is like Visual but panics on error
func (*LabelFrame) SetWidth ¶ added in v1.0.14
func (w *LabelFrame) SetWidth(value string) error
Width reports the desired width for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*LabelFrame) SetWidthM ¶ added in v1.0.16
func (w *LabelFrame) SetWidthM(value string) *LabelFrame
SetWidthM is like Width but panics on error
func (*LabelFrame) TakeFocus ¶ added in v1.0.14
func (w *LabelFrame) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*LabelFrame) TakeFocusM ¶ added in v1.0.16
func (w *LabelFrame) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*LabelFrame) Text ¶ added in v1.0.14
func (w *LabelFrame) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*LabelFrame) TextM ¶ added in v1.0.16
func (w *LabelFrame) TextM() string
TextM is like Text but panics on error.
func (*LabelFrame) Visual ¶ added in v1.0.14
func (w *LabelFrame) Visual() (string, error)
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the same visual as its parent. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
func (*LabelFrame) VisualM ¶ added in v1.0.16
func (w *LabelFrame) VisualM() string
VisualM is like Visual but panics on error.
func (*LabelFrame) Width ¶ added in v1.0.14
func (w *LabelFrame) Width() (string, error)
Width reports the desired width for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*LabelFrame) WidthM ¶ added in v1.0.16
func (w *LabelFrame) WidthM() string
WidthM is like Width but panics on error.
type ListBox ¶ added in v1.0.14
type ListBox struct {
Window
}
ListBox represents the Tk listbox widget.
func (*ListBox) ActiveStyle ¶ added in v1.0.14
ActiveStyle reports the style in which to draw the active element. This must be one of \fBdotbox\fR (show a focus ring around the active element), \fBnone\fR (no special indication of active element) or \fBunderline\fR (underline the active element). The default is \fBunderline\fR on Windows, and \fBdotbox\fR elsewhere.
func (*ListBox) ActiveStyleM ¶ added in v1.0.16
ActiveStyleM is like ActiveStyle but panics on error.
func (*ListBox) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*ListBox) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*ListBox) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*ListBox) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*ListBox) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*ListBox) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*ListBox) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*ListBox) ExportSelection ¶ added in v1.0.14
ExportSelection reports whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*ListBox) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*ListBox) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*ListBox) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*ListBox) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*ListBox) Height ¶ added in v1.0.14
Height reports the desired height for the window, in lines. If zero or less, then the desired height for the window is made just large enough to hold all the elements in the listbox.
func (*ListBox) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*ListBox) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*ListBox) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*ListBox) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*ListBox) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*ListBox) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*ListBox) Justify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*ListBox) ListVariable ¶ added in v1.0.15
ListVariable reports the name of a global variable. The value of the variable is a list to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. Attempts to assign a variable with an invalid list value to \fB-listvariable\fR will cause an error. Attempts to unset a variable in use as a \fB-listvariable\fR will fail but will not generate an error.
func (*ListBox) ListVariableM ¶ added in v1.0.16
ListVariableM is like ListVariable but panics on error.
func (*ListBox) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*ListBox) SelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*ListBox) SelectBackgroundM ¶ added in v1.0.16
SelectBackgroundM is like SelectBackground but panics on error.
func (*ListBox) SelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*ListBox) SelectBorderWidthM ¶ added in v1.0.17
SelectBorderWidthM is like SelectBorderWidth but panics on error.
func (*ListBox) SelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*ListBox) SelectForegroundM ¶ added in v1.0.16
SelectForegroundM is like SelectForeground but panics on error.
func (*ListBox) SelectMode ¶ added in v1.0.14
SelectMode reports one of several styles for manipulating the selection. The value of the option may be arbitrary, but the default bindings expect it to be either \fBsingle\fR, \fBbrowse\fR, \fBmultiple\fR, or \fBextended\fR; the default value is \fBbrowse\fR.
func (*ListBox) SelectModeM ¶ added in v1.0.16
SelectModeM is like SelectMode but panics on error.
func (*ListBox) SetActiveStyle ¶ added in v1.0.14
ActiveStyle reports the style in which to draw the active element. This must be one of \fBdotbox\fR (show a focus ring around the active element), \fBnone\fR (no special indication of active element) or \fBunderline\fR (underline the active element). The default is \fBunderline\fR on Windows, and \fBdotbox\fR elsewhere.
func (*ListBox) SetActiveStyleM ¶ added in v1.0.16
SetActiveStyleM is like ActiveStyle but panics on error
func (*ListBox) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*ListBox) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*ListBox) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*ListBox) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*ListBox) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*ListBox) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*ListBox) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*ListBox) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*ListBox) SetExportSelection ¶ added in v1.0.14
ExportSelection specifies whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*ListBox) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*ListBox) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*ListBox) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*ListBox) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*ListBox) SetGrid ¶ added in v1.0.14
SetGrid reports a boolean value that determines whether this widget controls the resizing grid for its top-level window. This option is typically used in text widgets, where the information in the widget has a natural size (the size of a character) and it makes sense for the window's dimensions to be integral numbers of these units. These natural window sizes form a grid. If the \fB-setgrid\fR option is set to true then the widget will communicate with the window manager so that when the user interactively resizes the top-level window that contains the widget, the dimensions of the window will be displayed to the user in grid units and the window size will be constrained to integral numbers of grid units. See the section \fBGRIDDED GEOMETRY MANAGEMENT\fR in the \fBwm\fR manual entry for more details.
func (*ListBox) SetHeight ¶ added in v1.0.14
Height reports the desired height for the window, in lines. If zero or less, then the desired height for the window is made just large enough to hold all the elements in the listbox.
func (*ListBox) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*ListBox) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*ListBox) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*ListBox) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*ListBox) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*ListBox) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*ListBox) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*ListBox) SetJustify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*ListBox) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*ListBox) SetListVariable ¶ added in v1.0.15
ListVariable reports the name of a global variable. The value of the variable is a list to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. Attempts to assign a variable with an invalid list value to \fB-listvariable\fR will cause an error. Attempts to unset a variable in use as a \fB-listvariable\fR will fail but will not generate an error.
func (*ListBox) SetListVariableM ¶ added in v1.0.16
SetListVariableM is like ListVariable but panics on error
func (*ListBox) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*ListBox) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*ListBox) SetSelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*ListBox) SetSelectBackgroundM ¶ added in v1.0.16
SetSelectBackgroundM is like SelectBackground but panics on error
func (*ListBox) SetSelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*ListBox) SetSelectBorderWidthM ¶ added in v1.0.17
SetSelectBorderWidthM is like SelectBorderWidth but panics on error
func (*ListBox) SetSelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*ListBox) SetSelectForegroundM ¶ added in v1.0.16
SetSelectForegroundM is like SelectForeground but panics on error
func (*ListBox) SetSelectMode ¶ added in v1.0.14
SelectMode reports one of several styles for manipulating the selection. The value of the option may be arbitrary, but the default bindings expect it to be either \fBsingle\fR, \fBbrowse\fR, \fBmultiple\fR, or \fBextended\fR; the default value is \fBbrowse\fR.
func (*ListBox) SetSelectModeM ¶ added in v1.0.16
SetSelectModeM is like SelectMode but panics on error
func (*ListBox) SetSetGrid ¶ added in v1.0.14
SetGrid reports a boolean value that determines whether this widget controls the resizing grid for its top-level window. This option is typically used in text widgets, where the information in the widget has a natural size (the size of a character) and it makes sense for the window's dimensions to be integral numbers of these units. These natural window sizes form a grid. If the \fB-setgrid\fR option is set to true then the widget will communicate with the window manager so that when the user interactively resizes the top-level window that contains the widget, the dimensions of the window will be displayed to the user in grid units and the window size will be constrained to integral numbers of grid units. See the section \fBGRIDDED GEOMETRY MANAGEMENT\fR in the \fBwm\fR manual entry for more details.
func (*ListBox) SetSetGridM ¶ added in v1.0.16
SetSetGridM is like SetGrid but panics on error
func (*ListBox) SetState ¶ added in v1.0.14
State reports one of two states for the listbox: \fBnormal\fR or \fBdisabled\fR. If the listbox is disabled then items may not be inserted or deleted, items are drawn in the \fB-disabledforeground\fR color, and selection cannot be modified and is not shown (though selection information is retained).
func (*ListBox) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*ListBox) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*ListBox) SetWidth ¶ added in v1.0.14
Width reports the desired width for the window in characters. If the font does not have a uniform width then the width of the character TODO .QW(0) is used in translating from character units to screen units. If zero or less, then the desired width for the window is made just large enough to hold all the elements in the listbox.
func (*ListBox) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*ListBox) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*ListBox) SetYScrollCommand ¶ added in v1.0.17
YScrollCommand specifies the prefix for a command used to communicate with vertical scrollbars. This option is treated in the same way as the \fB-xscrollcommand\fR option, except that it is used for vertical scrollbars and is provided by widgets that support vertical scrolling. See the description of \fB-xscrollcommand\fR for details on how this option is used.
func (*ListBox) SetYScrollCommandM ¶ added in v1.0.17
SetYScrollCommandM is like YScrollCommand but panics on error
func (*ListBox) State ¶ added in v1.0.14
State reports one of two states for the listbox: \fBnormal\fR or \fBdisabled\fR. If the listbox is disabled then items may not be inserted or deleted, items are drawn in the \fB-disabledforeground\fR color, and selection cannot be modified and is not shown (though selection information is retained).
func (*ListBox) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*ListBox) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*ListBox) Width ¶ added in v1.0.14
Width reports the desired width for the window in characters. If the font does not have a uniform width then the width of the character TODO .QW(0) is used in translating from character units to screen units. If zero or less, then the desired width for the window is made just large enough to hold all the elements in the listbox.
type Menu ¶ added in v1.0.13
type Menu struct {
Window
}
Menu represents the Tk menu widget.
func (*Menu) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Menu) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*Menu) ActiveBorderWidth ¶ added in v1.0.14
ActiveBorderWidth reports a non-negative value indicating the width of the 3-D border drawn around active elements. See above for definition of active elements. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. This option is typically only available in widgets displaying more than one element at a time (e.g. menus but not buttons).
func (*Menu) ActiveBorderWidthM ¶ added in v1.0.16
ActiveBorderWidthM is like ActiveBorderWidth but panics on error.
func (*Menu) ActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Menu) ActiveForegroundM ¶ added in v1.0.16
ActiveForegroundM is like ActiveForeground but panics on error.
func (*Menu) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Menu) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Menu) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Menu) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Menu) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Menu) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Menu) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*Menu) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Menu) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Menu) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Menu) PostCommand ¶ added in v1.0.14
If this option is specified then it provides a Tcl command to execute each time the menu is posted. The command is invoked by the \fBpost\fR widget command before posting the menu. Note that in Tk 8.0 on Macintosh and Windows, all post-commands in a system of menus are executed before any of those menus are posted. This is due to the limitations in the individual platforms' menu managers.
func (*Menu) PostCommandM ¶ added in v1.0.16
PostCommandM is like PostCommand but panics on error.
func (*Menu) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Menu) SelectColor ¶ added in v1.0.14
For menu entries that are check buttons or radio buttons, this option specifies the color to display in the indicator when the check button or radio button is selected.
func (*Menu) SelectColorM ¶ added in v1.0.16
SelectColorM is like SelectColor but panics on error.
func (*Menu) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Menu) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*Menu) SetActiveBorderWidth ¶ added in v1.0.14
ActiveBorderWidth reports a non-negative value indicating the width of the 3-D border drawn around active elements. See above for definition of active elements. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. This option is typically only available in widgets displaying more than one element at a time (e.g. menus but not buttons).
func (*Menu) SetActiveBorderWidthM ¶ added in v1.0.16
SetActiveBorderWidthM is like ActiveBorderWidth but panics on error
func (*Menu) SetActiveForeground ¶ added in v1.0.14
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*Menu) SetActiveForegroundM ¶ added in v1.0.16
SetActiveForegroundM is like ActiveForeground but panics on error
func (*Menu) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Menu) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Menu) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Menu) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Menu) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Menu) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Menu) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*Menu) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*Menu) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Menu) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Menu) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Menu) SetPostCommand ¶ added in v1.0.14
If this option is specified then it provides a Tcl command to execute each time the menu is posted. The command is invoked by the \fBpost\fR widget command before posting the menu. Note that in Tk 8.0 on Macintosh and Windows, all post-commands in a system of menus are executed before any of those menus are posted. This is due to the limitations in the individual platforms' menu managers.
func (*Menu) SetPostCommandM ¶ added in v1.0.16
SetPostCommandM is like PostCommand but panics on error
func (*Menu) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Menu) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Menu) SetSelectColor ¶ added in v1.0.14
For menu entries that are check buttons or radio buttons, this option specifies the color to display in the indicator when the check button or radio button is selected.
func (*Menu) SetSelectColorM ¶ added in v1.0.16
SetSelectColorM is like SelectColor but panics on error
func (*Menu) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Menu) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Menu) SetTearOff ¶ added in v1.0.14
This option must have a proper boolean value, which specifies whether or not the menu should include a tear-off entry at the top. If so, it will exist as entry 0 of the menu and the other entries will number starting at 1. The default menu bindings arrange for the menu to be torn off when the tear-off entry is invoked. This option is ignored under Aqua/MacOS, where menus cannot be torn off.
func (*Menu) SetTearOffCommand ¶ added in v1.0.14
If this option has a non-empty value, then it specifies a Tcl command to invoke whenever the menu is torn off. The actual command will consist of the value of this option, followed by a space, followed by the name of the menu window, followed by a space, followed by the name of the name of the torn off menu window. For example, if the option's value is TODO .QW("\fBa b\fR") and menu \fB.x.y\fR is torn off to create a new menu \fB.x.tearoff1\fR, then the command TODO .QW("\fBa b .x.y .x.tearoff1\fR") will be invoked. This option is ignored under Aqua/MacOS, where menus cannot be torn off.
func (*Menu) SetTearOffCommandM ¶ added in v1.0.16
SetTearOffCommandM is like TearOffCommand but panics on error
func (*Menu) SetTearOffM ¶ added in v1.0.16
SetTearOffM is like TearOff but panics on error
func (*Menu) SetTitle ¶ added in v1.0.14
The string will be used to title the window created when this menu is torn off. If the title is NULL, then the window will have the title of the menubutton or the text of the cascade item from which this menu was invoked.
func (*Menu) SetType ¶ added in v1.0.14
This option can be one of \fBmenubar\fR, \fBtearoff\fR, or \fBnormal\fR, and is set when the menu is created. While the string returned by the configuration database will change if this option is changed, this does not affect the menu widget's behavior. This is used by the cloning mechanism and is not normally set outside of the Tk library.
func (*Menu) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Menu) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Menu) TearOff ¶ added in v1.0.14
This option must have a proper boolean value, which specifies whether or not the menu should include a tear-off entry at the top. If so, it will exist as entry 0 of the menu and the other entries will number starting at 1. The default menu bindings arrange for the menu to be torn off when the tear-off entry is invoked. This option is ignored under Aqua/MacOS, where menus cannot be torn off.
func (*Menu) TearOffCommand ¶ added in v1.0.14
If this option has a non-empty value, then it specifies a Tcl command to invoke whenever the menu is torn off. The actual command will consist of the value of this option, followed by a space, followed by the name of the menu window, followed by a space, followed by the name of the name of the torn off menu window. For example, if the option's value is TODO .QW("\fBa b\fR") and menu \fB.x.y\fR is torn off to create a new menu \fB.x.tearoff1\fR, then the command TODO .QW("\fBa b .x.y .x.tearoff1\fR") will be invoked. This option is ignored under Aqua/MacOS, where menus cannot be torn off.
func (*Menu) TearOffCommandM ¶ added in v1.0.16
TearOffCommandM is like TearOffCommand but panics on error.
func (*Menu) Title ¶ added in v1.0.14
The string will be used to title the window created when this menu is torn off. If the title is NULL, then the window will have the title of the menubutton or the text of the cascade item from which this menu was invoked.
func (*Menu) Type ¶ added in v1.0.14
This option can be one of \fBmenubar\fR, \fBtearoff\fR, or \fBnormal\fR, and is set when the menu is created. While the string returned by the configuration database will change if this option is changed, this does not affect the menu widget's behavior. This is used by the cloning mechanism and is not normally set outside of the Tk library.
type MenuButton ¶ added in v1.0.14
type MenuButton struct {
Window
}
MenuButton represents the Tk menubutton widget.
func (*MenuButton) ActiveBackground ¶ added in v1.0.14
func (w *MenuButton) ActiveBackground() (string, error)
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*MenuButton) ActiveBackgroundM ¶ added in v1.0.16
func (w *MenuButton) ActiveBackgroundM() string
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*MenuButton) ActiveForeground ¶ added in v1.0.14
func (w *MenuButton) ActiveForeground() (string, error)
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*MenuButton) ActiveForegroundM ¶ added in v1.0.16
func (w *MenuButton) ActiveForegroundM() string
ActiveForegroundM is like ActiveForeground but panics on error.
func (*MenuButton) Anchor ¶ added in v1.0.14
func (w *MenuButton) Anchor() (string, error)
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*MenuButton) AnchorM ¶ added in v1.0.16
func (w *MenuButton) AnchorM() string
AnchorM is like Anchor but panics on error.
func (*MenuButton) Background ¶ added in v1.0.14
func (w *MenuButton) Background() (string, error)
Background reports the normal background color to use when displaying the widget.
func (*MenuButton) BackgroundM ¶ added in v1.0.16
func (w *MenuButton) BackgroundM() string
BackgroundM is like Background but panics on error.
func (*MenuButton) Bitmap ¶ added in v1.0.14
func (w *MenuButton) Bitmap() (string, error)
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*MenuButton) BitmapM ¶ added in v1.0.16
func (w *MenuButton) BitmapM() string
BitmapM is like Bitmap but panics on error.
func (*MenuButton) BorderWidth ¶ added in v1.0.14
func (w *MenuButton) BorderWidth() (string, error)
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*MenuButton) BorderWidthM ¶ added in v1.0.16
func (w *MenuButton) BorderWidthM() string
BorderWidthM is like BorderWidth but panics on error.
func (*MenuButton) Compound ¶ added in v1.0.14
func (w *MenuButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*MenuButton) CompoundM ¶ added in v1.0.16
func (w *MenuButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*MenuButton) Cursor ¶ added in v1.0.14
func (w *MenuButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*MenuButton) CursorM ¶ added in v1.0.16
func (w *MenuButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*MenuButton) Direction ¶ added in v1.0.14
func (w *MenuButton) Direction() (string, error)
Direction reports where the menu is going to be popup up. \fBabove\fR tries to pop the menu above the menubutton. \fBbelow\fR tries to pop the menu below the menubutton. \fBleft\fR tries to pop the menu to the left of the menubutton. \fBright\fR tries to pop the menu to the right of the menu button. \fBflush\fR pops the menu directly over the menubutton. In the case of \fBabove\fR or \fBbelow\fR, the direction will be reversed if the menu would show offscreen.
func (*MenuButton) DirectionM ¶ added in v1.0.16
func (w *MenuButton) DirectionM() string
DirectionM is like Direction but panics on error.
func (*MenuButton) DisabledForeground ¶ added in v1.0.14
func (w *MenuButton) DisabledForeground() (string, error)
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*MenuButton) DisabledForegroundM ¶ added in v1.0.16
func (w *MenuButton) DisabledForegroundM() string
DisabledForegroundM is like DisabledForeground but panics on error.
func (*MenuButton) Font ¶ added in v1.0.14
func (w *MenuButton) Font() (string, error)
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*MenuButton) FontM ¶ added in v1.0.16
func (w *MenuButton) FontM() string
FontM is like Font but panics on error.
func (*MenuButton) Foreground ¶ added in v1.0.14
func (w *MenuButton) Foreground() (string, error)
Foreground reports the normal foreground color to use when displaying the widget.
func (*MenuButton) ForegroundM ¶ added in v1.0.16
func (w *MenuButton) ForegroundM() string
ForegroundM is like Foreground but panics on error.
func (*MenuButton) Height ¶ added in v1.0.14
func (w *MenuButton) Height() (string, error)
Height reports a desired height for the menubutton. If an image or bitmap is being displayed in the menubutton then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the menubutton's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*MenuButton) HeightM ¶ added in v1.0.16
func (w *MenuButton) HeightM() string
HeightM is like Height but panics on error.
func (*MenuButton) HighlightBackground ¶ added in v1.0.14
func (w *MenuButton) HighlightBackground() (string, error)
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*MenuButton) HighlightBackgroundM ¶ added in v1.0.16
func (w *MenuButton) HighlightBackgroundM() string
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*MenuButton) HighlightColor ¶ added in v1.0.14
func (w *MenuButton) HighlightColor() (string, error)
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*MenuButton) HighlightColorM ¶ added in v1.0.16
func (w *MenuButton) HighlightColorM() string
HighlightColorM is like HighlightColor but panics on error.
func (*MenuButton) HighlightThickness ¶ added in v1.0.14
func (w *MenuButton) HighlightThickness() (string, error)
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*MenuButton) HighlightThicknessM ¶ added in v1.0.16
func (w *MenuButton) HighlightThicknessM() string
HighlightThicknessM is like HighlightThickness but panics on error.
func (*MenuButton) Image ¶ added in v1.0.14
func (w *MenuButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*MenuButton) ImageM ¶ added in v1.0.16
func (w *MenuButton) ImageM() string
ImageM is like Image but panics on error.
func (*MenuButton) Indicatoron ¶ added in v1.0.14
func (w *MenuButton) Indicatoron() (string, error)
The value must be a proper boolean value. If it is true then a small indicator rectangle will be displayed on the right side of the menubutton and the default menu bindings will treat this as an option menubutton. If false then no indicator will be displayed.
func (*MenuButton) IndicatoronM ¶ added in v1.0.16
func (w *MenuButton) IndicatoronM() string
IndicatoronM is like Indicatoron but panics on error.
func (*MenuButton) Justify ¶ added in v1.0.14
func (w *MenuButton) Justify() (string, error)
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*MenuButton) JustifyM ¶ added in v1.0.16
func (w *MenuButton) JustifyM() string
JustifyM is like Justify but panics on error.
func (*MenuButton) Menu ¶ added in v1.0.14
func (w *MenuButton) Menu() (string, error)
Menu reports the path name of the menu associated with this menubutton. The menu must be a child of the menubutton.
func (*MenuButton) MenuM ¶ added in v1.0.16
func (w *MenuButton) MenuM() string
MenuM is like Menu but panics on error.
func (*MenuButton) PadX ¶ added in v1.0.14
func (w *MenuButton) PadX() (string, error)
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*MenuButton) PadXM ¶ added in v1.0.16
func (w *MenuButton) PadXM() string
PadXM is like PadX but panics on error.
func (*MenuButton) PadY ¶ added in v1.0.14
func (w *MenuButton) PadY() (string, error)
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*MenuButton) PadYM ¶ added in v1.0.16
func (w *MenuButton) PadYM() string
PadYM is like PadY but panics on error.
func (*MenuButton) Relief ¶ added in v1.0.14
func (w *MenuButton) Relief() (string, error)
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*MenuButton) ReliefM ¶ added in v1.0.16
func (w *MenuButton) ReliefM() string
ReliefM is like Relief but panics on error.
func (*MenuButton) SetActiveBackground ¶ added in v1.0.14
func (w *MenuButton) SetActiveBackground(value string) error
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*MenuButton) SetActiveBackgroundM ¶ added in v1.0.16
func (w *MenuButton) SetActiveBackgroundM(value string) *MenuButton
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*MenuButton) SetActiveForeground ¶ added in v1.0.14
func (w *MenuButton) SetActiveForeground(value string) error
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*MenuButton) SetActiveForegroundM ¶ added in v1.0.16
func (w *MenuButton) SetActiveForegroundM(value string) *MenuButton
SetActiveForegroundM is like ActiveForeground but panics on error
func (*MenuButton) SetAnchor ¶ added in v1.0.14
func (w *MenuButton) SetAnchor(value string) error
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*MenuButton) SetAnchorM ¶ added in v1.0.16
func (w *MenuButton) SetAnchorM(value string) *MenuButton
SetAnchorM is like Anchor but panics on error
func (*MenuButton) SetBackground ¶ added in v1.0.14
func (w *MenuButton) SetBackground(value string) error
Background reports the normal background color to use when displaying the widget.
func (*MenuButton) SetBackgroundM ¶ added in v1.0.16
func (w *MenuButton) SetBackgroundM(value string) *MenuButton
SetBackgroundM is like Background but panics on error
func (*MenuButton) SetBitmap ¶ added in v1.0.14
func (w *MenuButton) SetBitmap(value string) error
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*MenuButton) SetBitmapM ¶ added in v1.0.16
func (w *MenuButton) SetBitmapM(value string) *MenuButton
SetBitmapM is like Bitmap but panics on error
func (*MenuButton) SetBorderWidth ¶ added in v1.0.14
func (w *MenuButton) SetBorderWidth(value string) error
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*MenuButton) SetBorderWidthM ¶ added in v1.0.16
func (w *MenuButton) SetBorderWidthM(value string) *MenuButton
SetBorderWidthM is like BorderWidth but panics on error
func (*MenuButton) SetCompound ¶ added in v1.0.14
func (w *MenuButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*MenuButton) SetCompoundM ¶ added in v1.0.16
func (w *MenuButton) SetCompoundM(value string) *MenuButton
SetCompoundM is like Compound but panics on error
func (*MenuButton) SetCursor ¶ added in v1.0.14
func (w *MenuButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*MenuButton) SetCursorM ¶ added in v1.0.16
func (w *MenuButton) SetCursorM(value string) *MenuButton
SetCursorM is like Cursor but panics on error
func (*MenuButton) SetDirection ¶ added in v1.0.14
func (w *MenuButton) SetDirection(value string) error
Direction reports where the menu is going to be popup up. \fBabove\fR tries to pop the menu above the menubutton. \fBbelow\fR tries to pop the menu below the menubutton. \fBleft\fR tries to pop the menu to the left of the menubutton. \fBright\fR tries to pop the menu to the right of the menu button. \fBflush\fR pops the menu directly over the menubutton. In the case of \fBabove\fR or \fBbelow\fR, the direction will be reversed if the menu would show offscreen.
func (*MenuButton) SetDirectionM ¶ added in v1.0.16
func (w *MenuButton) SetDirectionM(value string) *MenuButton
SetDirectionM is like Direction but panics on error
func (*MenuButton) SetDisabledForeground ¶ added in v1.0.14
func (w *MenuButton) SetDisabledForeground(value string) error
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*MenuButton) SetDisabledForegroundM ¶ added in v1.0.16
func (w *MenuButton) SetDisabledForegroundM(value string) *MenuButton
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*MenuButton) SetFont ¶ added in v1.0.14
func (w *MenuButton) SetFont(value string) error
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*MenuButton) SetFontM ¶ added in v1.0.16
func (w *MenuButton) SetFontM(value string) *MenuButton
SetFontM is like Font but panics on error
func (*MenuButton) SetForeground ¶ added in v1.0.14
func (w *MenuButton) SetForeground(value string) error
Foreground reports the normal foreground color to use when displaying the widget.
func (*MenuButton) SetForegroundM ¶ added in v1.0.16
func (w *MenuButton) SetForegroundM(value string) *MenuButton
SetForegroundM is like Foreground but panics on error
func (*MenuButton) SetHeight ¶ added in v1.0.14
func (w *MenuButton) SetHeight(value string) error
Height reports a desired height for the menubutton. If an image or bitmap is being displayed in the menubutton then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the menubutton's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*MenuButton) SetHeightM ¶ added in v1.0.16
func (w *MenuButton) SetHeightM(value string) *MenuButton
SetHeightM is like Height but panics on error
func (*MenuButton) SetHighlightBackground ¶ added in v1.0.14
func (w *MenuButton) SetHighlightBackground(value string) error
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*MenuButton) SetHighlightBackgroundM ¶ added in v1.0.16
func (w *MenuButton) SetHighlightBackgroundM(value string) *MenuButton
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*MenuButton) SetHighlightColor ¶ added in v1.0.14
func (w *MenuButton) SetHighlightColor(value string) error
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*MenuButton) SetHighlightColorM ¶ added in v1.0.16
func (w *MenuButton) SetHighlightColorM(value string) *MenuButton
SetHighlightColorM is like HighlightColor but panics on error
func (*MenuButton) SetHighlightThickness ¶ added in v1.0.14
func (w *MenuButton) SetHighlightThickness(value string) error
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*MenuButton) SetHighlightThicknessM ¶ added in v1.0.16
func (w *MenuButton) SetHighlightThicknessM(value string) *MenuButton
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*MenuButton) SetImage ¶ added in v1.0.14
func (w *MenuButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*MenuButton) SetImageM ¶ added in v1.0.16
func (w *MenuButton) SetImageM(value string) *MenuButton
SetImageM is like Image but panics on error
func (*MenuButton) SetIndicatoron ¶ added in v1.0.14
func (w *MenuButton) SetIndicatoron(value string) error
The value must be a proper boolean value. If it is true then a small indicator rectangle will be displayed on the right side of the menubutton and the default menu bindings will treat this as an option menubutton. If false then no indicator will be displayed.
func (*MenuButton) SetIndicatoronM ¶ added in v1.0.16
func (w *MenuButton) SetIndicatoronM(value string) *MenuButton
SetIndicatoronM is like Indicatoron but panics on error
func (*MenuButton) SetJustify ¶ added in v1.0.14
func (w *MenuButton) SetJustify(value string) error
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*MenuButton) SetJustifyM ¶ added in v1.0.16
func (w *MenuButton) SetJustifyM(value string) *MenuButton
SetJustifyM is like Justify but panics on error
func (*MenuButton) SetMenu ¶ added in v1.0.14
func (w *MenuButton) SetMenu(value string) error
Menu reports the path name of the menu associated with this menubutton. The menu must be a child of the menubutton.
func (*MenuButton) SetMenuM ¶ added in v1.0.16
func (w *MenuButton) SetMenuM(value string) *MenuButton
SetMenuM is like Menu but panics on error
func (*MenuButton) SetPadX ¶ added in v1.0.14
func (w *MenuButton) SetPadX(value string) error
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*MenuButton) SetPadXM ¶ added in v1.0.16
func (w *MenuButton) SetPadXM(value string) *MenuButton
SetPadXM is like PadX but panics on error
func (*MenuButton) SetPadY ¶ added in v1.0.14
func (w *MenuButton) SetPadY(value string) error
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*MenuButton) SetPadYM ¶ added in v1.0.16
func (w *MenuButton) SetPadYM(value string) *MenuButton
SetPadYM is like PadY but panics on error
func (*MenuButton) SetRelief ¶ added in v1.0.14
func (w *MenuButton) SetRelief(value string) error
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*MenuButton) SetReliefM ¶ added in v1.0.16
func (w *MenuButton) SetReliefM(value string) *MenuButton
SetReliefM is like Relief but panics on error
func (*MenuButton) SetState ¶ added in v1.0.14
func (w *MenuButton) SetState(value string) error
State reports one of three states for the menubutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the menubutton is displayed using the \fBforeground\fR and \fBbackground\fR options. The active state is typically used when the pointer is over the menubutton. In active state the menubutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the menubutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*MenuButton) SetStateM ¶ added in v1.0.16
func (w *MenuButton) SetStateM(value string) *MenuButton
SetStateM is like State but panics on error
func (*MenuButton) SetTakeFocus ¶ added in v1.0.14
func (w *MenuButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*MenuButton) SetTakeFocusM ¶ added in v1.0.16
func (w *MenuButton) SetTakeFocusM(value string) *MenuButton
SetTakeFocusM is like TakeFocus but panics on error
func (*MenuButton) SetText ¶ added in v1.0.14
func (w *MenuButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*MenuButton) SetTextM ¶ added in v1.0.16
func (w *MenuButton) SetTextM(value string) *MenuButton
SetTextM is like Text but panics on error
func (*MenuButton) SetTextVariable ¶ added in v1.0.15
func (w *MenuButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*MenuButton) SetTextVariableM ¶ added in v1.0.16
func (w *MenuButton) SetTextVariableM(value string) *MenuButton
SetTextVariableM is like TextVariable but panics on error
func (*MenuButton) SetUnderline ¶ added in v1.0.14
func (w *MenuButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*MenuButton) SetUnderlineM ¶ added in v1.0.16
func (w *MenuButton) SetUnderlineM(value string) *MenuButton
SetUnderlineM is like Underline but panics on error
func (*MenuButton) SetWidth ¶ added in v1.0.14
func (w *MenuButton) SetWidth(value string) error
Width reports a desired width for the menubutton. If an image or bitmap is being displayed in the menubutton then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the menubutton's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*MenuButton) SetWidthM ¶ added in v1.0.16
func (w *MenuButton) SetWidthM(value string) *MenuButton
SetWidthM is like Width but panics on error
func (*MenuButton) SetWrapLength ¶ added in v1.0.14
func (w *MenuButton) SetWrapLength(value string) error
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*MenuButton) SetWrapLengthM ¶ added in v1.0.16
func (w *MenuButton) SetWrapLengthM(value string) *MenuButton
SetWrapLengthM is like WrapLength but panics on error
func (*MenuButton) State ¶ added in v1.0.14
func (w *MenuButton) State() (string, error)
State reports one of three states for the menubutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the menubutton is displayed using the \fBforeground\fR and \fBbackground\fR options. The active state is typically used when the pointer is over the menubutton. In active state the menubutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the menubutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the button is displayed.
func (*MenuButton) StateM ¶ added in v1.0.16
func (w *MenuButton) StateM() string
StateM is like State but panics on error.
func (*MenuButton) TakeFocus ¶ added in v1.0.14
func (w *MenuButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*MenuButton) TakeFocusM ¶ added in v1.0.16
func (w *MenuButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*MenuButton) Text ¶ added in v1.0.14
func (w *MenuButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*MenuButton) TextM ¶ added in v1.0.16
func (w *MenuButton) TextM() string
TextM is like Text but panics on error.
func (*MenuButton) TextVariable ¶ added in v1.0.15
func (w *MenuButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*MenuButton) TextVariableM ¶ added in v1.0.16
func (w *MenuButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*MenuButton) Underline ¶ added in v1.0.14
func (w *MenuButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*MenuButton) UnderlineM ¶ added in v1.0.16
func (w *MenuButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*MenuButton) Width ¶ added in v1.0.14
func (w *MenuButton) Width() (string, error)
Width reports a desired width for the menubutton. If an image or bitmap is being displayed in the menubutton then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the menubutton's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*MenuButton) WidthM ¶ added in v1.0.16
func (w *MenuButton) WidthM() string
WidthM is like Width but panics on error.
func (*MenuButton) WrapLength ¶ added in v1.0.14
func (w *MenuButton) WrapLength() (string, error)
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*MenuButton) WrapLengthM ¶ added in v1.0.16
func (w *MenuButton) WrapLengthM() string
WrapLengthM is like WrapLength but panics on error.
type Message ¶ added in v1.0.13
type Message struct {
Window
}
Message represents the Tk message widget.
func (*Message) Anchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Message) Aspect ¶ added in v1.0.14
Aspect reports a non-negative integer value indicating desired aspect ratio for the text. The aspect ratio is specified as 100*width/height. 100 means the text should be as wide as it is tall, 200 means the text should be twice as wide as it is tall, 50 means the text should be twice as tall as it is wide, and so on. Used to choose line length for text if \fB-width\fR option is not specified. Defaults to 150.
func (*Message) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Message) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Message) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Message) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Message) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Message) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Message) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Message) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Message) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Message) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Message) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Message) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Message) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Message) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Message) Justify ¶ added in v1.0.14
Justify reports how to justify lines of text. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. Defaults to \fBleft\fR. This option works together with the \fB-anchor\fR, \fB-aspect\fR, \fB-padx\fR, \fB-pady\fR, and \fB-width\fR options to provide a variety of arrangements of the text within the window. The \fB-aspect\fR and \fB-width\fR options determine the amount of screen space needed to display the text. The \fB-anchor\fR, \fB-padx\fR, and \fB-pady\fR options determine where this rectangular area is displayed within the widget's window, and the \fB-justify\fR option determines how each line is displayed within that rectangular region. For example, suppose \fB-anchor\fR is \fBe\fR and \fB-justify\fR is \fBleft\fR, and that the message window is much larger than needed for the text. The text will be displayed so that the left edges of all the lines line up and the right edge of the longest line is \fB-padx\fR from the right side of the window; the entire text block will be centered in the vertical span of the window.
func (*Message) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Message) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Message) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Message) SetAnchor ¶ added in v1.0.14
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*Message) SetAnchorM ¶ added in v1.0.16
SetAnchorM is like Anchor but panics on error
func (*Message) SetAspect ¶ added in v1.0.14
Aspect reports a non-negative integer value indicating desired aspect ratio for the text. The aspect ratio is specified as 100*width/height. 100 means the text should be as wide as it is tall, 200 means the text should be twice as wide as it is tall, 50 means the text should be twice as tall as it is wide, and so on. Used to choose line length for text if \fB-width\fR option is not specified. Defaults to 150.
func (*Message) SetAspectM ¶ added in v1.0.16
SetAspectM is like Aspect but panics on error
func (*Message) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Message) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Message) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Message) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Message) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Message) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Message) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Message) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Message) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Message) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Message) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Message) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Message) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Message) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Message) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Message) SetJustify ¶ added in v1.0.14
Justify reports how to justify lines of text. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. Defaults to \fBleft\fR. This option works together with the \fB-anchor\fR, \fB-aspect\fR, \fB-padx\fR, \fB-pady\fR, and \fB-width\fR options to provide a variety of arrangements of the text within the window. The \fB-aspect\fR and \fB-width\fR options determine the amount of screen space needed to display the text. The \fB-anchor\fR, \fB-padx\fR, and \fB-pady\fR options determine where this rectangular area is displayed within the widget's window, and the \fB-justify\fR option determines how each line is displayed within that rectangular region. For example, suppose \fB-anchor\fR is \fBe\fR and \fB-justify\fR is \fBleft\fR, and that the message window is much larger than needed for the text. The text will be displayed so that the left edges of all the lines line up and the right edge of the longest line is \fB-padx\fR from the right side of the window; the entire text block will be centered in the vertical span of the window.
func (*Message) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*Message) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Message) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Message) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Message) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Message) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Message) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Message) SetText ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Message) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Message) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*Message) SetWidth ¶ added in v1.0.14
Width reports the length of lines in the window. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If this option has a value greater than zero then the \fB-aspect\fR option is ignored and the \fB-width\fR option determines the line length. If this option has a value less than or equal to zero, then the \fB-aspect\fR option determines the line length.
func (*Message) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Message) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Message) Text ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Message) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*Message) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*Message) Width ¶ added in v1.0.14
Width reports the length of lines in the window. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If this option has a value greater than zero then the \fB-aspect\fR option is ignored and the \fB-width\fR option determines the line length. If this option has a value less than or equal to zero, then the \fB-aspect\fR option determines the line length.
type PanedWindow ¶ added in v1.0.14
type PanedWindow struct {
Window
}
PanedWindow represents the Tk panedwindow widget.
func (*PanedWindow) Background ¶ added in v1.0.14
func (w *PanedWindow) Background() (string, error)
Background reports the normal background color to use when displaying the widget.
func (*PanedWindow) BackgroundM ¶ added in v1.0.16
func (w *PanedWindow) BackgroundM() string
BackgroundM is like Background but panics on error.
func (*PanedWindow) BorderWidth ¶ added in v1.0.14
func (w *PanedWindow) BorderWidth() (string, error)
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*PanedWindow) BorderWidthM ¶ added in v1.0.16
func (w *PanedWindow) BorderWidthM() string
BorderWidthM is like BorderWidth but panics on error.
func (*PanedWindow) Cursor ¶ added in v1.0.14
func (w *PanedWindow) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*PanedWindow) CursorM ¶ added in v1.0.16
func (w *PanedWindow) CursorM() string
CursorM is like Cursor but panics on error.
func (*PanedWindow) HandlePad ¶ added in v1.0.14
func (w *PanedWindow) HandlePad() (string, error)
When sash handles are drawn, specifies the distance from the top or left end of the sash (depending on the orientation of the widget) at which to draw the handle. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) HandlePadM ¶ added in v1.0.16
func (w *PanedWindow) HandlePadM() string
HandlePadM is like HandlePad but panics on error.
func (*PanedWindow) HandleSize ¶ added in v1.0.14
func (w *PanedWindow) HandleSize() (string, error)
HandleSize reports the side length of a sash handle. Handles are always drawn as squares. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) HandleSizeM ¶ added in v1.0.16
func (w *PanedWindow) HandleSizeM() string
HandleSizeM is like HandleSize but panics on error.
func (*PanedWindow) Height ¶ added in v1.0.14
func (w *PanedWindow) Height() (string, error)
Height reports a desired height for the overall panedwindow widget. May be any value accepted by \fBTk_GetPixels\fR. If an empty string, the widget will be made high enough to allow all contained widgets to have their natural height.
func (*PanedWindow) HeightM ¶ added in v1.0.16
func (w *PanedWindow) HeightM() string
HeightM is like Height but panics on error.
func (*PanedWindow) OpaqueResize ¶ added in v1.0.14
func (w *PanedWindow) OpaqueResize() (string, error)
OpaqueResize reports whether panes should be resized as a sash is moved (true), or if resizing should be deferred until the sash is placed (false). In the latter case, a TODO .QW(ghost) version of the sash is displayed during the resizing to show where the panes will be resized to when releasing the mouse button. This TODO .QW(ghost) version of the sash is the proxy. It's rendering can be configured using the \fB-proxybackground\fR, \fB-proxyborderwidth\fR and \fB-proxyrelief\fR options.
func (*PanedWindow) OpaqueResizeM ¶ added in v1.0.16
func (w *PanedWindow) OpaqueResizeM() string
OpaqueResizeM is like OpaqueResize but panics on error.
func (*PanedWindow) Orient ¶ added in v1.0.14
func (w *PanedWindow) Orient() (string, error)
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*PanedWindow) OrientM ¶ added in v1.0.16
func (w *PanedWindow) OrientM() string
OrientM is like Orient but panics on error.
func (*PanedWindow) ProxyBackground ¶ added in v1.0.14
func (w *PanedWindow) ProxyBackground() (string, error)
Background color to use when drawing the proxy. If an empty string, the value of the \fB-background\fR option will be used.
func (*PanedWindow) ProxyBackgroundM ¶ added in v1.0.16
func (w *PanedWindow) ProxyBackgroundM() string
ProxyBackgroundM is like ProxyBackground but panics on error.
func (*PanedWindow) ProxyBorderWidth ¶ added in v1.0.14
func (w *PanedWindow) ProxyBorderWidth() (string, error)
ProxyBorderWidth reports the borderwidth of the proxy. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) ProxyBorderWidthM ¶ added in v1.0.16
func (w *PanedWindow) ProxyBorderWidthM() string
ProxyBorderWidthM is like ProxyBorderWidth but panics on error.
func (*PanedWindow) ProxyRelief ¶ added in v1.0.14
func (w *PanedWindow) ProxyRelief() (string, error)
Relief to use when drawing the proxy. May be any of the standard Tk relief values. If an empty string, the value of the \fB-sashrelief\fR option will be used.
func (*PanedWindow) ProxyReliefM ¶ added in v1.0.16
func (w *PanedWindow) ProxyReliefM() string
ProxyReliefM is like ProxyRelief but panics on error.
func (*PanedWindow) Relief ¶ added in v1.0.14
func (w *PanedWindow) Relief() (string, error)
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*PanedWindow) ReliefM ¶ added in v1.0.16
func (w *PanedWindow) ReliefM() string
ReliefM is like Relief but panics on error.
func (*PanedWindow) SashCursor ¶ added in v1.0.14
func (w *PanedWindow) SashCursor() (string, error)
Mouse cursor to use when over a sash. If null, \fBsb_h_double_arrow\fR will be used for horizontal panedwindows, and \fBsb_v_double_arrow\fR will be used for vertical panedwindows.
func (*PanedWindow) SashCursorM ¶ added in v1.0.16
func (w *PanedWindow) SashCursorM() string
SashCursorM is like SashCursor but panics on error.
func (*PanedWindow) SashPad ¶ added in v1.0.14
func (w *PanedWindow) SashPad() (string, error)
SashPad reports the amount of padding to leave of each side of a sash. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SashPadM ¶ added in v1.0.16
func (w *PanedWindow) SashPadM() string
SashPadM is like SashPad but panics on error.
func (*PanedWindow) SashRelief ¶ added in v1.0.14
func (w *PanedWindow) SashRelief() (string, error)
Relief to use when drawing a sash. May be any of the standard Tk relief values.
func (*PanedWindow) SashReliefM ¶ added in v1.0.16
func (w *PanedWindow) SashReliefM() string
SashReliefM is like SashRelief but panics on error.
func (*PanedWindow) SashWidth ¶ added in v1.0.14
func (w *PanedWindow) SashWidth() (string, error)
SashWidth reports the width of each sash. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SashWidthM ¶ added in v1.0.16
func (w *PanedWindow) SashWidthM() string
SashWidthM is like SashWidth but panics on error.
func (*PanedWindow) SetBackground ¶ added in v1.0.14
func (w *PanedWindow) SetBackground(value string) error
Background reports the normal background color to use when displaying the widget.
func (*PanedWindow) SetBackgroundM ¶ added in v1.0.16
func (w *PanedWindow) SetBackgroundM(value string) *PanedWindow
SetBackgroundM is like Background but panics on error
func (*PanedWindow) SetBorderWidth ¶ added in v1.0.14
func (w *PanedWindow) SetBorderWidth(value string) error
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*PanedWindow) SetBorderWidthM ¶ added in v1.0.16
func (w *PanedWindow) SetBorderWidthM(value string) *PanedWindow
SetBorderWidthM is like BorderWidth but panics on error
func (*PanedWindow) SetCursor ¶ added in v1.0.14
func (w *PanedWindow) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*PanedWindow) SetCursorM ¶ added in v1.0.16
func (w *PanedWindow) SetCursorM(value string) *PanedWindow
SetCursorM is like Cursor but panics on error
func (*PanedWindow) SetHandlePad ¶ added in v1.0.14
func (w *PanedWindow) SetHandlePad(value string) error
When sash handles are drawn, specifies the distance from the top or left end of the sash (depending on the orientation of the widget) at which to draw the handle. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SetHandlePadM ¶ added in v1.0.16
func (w *PanedWindow) SetHandlePadM(value string) *PanedWindow
SetHandlePadM is like HandlePad but panics on error
func (*PanedWindow) SetHandleSize ¶ added in v1.0.14
func (w *PanedWindow) SetHandleSize(value string) error
HandleSize reports the side length of a sash handle. Handles are always drawn as squares. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SetHandleSizeM ¶ added in v1.0.16
func (w *PanedWindow) SetHandleSizeM(value string) *PanedWindow
SetHandleSizeM is like HandleSize but panics on error
func (*PanedWindow) SetHeight ¶ added in v1.0.14
func (w *PanedWindow) SetHeight(value string) error
Height reports a desired height for the overall panedwindow widget. May be any value accepted by \fBTk_GetPixels\fR. If an empty string, the widget will be made high enough to allow all contained widgets to have their natural height.
func (*PanedWindow) SetHeightM ¶ added in v1.0.16
func (w *PanedWindow) SetHeightM(value string) *PanedWindow
SetHeightM is like Height but panics on error
func (*PanedWindow) SetOpaqueResize ¶ added in v1.0.14
func (w *PanedWindow) SetOpaqueResize(value string) error
OpaqueResize reports whether panes should be resized as a sash is moved (true), or if resizing should be deferred until the sash is placed (false). In the latter case, a TODO .QW(ghost) version of the sash is displayed during the resizing to show where the panes will be resized to when releasing the mouse button. This TODO .QW(ghost) version of the sash is the proxy. It's rendering can be configured using the \fB-proxybackground\fR, \fB-proxyborderwidth\fR and \fB-proxyrelief\fR options.
func (*PanedWindow) SetOpaqueResizeM ¶ added in v1.0.16
func (w *PanedWindow) SetOpaqueResizeM(value string) *PanedWindow
SetOpaqueResizeM is like OpaqueResize but panics on error
func (*PanedWindow) SetOrient ¶ added in v1.0.14
func (w *PanedWindow) SetOrient(value string) error
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*PanedWindow) SetOrientM ¶ added in v1.0.16
func (w *PanedWindow) SetOrientM(value string) *PanedWindow
SetOrientM is like Orient but panics on error
func (*PanedWindow) SetProxyBackground ¶ added in v1.0.14
func (w *PanedWindow) SetProxyBackground(value string) error
Background color to use when drawing the proxy. If an empty string, the value of the \fB-background\fR option will be used.
func (*PanedWindow) SetProxyBackgroundM ¶ added in v1.0.16
func (w *PanedWindow) SetProxyBackgroundM(value string) *PanedWindow
SetProxyBackgroundM is like ProxyBackground but panics on error
func (*PanedWindow) SetProxyBorderWidth ¶ added in v1.0.14
func (w *PanedWindow) SetProxyBorderWidth(value string) error
ProxyBorderWidth reports the borderwidth of the proxy. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SetProxyBorderWidthM ¶ added in v1.0.16
func (w *PanedWindow) SetProxyBorderWidthM(value string) *PanedWindow
SetProxyBorderWidthM is like ProxyBorderWidth but panics on error
func (*PanedWindow) SetProxyRelief ¶ added in v1.0.14
func (w *PanedWindow) SetProxyRelief(value string) error
Relief to use when drawing the proxy. May be any of the standard Tk relief values. If an empty string, the value of the \fB-sashrelief\fR option will be used.
func (*PanedWindow) SetProxyReliefM ¶ added in v1.0.16
func (w *PanedWindow) SetProxyReliefM(value string) *PanedWindow
SetProxyReliefM is like ProxyRelief but panics on error
func (*PanedWindow) SetRelief ¶ added in v1.0.14
func (w *PanedWindow) SetRelief(value string) error
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*PanedWindow) SetReliefM ¶ added in v1.0.16
func (w *PanedWindow) SetReliefM(value string) *PanedWindow
SetReliefM is like Relief but panics on error
func (*PanedWindow) SetSashCursor ¶ added in v1.0.14
func (w *PanedWindow) SetSashCursor(value string) error
Mouse cursor to use when over a sash. If null, \fBsb_h_double_arrow\fR will be used for horizontal panedwindows, and \fBsb_v_double_arrow\fR will be used for vertical panedwindows.
func (*PanedWindow) SetSashCursorM ¶ added in v1.0.16
func (w *PanedWindow) SetSashCursorM(value string) *PanedWindow
SetSashCursorM is like SashCursor but panics on error
func (*PanedWindow) SetSashPad ¶ added in v1.0.14
func (w *PanedWindow) SetSashPad(value string) error
SashPad reports the amount of padding to leave of each side of a sash. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SetSashPadM ¶ added in v1.0.16
func (w *PanedWindow) SetSashPadM(value string) *PanedWindow
SetSashPadM is like SashPad but panics on error
func (*PanedWindow) SetSashRelief ¶ added in v1.0.14
func (w *PanedWindow) SetSashRelief(value string) error
Relief to use when drawing a sash. May be any of the standard Tk relief values.
func (*PanedWindow) SetSashReliefM ¶ added in v1.0.16
func (w *PanedWindow) SetSashReliefM(value string) *PanedWindow
SetSashReliefM is like SashRelief but panics on error
func (*PanedWindow) SetSashWidth ¶ added in v1.0.14
func (w *PanedWindow) SetSashWidth(value string) error
SashWidth reports the width of each sash. May be any value accepted by \fBTk_GetPixels\fR.
func (*PanedWindow) SetSashWidthM ¶ added in v1.0.16
func (w *PanedWindow) SetSashWidthM(value string) *PanedWindow
SetSashWidthM is like SashWidth but panics on error
func (*PanedWindow) SetShowHandle ¶ added in v1.0.14
func (w *PanedWindow) SetShowHandle(value string) error
ShowHandle reports whether sash handles should be shown. May be any valid Tcl boolean value.
func (*PanedWindow) SetShowHandleM ¶ added in v1.0.16
func (w *PanedWindow) SetShowHandleM(value string) *PanedWindow
SetShowHandleM is like ShowHandle but panics on error
func (*PanedWindow) SetWidth ¶ added in v1.0.14
func (w *PanedWindow) SetWidth(value string) error
Width reports a desired width for the overall panedwindow widget. May be any value accepted by \fBTk_GetPixels\fR. If an empty string, the widget will be made wide enough to allow all contained widgets to have their natural width.
func (*PanedWindow) SetWidthM ¶ added in v1.0.16
func (w *PanedWindow) SetWidthM(value string) *PanedWindow
SetWidthM is like Width but panics on error
func (*PanedWindow) ShowHandle ¶ added in v1.0.14
func (w *PanedWindow) ShowHandle() (string, error)
ShowHandle reports whether sash handles should be shown. May be any valid Tcl boolean value.
func (*PanedWindow) ShowHandleM ¶ added in v1.0.16
func (w *PanedWindow) ShowHandleM() string
ShowHandleM is like ShowHandle but panics on error.
func (*PanedWindow) Width ¶ added in v1.0.14
func (w *PanedWindow) Width() (string, error)
Width reports a desired width for the overall panedwindow widget. May be any value accepted by \fBTk_GetPixels\fR. If an empty string, the widget will be made wide enough to allow all contained widgets to have their natural width.
func (*PanedWindow) WidthM ¶ added in v1.0.16
func (w *PanedWindow) WidthM() string
WidthM is like Width but panics on error.
type RadioButton ¶ added in v1.0.14
type RadioButton struct {
Window
}
RadioButton represents the Tk radiobutton widget.
func (*RadioButton) ActiveBackground ¶ added in v1.0.14
func (w *RadioButton) ActiveBackground() (string, error)
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*RadioButton) ActiveBackgroundM ¶ added in v1.0.16
func (w *RadioButton) ActiveBackgroundM() string
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*RadioButton) ActiveForeground ¶ added in v1.0.14
func (w *RadioButton) ActiveForeground() (string, error)
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*RadioButton) ActiveForegroundM ¶ added in v1.0.16
func (w *RadioButton) ActiveForegroundM() string
ActiveForegroundM is like ActiveForeground but panics on error.
func (*RadioButton) Anchor ¶ added in v1.0.14
func (w *RadioButton) Anchor() (string, error)
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*RadioButton) AnchorM ¶ added in v1.0.16
func (w *RadioButton) AnchorM() string
AnchorM is like Anchor but panics on error.
func (*RadioButton) Background ¶ added in v1.0.14
func (w *RadioButton) Background() (string, error)
Background reports the normal background color to use when displaying the widget.
func (*RadioButton) BackgroundM ¶ added in v1.0.16
func (w *RadioButton) BackgroundM() string
BackgroundM is like Background but panics on error.
func (*RadioButton) Bitmap ¶ added in v1.0.14
func (w *RadioButton) Bitmap() (string, error)
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*RadioButton) BitmapM ¶ added in v1.0.16
func (w *RadioButton) BitmapM() string
BitmapM is like Bitmap but panics on error.
func (*RadioButton) BorderWidth ¶ added in v1.0.14
func (w *RadioButton) BorderWidth() (string, error)
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*RadioButton) BorderWidthM ¶ added in v1.0.16
func (w *RadioButton) BorderWidthM() string
BorderWidthM is like BorderWidth but panics on error.
func (*RadioButton) Compound ¶ added in v1.0.14
func (w *RadioButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*RadioButton) CompoundM ¶ added in v1.0.16
func (w *RadioButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*RadioButton) Cursor ¶ added in v1.0.14
func (w *RadioButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*RadioButton) CursorM ¶ added in v1.0.16
func (w *RadioButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*RadioButton) DisabledForeground ¶ added in v1.0.14
func (w *RadioButton) DisabledForeground() (string, error)
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*RadioButton) DisabledForegroundM ¶ added in v1.0.16
func (w *RadioButton) DisabledForegroundM() string
DisabledForegroundM is like DisabledForeground but panics on error.
func (*RadioButton) Font ¶ added in v1.0.14
func (w *RadioButton) Font() (string, error)
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*RadioButton) FontM ¶ added in v1.0.16
func (w *RadioButton) FontM() string
FontM is like Font but panics on error.
func (*RadioButton) Foreground ¶ added in v1.0.14
func (w *RadioButton) Foreground() (string, error)
Foreground reports the normal foreground color to use when displaying the widget.
func (*RadioButton) ForegroundM ¶ added in v1.0.16
func (w *RadioButton) ForegroundM() string
ForegroundM is like Foreground but panics on error.
func (*RadioButton) Height ¶ added in v1.0.14
func (w *RadioButton) Height() (string, error)
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*RadioButton) HeightM ¶ added in v1.0.16
func (w *RadioButton) HeightM() string
HeightM is like Height but panics on error.
func (*RadioButton) HighlightBackground ¶ added in v1.0.14
func (w *RadioButton) HighlightBackground() (string, error)
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*RadioButton) HighlightBackgroundM ¶ added in v1.0.16
func (w *RadioButton) HighlightBackgroundM() string
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*RadioButton) HighlightColor ¶ added in v1.0.14
func (w *RadioButton) HighlightColor() (string, error)
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*RadioButton) HighlightColorM ¶ added in v1.0.16
func (w *RadioButton) HighlightColorM() string
HighlightColorM is like HighlightColor but panics on error.
func (*RadioButton) HighlightThickness ¶ added in v1.0.14
func (w *RadioButton) HighlightThickness() (string, error)
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*RadioButton) HighlightThicknessM ¶ added in v1.0.16
func (w *RadioButton) HighlightThicknessM() string
HighlightThicknessM is like HighlightThickness but panics on error.
func (*RadioButton) Image ¶ added in v1.0.14
func (w *RadioButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*RadioButton) ImageM ¶ added in v1.0.16
func (w *RadioButton) ImageM() string
ImageM is like Image but panics on error.
func (*RadioButton) Indicatoron ¶ added in v1.0.14
func (w *RadioButton) Indicatoron() (string, error)
Indicatoron reports whether or not the indicator should be drawn. Must be a proper boolean value. If false, the \fB-relief\fR option is ignored and the widget's relief is always sunken if the widget is selected and raised otherwise.
func (*RadioButton) IndicatoronM ¶ added in v1.0.16
func (w *RadioButton) IndicatoronM() string
IndicatoronM is like Indicatoron but panics on error.
func (*RadioButton) Justify ¶ added in v1.0.14
func (w *RadioButton) Justify() (string, error)
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*RadioButton) JustifyM ¶ added in v1.0.16
func (w *RadioButton) JustifyM() string
JustifyM is like Justify but panics on error.
func (*RadioButton) OffRelief ¶ added in v1.0.14
func (w *RadioButton) OffRelief() (string, error)
OffRelief reports the relief for the checkbutton when the indicator is not drawn and the checkbutton is off. The default value is TODO .QW(raised .) By setting this option to TODO .QW(flat) and setting \fB-indicatoron\fR to false and \fB-overrelief\fR to TODO .QW(raised ,) the effect is achieved of having a flat button that raises on mouse-over and which is depressed when activated. This is the behavior typically exhibited by the Align-Left, Align-Right, and Center radiobuttons on the toolbar of a word-processor, for example.
func (*RadioButton) OffReliefM ¶ added in v1.0.16
func (w *RadioButton) OffReliefM() string
OffReliefM is like OffRelief but panics on error.
func (*RadioButton) OverRelief ¶ added in v1.0.14
func (w *RadioButton) OverRelief() (string, error)
OverRelief reports an alternative relief for the radiobutton, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the radiobutton. The empty string is the default value.
func (*RadioButton) OverReliefM ¶ added in v1.0.16
func (w *RadioButton) OverReliefM() string
OverReliefM is like OverRelief but panics on error.
func (*RadioButton) PadX ¶ added in v1.0.14
func (w *RadioButton) PadX() (string, error)
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*RadioButton) PadXM ¶ added in v1.0.16
func (w *RadioButton) PadXM() string
PadXM is like PadX but panics on error.
func (*RadioButton) PadY ¶ added in v1.0.14
func (w *RadioButton) PadY() (string, error)
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*RadioButton) PadYM ¶ added in v1.0.16
func (w *RadioButton) PadYM() string
PadYM is like PadY but panics on error.
func (*RadioButton) Relief ¶ added in v1.0.14
func (w *RadioButton) Relief() (string, error)
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*RadioButton) ReliefM ¶ added in v1.0.16
func (w *RadioButton) ReliefM() string
ReliefM is like Relief but panics on error.
func (*RadioButton) SelectColor ¶ added in v1.0.14
func (w *RadioButton) SelectColor() (string, error)
SelectColor reports a background color to use when the button is selected. If \fBindicatorOn\fR is true then the color is used as the background for the indicator regardless of the select state. If \fB-indicatoron\fR is false, this color is used as the background for the entire widget, in place of \fB-background\fR or \fB-activeBackground\fR, whenever the widget is selected. If specified as an empty string then no special color is used for displaying when the widget is selected.
func (*RadioButton) SelectColorM ¶ added in v1.0.16
func (w *RadioButton) SelectColorM() string
SelectColorM is like SelectColor but panics on error.
func (*RadioButton) SelectImage ¶ added in v1.0.14
func (w *RadioButton) SelectImage() (string, error)
SelectImage reports an image to display (in place of the \fB-image\fR option) when the radiobutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*RadioButton) SelectImageM ¶ added in v1.0.16
func (w *RadioButton) SelectImageM() string
SelectImageM is like SelectImage but panics on error.
func (*RadioButton) SetActiveBackground ¶ added in v1.0.14
func (w *RadioButton) SetActiveBackground(value string) error
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*RadioButton) SetActiveBackgroundM ¶ added in v1.0.16
func (w *RadioButton) SetActiveBackgroundM(value string) *RadioButton
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*RadioButton) SetActiveForeground ¶ added in v1.0.14
func (w *RadioButton) SetActiveForeground(value string) error
ActiveForeground reports foreground color to use when drawing active elements. See above for definition of active elements.
func (*RadioButton) SetActiveForegroundM ¶ added in v1.0.16
func (w *RadioButton) SetActiveForegroundM(value string) *RadioButton
SetActiveForegroundM is like ActiveForeground but panics on error
func (*RadioButton) SetAnchor ¶ added in v1.0.14
func (w *RadioButton) SetAnchor(value string) error
Anchor reports how the information in a widget (e.g. text or a bitmap) is to be displayed in the widget. Must be one of the values \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, or \fBcenter\fR. For example, \fBnw\fR means display the information such that its top-left corner is at the top-left corner of the widget.
func (*RadioButton) SetAnchorM ¶ added in v1.0.16
func (w *RadioButton) SetAnchorM(value string) *RadioButton
SetAnchorM is like Anchor but panics on error
func (*RadioButton) SetBackground ¶ added in v1.0.14
func (w *RadioButton) SetBackground(value string) error
Background reports the normal background color to use when displaying the widget.
func (*RadioButton) SetBackgroundM ¶ added in v1.0.16
func (w *RadioButton) SetBackgroundM(value string) *RadioButton
SetBackgroundM is like Background but panics on error
func (*RadioButton) SetBitmap ¶ added in v1.0.14
func (w *RadioButton) SetBitmap(value string) error
Bitmap reports a bitmap to display in the widget, in any of the forms acceptable to \fBTk_GetBitmap\fR. The exact way in which the bitmap is displayed may be affected by other options such as \fB-anchor\fR or \fB-justify\fR. Typically, if this option is specified then it overrides other options that specify a textual value to display in the widget but this is controlled by the \fB-compound\fR option; the \fB-bitmap\fR option may be reset to an empty string to re-enable a text display. In widgets that support both \fB-bitmap\fR and \fB-image\fR options, \fB-image\fR will usually override \fB-bitmap\fR.
func (*RadioButton) SetBitmapM ¶ added in v1.0.16
func (w *RadioButton) SetBitmapM(value string) *RadioButton
SetBitmapM is like Bitmap but panics on error
func (*RadioButton) SetBorderWidth ¶ added in v1.0.14
func (w *RadioButton) SetBorderWidth(value string) error
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*RadioButton) SetBorderWidthM ¶ added in v1.0.16
func (w *RadioButton) SetBorderWidthM(value string) *RadioButton
SetBorderWidthM is like BorderWidth but panics on error
func (*RadioButton) SetCommand ¶ added in v1.0.14
func (w *RadioButton) SetCommand(value Command) error
Command specifies a Tcl command to associate with the button. This command is typically invoked when mouse button 1 is released over the button window. The button's global variable (\fB-variable\fR option) will be updated before the command is invoked.
func (*RadioButton) SetCommandM ¶ added in v1.0.16
func (w *RadioButton) SetCommandM(value Command) *RadioButton
SetCommandM is like Command but panics on error
func (*RadioButton) SetCompound ¶ added in v1.0.14
func (w *RadioButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*RadioButton) SetCompoundM ¶ added in v1.0.16
func (w *RadioButton) SetCompoundM(value string) *RadioButton
SetCompoundM is like Compound but panics on error
func (*RadioButton) SetCursor ¶ added in v1.0.14
func (w *RadioButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*RadioButton) SetCursorM ¶ added in v1.0.16
func (w *RadioButton) SetCursorM(value string) *RadioButton
SetCursorM is like Cursor but panics on error
func (*RadioButton) SetDisabledForeground ¶ added in v1.0.14
func (w *RadioButton) SetDisabledForeground(value string) error
DisabledForeground reports foreground color to use when drawing a disabled element. If the option is specified as an empty string (which is typically the case on monochrome displays), disabled elements are drawn with the normal foreground color but they are dimmed by drawing them with a stippled fill pattern.
func (*RadioButton) SetDisabledForegroundM ¶ added in v1.0.16
func (w *RadioButton) SetDisabledForegroundM(value string) *RadioButton
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*RadioButton) SetFont ¶ added in v1.0.14
func (w *RadioButton) SetFont(value string) error
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*RadioButton) SetFontM ¶ added in v1.0.16
func (w *RadioButton) SetFontM(value string) *RadioButton
SetFontM is like Font but panics on error
func (*RadioButton) SetForeground ¶ added in v1.0.14
func (w *RadioButton) SetForeground(value string) error
Foreground reports the normal foreground color to use when displaying the widget.
func (*RadioButton) SetForegroundM ¶ added in v1.0.16
func (w *RadioButton) SetForegroundM(value string) *RadioButton
SetForegroundM is like Foreground but panics on error
func (*RadioButton) SetHeight ¶ added in v1.0.14
func (w *RadioButton) SetHeight(value string) error
Height reports a desired height for the button. If an image or bitmap is being displayed in the button then the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in lines of text. If this option is not specified, the button's desired height is computed from the size of the image or bitmap or text being displayed in it.
func (*RadioButton) SetHeightM ¶ added in v1.0.16
func (w *RadioButton) SetHeightM(value string) *RadioButton
SetHeightM is like Height but panics on error
func (*RadioButton) SetHighlightBackground ¶ added in v1.0.14
func (w *RadioButton) SetHighlightBackground(value string) error
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*RadioButton) SetHighlightBackgroundM ¶ added in v1.0.16
func (w *RadioButton) SetHighlightBackgroundM(value string) *RadioButton
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*RadioButton) SetHighlightColor ¶ added in v1.0.14
func (w *RadioButton) SetHighlightColor(value string) error
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*RadioButton) SetHighlightColorM ¶ added in v1.0.16
func (w *RadioButton) SetHighlightColorM(value string) *RadioButton
SetHighlightColorM is like HighlightColor but panics on error
func (*RadioButton) SetHighlightThickness ¶ added in v1.0.14
func (w *RadioButton) SetHighlightThickness(value string) error
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*RadioButton) SetHighlightThicknessM ¶ added in v1.0.16
func (w *RadioButton) SetHighlightThicknessM(value string) *RadioButton
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*RadioButton) SetImage ¶ added in v1.0.14
func (w *RadioButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*RadioButton) SetImageM ¶ added in v1.0.16
func (w *RadioButton) SetImageM(value string) *RadioButton
SetImageM is like Image but panics on error
func (*RadioButton) SetIndicatoron ¶ added in v1.0.14
func (w *RadioButton) SetIndicatoron(value string) error
Indicatoron reports whether or not the indicator should be drawn. Must be a proper boolean value. If false, the \fB-relief\fR option is ignored and the widget's relief is always sunken if the widget is selected and raised otherwise.
func (*RadioButton) SetIndicatoronM ¶ added in v1.0.16
func (w *RadioButton) SetIndicatoronM(value string) *RadioButton
SetIndicatoronM is like Indicatoron but panics on error
func (*RadioButton) SetJustify ¶ added in v1.0.14
func (w *RadioButton) SetJustify(value string) error
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*RadioButton) SetJustifyM ¶ added in v1.0.16
func (w *RadioButton) SetJustifyM(value string) *RadioButton
SetJustifyM is like Justify but panics on error
func (*RadioButton) SetOffRelief ¶ added in v1.0.14
func (w *RadioButton) SetOffRelief(value string) error
OffRelief reports the relief for the checkbutton when the indicator is not drawn and the checkbutton is off. The default value is TODO .QW(raised .) By setting this option to TODO .QW(flat) and setting \fB-indicatoron\fR to false and \fB-overrelief\fR to TODO .QW(raised ,) the effect is achieved of having a flat button that raises on mouse-over and which is depressed when activated. This is the behavior typically exhibited by the Align-Left, Align-Right, and Center radiobuttons on the toolbar of a word-processor, for example.
func (*RadioButton) SetOffReliefM ¶ added in v1.0.16
func (w *RadioButton) SetOffReliefM(value string) *RadioButton
SetOffReliefM is like OffRelief but panics on error
func (*RadioButton) SetOverRelief ¶ added in v1.0.14
func (w *RadioButton) SetOverRelief(value string) error
OverRelief reports an alternative relief for the radiobutton, to be used when the mouse cursor is over the widget. This option can be used to make toolbar buttons, by configuring \fB-relief flat -overrelief raised\fR. If the value of this option is the empty string, then no alternative relief is used when the mouse cursor is over the radiobutton. The empty string is the default value.
func (*RadioButton) SetOverReliefM ¶ added in v1.0.16
func (w *RadioButton) SetOverReliefM(value string) *RadioButton
SetOverReliefM is like OverRelief but panics on error
func (*RadioButton) SetPadX ¶ added in v1.0.14
func (w *RadioButton) SetPadX(value string) error
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*RadioButton) SetPadXM ¶ added in v1.0.16
func (w *RadioButton) SetPadXM(value string) *RadioButton
SetPadXM is like PadX but panics on error
func (*RadioButton) SetPadY ¶ added in v1.0.14
func (w *RadioButton) SetPadY(value string) error
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*RadioButton) SetPadYM ¶ added in v1.0.16
func (w *RadioButton) SetPadYM(value string) *RadioButton
SetPadYM is like PadY but panics on error
func (*RadioButton) SetRelief ¶ added in v1.0.14
func (w *RadioButton) SetRelief(value string) error
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*RadioButton) SetReliefM ¶ added in v1.0.16
func (w *RadioButton) SetReliefM(value string) *RadioButton
SetReliefM is like Relief but panics on error
func (*RadioButton) SetSelectColor ¶ added in v1.0.14
func (w *RadioButton) SetSelectColor(value string) error
SelectColor reports a background color to use when the button is selected. If \fBindicatorOn\fR is true then the color is used as the background for the indicator regardless of the select state. If \fB-indicatoron\fR is false, this color is used as the background for the entire widget, in place of \fB-background\fR or \fB-activeBackground\fR, whenever the widget is selected. If specified as an empty string then no special color is used for displaying when the widget is selected.
func (*RadioButton) SetSelectColorM ¶ added in v1.0.16
func (w *RadioButton) SetSelectColorM(value string) *RadioButton
SetSelectColorM is like SelectColor but panics on error
func (*RadioButton) SetSelectImage ¶ added in v1.0.14
func (w *RadioButton) SetSelectImage(value string) error
SelectImage reports an image to display (in place of the \fB-image\fR option) when the radiobutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*RadioButton) SetSelectImageM ¶ added in v1.0.16
func (w *RadioButton) SetSelectImageM(value string) *RadioButton
SetSelectImageM is like SelectImage but panics on error
func (*RadioButton) SetState ¶ added in v1.0.14
func (w *RadioButton) SetState(value string) error
State reports one of three states for the radiobutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the radiobutton is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the radiobutton. In active state the radiobutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the radiobutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the radiobutton is displayed.
func (*RadioButton) SetStateM ¶ added in v1.0.16
func (w *RadioButton) SetStateM(value string) *RadioButton
SetStateM is like State but panics on error
func (*RadioButton) SetTakeFocus ¶ added in v1.0.14
func (w *RadioButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*RadioButton) SetTakeFocusM ¶ added in v1.0.16
func (w *RadioButton) SetTakeFocusM(value string) *RadioButton
SetTakeFocusM is like TakeFocus but panics on error
func (*RadioButton) SetText ¶ added in v1.0.14
func (w *RadioButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*RadioButton) SetTextM ¶ added in v1.0.16
func (w *RadioButton) SetTextM(value string) *RadioButton
SetTextM is like Text but panics on error
func (*RadioButton) SetTextVariable ¶ added in v1.0.15
func (w *RadioButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*RadioButton) SetTextVariableM ¶ added in v1.0.16
func (w *RadioButton) SetTextVariableM(value string) *RadioButton
SetTextVariableM is like TextVariable but panics on error
func (*RadioButton) SetTristateImage ¶ added in v1.0.14
func (w *RadioButton) SetTristateImage(value string) error
TristateImage reports an image to display (in place of the \fB-image\fR option) when the radiobutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*RadioButton) SetTristateImageM ¶ added in v1.0.16
func (w *RadioButton) SetTristateImageM(value string) *RadioButton
SetTristateImageM is like TristateImage but panics on error
func (*RadioButton) SetTristateValue ¶ added in v1.0.14
func (w *RadioButton) SetTristateValue(value string) error
TristateValue reports the value that causes the radiobutton to display the multi-value selection, also known as the tri-state mode. Defaults to TODO .QW("" .)
func (*RadioButton) SetTristateValueM ¶ added in v1.0.16
func (w *RadioButton) SetTristateValueM(value string) *RadioButton
SetTristateValueM is like TristateValue but panics on error
func (*RadioButton) SetUnderline ¶ added in v1.0.14
func (w *RadioButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*RadioButton) SetUnderlineM ¶ added in v1.0.16
func (w *RadioButton) SetUnderlineM(value string) *RadioButton
SetUnderlineM is like Underline but panics on error
func (*RadioButton) SetValue ¶ added in v1.0.14
func (w *RadioButton) SetValue(value string) error
Value reports value to store in the button's associated variable whenever this button is selected.
func (*RadioButton) SetValueM ¶ added in v1.0.16
func (w *RadioButton) SetValueM(value string) *RadioButton
SetValueM is like Value but panics on error
func (*RadioButton) SetVariable ¶ added in v1.0.15
func (w *RadioButton) SetVariable(value string) error
Variable reports the name of a global variable to set whenever this button is selected. Changes in this variable also cause the button to select or deselect itself. Defaults to the value \fBselectedButton\fR.
func (*RadioButton) SetVariableM ¶ added in v1.0.16
func (w *RadioButton) SetVariableM(value string) *RadioButton
SetVariableM is like Variable but panics on error
func (*RadioButton) SetWidth ¶ added in v1.0.14
func (w *RadioButton) SetWidth(value string) error
Width reports a desired width for the button. If an image or bitmap is being displayed in the button, the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*RadioButton) SetWidthM ¶ added in v1.0.16
func (w *RadioButton) SetWidthM(value string) *RadioButton
SetWidthM is like Width but panics on error
func (*RadioButton) SetWrapLength ¶ added in v1.0.14
func (w *RadioButton) SetWrapLength(value string) error
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*RadioButton) SetWrapLengthM ¶ added in v1.0.16
func (w *RadioButton) SetWrapLengthM(value string) *RadioButton
SetWrapLengthM is like WrapLength but panics on error
func (*RadioButton) State ¶ added in v1.0.14
func (w *RadioButton) State() (string, error)
State reports one of three states for the radiobutton: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In normal state the radiobutton is displayed using the \fB-foreground\fR and \fB-background\fR options. The active state is typically used when the pointer is over the radiobutton. In active state the radiobutton is displayed using the \fB-activeforeground\fR and \fB-activebackground\fR options. Disabled state means that the radiobutton should be insensitive: the default bindings will refuse to activate the widget and will ignore mouse button presses. In this state the \fB-disabledforeground\fR and \fB-background\fR options determine how the radiobutton is displayed.
func (*RadioButton) StateM ¶ added in v1.0.16
func (w *RadioButton) StateM() string
StateM is like State but panics on error.
func (*RadioButton) TakeFocus ¶ added in v1.0.14
func (w *RadioButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*RadioButton) TakeFocusM ¶ added in v1.0.16
func (w *RadioButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*RadioButton) Text ¶ added in v1.0.14
func (w *RadioButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*RadioButton) TextM ¶ added in v1.0.16
func (w *RadioButton) TextM() string
TextM is like Text but panics on error.
func (*RadioButton) TextVariable ¶ added in v1.0.15
func (w *RadioButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*RadioButton) TextVariableM ¶ added in v1.0.16
func (w *RadioButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*RadioButton) TristateImage ¶ added in v1.0.14
func (w *RadioButton) TristateImage() (string, error)
TristateImage reports an image to display (in place of the \fB-image\fR option) when the radiobutton is selected. This option is ignored unless the \fB-image\fR option has been specified.
func (*RadioButton) TristateImageM ¶ added in v1.0.16
func (w *RadioButton) TristateImageM() string
TristateImageM is like TristateImage but panics on error.
func (*RadioButton) TristateValue ¶ added in v1.0.14
func (w *RadioButton) TristateValue() (string, error)
TristateValue reports the value that causes the radiobutton to display the multi-value selection, also known as the tri-state mode. Defaults to TODO .QW("" .)
func (*RadioButton) TristateValueM ¶ added in v1.0.16
func (w *RadioButton) TristateValueM() string
TristateValueM is like TristateValue but panics on error.
func (*RadioButton) Underline ¶ added in v1.0.14
func (w *RadioButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*RadioButton) UnderlineM ¶ added in v1.0.16
func (w *RadioButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*RadioButton) Value ¶ added in v1.0.14
func (w *RadioButton) Value() (string, error)
Value reports value to store in the button's associated variable whenever this button is selected.
func (*RadioButton) ValueM ¶ added in v1.0.16
func (w *RadioButton) ValueM() string
ValueM is like Value but panics on error.
func (*RadioButton) Variable ¶ added in v1.0.15
func (w *RadioButton) Variable() (string, error)
Variable reports the name of a global variable to set whenever this button is selected. Changes in this variable also cause the button to select or deselect itself. Defaults to the value \fBselectedButton\fR.
func (*RadioButton) VariableM ¶ added in v1.0.16
func (w *RadioButton) VariableM() string
VariableM is like Variable but panics on error.
func (*RadioButton) Width ¶ added in v1.0.14
func (w *RadioButton) Width() (string, error)
Width reports a desired width for the button. If an image or bitmap is being displayed in the button, the value is in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR); for text it is in characters. If this option is not specified, the button's desired width is computed from the size of the image or bitmap or text being displayed in it.
func (*RadioButton) WidthM ¶ added in v1.0.16
func (w *RadioButton) WidthM() string
WidthM is like Width but panics on error.
func (*RadioButton) WrapLength ¶ added in v1.0.14
func (w *RadioButton) WrapLength() (string, error)
For widgets that can perform word-wrapping, this option specifies the maximum line length. Lines that would exceed this length are wrapped onto the next line, so that no line is longer than the specified length. The value may be specified in any of the standard forms for screen distances. If this value is less than or equal to 0 then no wrapping is done: lines will break only at newline characters in the text.
func (*RadioButton) WrapLengthM ¶ added in v1.0.16
func (w *RadioButton) WrapLengthM() string
WrapLengthM is like WrapLength but panics on error.
type Scale ¶ added in v1.0.13
type Scale struct {
Window
}
Scale represents the Tk scale widget.
func (*Scale) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Scale) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*Scale) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Scale) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Scale) BigIncrement ¶ added in v1.0.14
Some interactions with the scale cause its value to change by TODO .QW(large) increments; this option specifies the size of the large increments. If specified as 0, the large increments default to 1/10 the range of the scale.
func (*Scale) BigIncrementM ¶ added in v1.0.16
BigIncrementM is like BigIncrement but panics on error.
func (*Scale) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scale) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Scale) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Scale) Digits ¶ added in v1.0.14
An integer specifying how many significant digits should be retained when converting the value of the scale to a string. If the number is less than or equal to zero, then the scale picks the smallest value that guarantees that every possible slider position prints as a different string.
func (*Scale) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Scale) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Scale) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Scale) From ¶ added in v1.0.14
A real value corresponding to the left or top end of the scale.
func (*Scale) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Scale) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Scale) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Scale) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Scale) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Scale) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Scale) Label ¶ added in v1.0.14
A string to display as a label for the scale. For vertical scales the label is displayed just to the right of the top end of the scale. For horizontal scales the label is displayed just above the left end of the scale. If the option is specified as an empty string, no label is displayed.
func (*Scale) Length ¶ added in v1.0.14
Length reports the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For vertical scales this is the scale's height; for horizontal scales it is the scale's width.
func (*Scale) Orient ¶ added in v1.0.14
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*Scale) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Scale) RepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Scale) RepeatDelayM ¶ added in v1.0.16
RepeatDelayM is like RepeatDelay but panics on error.
func (*Scale) RepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Scale) RepeatIntervalM ¶ added in v1.0.16
RepeatIntervalM is like RepeatInterval but panics on error.
func (*Scale) Resolution ¶ added in v1.0.14
A real value specifying the resolution for the scale. If this value is greater than zero then the scale's value will always be rounded to an even multiple of this value, as will the endpoints of the scale. If the value is less than zero then no rounding occurs. Defaults to 1 (i.e., the value will be integral).
func (*Scale) ResolutionM ¶ added in v1.0.16
ResolutionM is like Resolution but panics on error.
func (*Scale) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Scale) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*Scale) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Scale) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Scale) SetBigIncrement ¶ added in v1.0.14
Some interactions with the scale cause its value to change by TODO .QW(large) increments; this option specifies the size of the large increments. If specified as 0, the large increments default to 1/10 the range of the scale.
func (*Scale) SetBigIncrementM ¶ added in v1.0.16
SetBigIncrementM is like BigIncrement but panics on error
func (*Scale) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scale) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Scale) SetCommand ¶ added in v1.0.14
Command specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual command consists of this option followed by a space and a real number indicating the new value of the scale.
func (*Scale) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*Scale) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Scale) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Scale) SetDigits ¶ added in v1.0.14
An integer specifying how many significant digits should be retained when converting the value of the scale to a string. If the number is less than or equal to zero, then the scale picks the smallest value that guarantees that every possible slider position prints as a different string.
func (*Scale) SetDigitsM ¶ added in v1.0.16
SetDigitsM is like Digits but panics on error
func (*Scale) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Scale) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Scale) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Scale) SetFrom ¶ added in v1.0.14
A real value corresponding to the left or top end of the scale.
func (*Scale) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Scale) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Scale) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Scale) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Scale) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Scale) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Scale) SetLabel ¶ added in v1.0.14
A string to display as a label for the scale. For vertical scales the label is displayed just to the right of the top end of the scale. For horizontal scales the label is displayed just above the left end of the scale. If the option is specified as an empty string, no label is displayed.
func (*Scale) SetLength ¶ added in v1.0.14
Length reports the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For vertical scales this is the scale's height; for horizontal scales it is the scale's width.
func (*Scale) SetLengthM ¶ added in v1.0.16
SetLengthM is like Length but panics on error
func (*Scale) SetOrient ¶ added in v1.0.14
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*Scale) SetOrientM ¶ added in v1.0.16
SetOrientM is like Orient but panics on error
func (*Scale) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Scale) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Scale) SetRepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Scale) SetRepeatDelayM ¶ added in v1.0.16
SetRepeatDelayM is like RepeatDelay but panics on error
func (*Scale) SetRepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Scale) SetRepeatIntervalM ¶ added in v1.0.16
SetRepeatIntervalM is like RepeatInterval but panics on error
func (*Scale) SetResolution ¶ added in v1.0.14
A real value specifying the resolution for the scale. If this value is greater than zero then the scale's value will always be rounded to an even multiple of this value, as will the endpoints of the scale. If the value is less than zero then no rounding occurs. Defaults to 1 (i.e., the value will be integral).
func (*Scale) SetResolutionM ¶ added in v1.0.16
SetResolutionM is like Resolution but panics on error
func (*Scale) SetShowValue ¶ added in v1.0.14
ShowValue reports a boolean value indicating whether or not the current value of the scale is to be displayed.
func (*Scale) SetShowValueM ¶ added in v1.0.16
SetShowValueM is like ShowValue but panics on error
func (*Scale) SetSliderLength ¶ added in v1.0.14
SliderLength reports the size of the slider, measured in screen units along the slider's long dimension. The value may be specified in any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scale) SetSliderLengthM ¶ added in v1.0.16
SetSliderLengthM is like SliderLength but panics on error
func (*Scale) SetSliderRelief ¶ added in v1.0.14
SliderRelief reports the relief to use when drawing the slider, such as \fBraised\fR or \fBsunken\fR.
func (*Scale) SetSliderReliefM ¶ added in v1.0.16
SetSliderReliefM is like SliderRelief but panics on error
func (*Scale) SetState ¶ added in v1.0.14
State reports one of three states for the scale: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. If the scale is disabled then the value may not be changed and the scale will not activate. If the scale is active, the slider is displayed using the color specified by the \fB-activebackground\fR option.
func (*Scale) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Scale) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Scale) SetTickInterval ¶ added in v1.0.14
Must be a real value. Determines the spacing between numerical tick marks displayed below or to the left of the slider. The values will all be displayed with the same number of decimal places, which will be enough to ensure they are all accurate to within 20% of a tick interval. If 0, no tick marks will be displayed.
func (*Scale) SetTickIntervalM ¶ added in v1.0.16
SetTickIntervalM is like TickInterval but panics on error
func (*Scale) SetTo ¶ added in v1.0.14
To reports a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than the \fB-from\fR option.
func (*Scale) SetTroughColor ¶ added in v1.0.14
TroughColor reports the color to use for the rectangular trough areas in widgets such as scrollbars and scales. This option is ignored for scrollbars on Windows (native widget does not recognize this option).
func (*Scale) SetTroughColorM ¶ added in v1.0.16
SetTroughColorM is like TroughColor but panics on error
func (*Scale) SetVariable ¶ added in v1.0.15
Variable reports the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value.
func (*Scale) SetVariableM ¶ added in v1.0.16
SetVariableM is like Variable but panics on error
func (*Scale) SetWidth ¶ added in v1.0.14
Width reports the desired narrow dimension of the scale in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For vertical scales this is the scale's width; for horizontal scales this is the scale's height.
func (*Scale) ShowValue ¶ added in v1.0.14
ShowValue reports a boolean value indicating whether or not the current value of the scale is to be displayed.
func (*Scale) ShowValueM ¶ added in v1.0.16
ShowValueM is like ShowValue but panics on error.
func (*Scale) SliderLength ¶ added in v1.0.14
SliderLength reports the size of the slider, measured in screen units along the slider's long dimension. The value may be specified in any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scale) SliderLengthM ¶ added in v1.0.16
SliderLengthM is like SliderLength but panics on error.
func (*Scale) SliderRelief ¶ added in v1.0.14
SliderRelief reports the relief to use when drawing the slider, such as \fBraised\fR or \fBsunken\fR.
func (*Scale) SliderReliefM ¶ added in v1.0.16
SliderReliefM is like SliderRelief but panics on error.
func (*Scale) State ¶ added in v1.0.14
State reports one of three states for the scale: \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. If the scale is disabled then the value may not be changed and the scale will not activate. If the scale is active, the slider is displayed using the color specified by the \fB-activebackground\fR option.
func (*Scale) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Scale) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Scale) TickInterval ¶ added in v1.0.14
Must be a real value. Determines the spacing between numerical tick marks displayed below or to the left of the slider. The values will all be displayed with the same number of decimal places, which will be enough to ensure they are all accurate to within 20% of a tick interval. If 0, no tick marks will be displayed.
func (*Scale) TickIntervalM ¶ added in v1.0.16
TickIntervalM is like TickInterval but panics on error.
func (*Scale) To ¶ added in v1.0.14
To reports a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than the \fB-from\fR option.
func (*Scale) TroughColor ¶ added in v1.0.14
TroughColor reports the color to use for the rectangular trough areas in widgets such as scrollbars and scales. This option is ignored for scrollbars on Windows (native widget does not recognize this option).
func (*Scale) TroughColorM ¶ added in v1.0.16
TroughColorM is like TroughColor but panics on error.
func (*Scale) Variable ¶ added in v1.0.15
Variable reports the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value.
type Scrollbar ¶ added in v1.0.13
type Scrollbar struct {
Window
}
Scrollbar represents the Tk scrollbar widget.
func (*Scrollbar) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Scrollbar) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*Scrollbar) ActiveRelief ¶ added in v1.0.14
ActiveRelief reports the relief to use when displaying the element that is active, if any. Elements other than the active element are always displayed with a raised relief.
func (*Scrollbar) ActiveReliefM ¶ added in v1.0.16
ActiveReliefM is like ActiveRelief but panics on error.
func (*Scrollbar) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Scrollbar) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Scrollbar) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scrollbar) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Scrollbar) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Scrollbar) ElementBorderWidth ¶ added in v1.0.14
ElementBorderWidth reports the width of borders drawn around the internal elements of the scrollbar (the two arrows and the slider). The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If this value is less than zero, the value of the \fB-borderwidth\fR option is used in its place.
func (*Scrollbar) ElementBorderWidthM ¶ added in v1.0.16
ElementBorderWidthM is like ElementBorderWidth but panics on error.
func (*Scrollbar) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Scrollbar) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Scrollbar) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Scrollbar) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Scrollbar) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Scrollbar) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Scrollbar) Jump ¶ added in v1.0.14
For widgets with a slider that can be dragged to adjust a value, such as scrollbars, this option determines when notifications are made about changes in the value. The option's value must be a boolean of the form accepted by \fBTcl_GetBoolean\fR. If the value is false, updates are made continuously as the slider is dragged. If the value is true, updates are delayed until the mouse button is released to end the drag; at that point a single notification is made (the value TODO .QW(jumps) rather than changing smoothly).
func (*Scrollbar) Orient ¶ added in v1.0.14
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*Scrollbar) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Scrollbar) RepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Scrollbar) RepeatDelayM ¶ added in v1.0.16
RepeatDelayM is like RepeatDelay but panics on error.
func (*Scrollbar) RepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Scrollbar) RepeatIntervalM ¶ added in v1.0.16
RepeatIntervalM is like RepeatInterval but panics on error.
func (*Scrollbar) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*Scrollbar) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*Scrollbar) SetActiveRelief ¶ added in v1.0.14
ActiveRelief reports the relief to use when displaying the element that is active, if any. Elements other than the active element are always displayed with a raised relief.
func (*Scrollbar) SetActiveReliefM ¶ added in v1.0.16
SetActiveReliefM is like ActiveRelief but panics on error
func (*Scrollbar) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Scrollbar) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Scrollbar) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scrollbar) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Scrollbar) SetCommand ¶ added in v1.0.14
Command specifies the prefix of a Tcl command to invoke to change the view in the widget associated with the scrollbar. When a user requests a view change by manipulating the scrollbar, a Tcl command is invoked. The actual command consists of this option followed by additional information as described later. This option almost always has a value such as \fB.t xview\fR or \fB.t yview\fR, consisting of the name of a widget and either \fBxview\fR (if the scrollbar is for horizontal scrolling) or \fByview\fR (for vertical scrolling). All scrollable widgets have \fBxview\fR and \fByview\fR commands that take exactly the additional arguments appended by the scrollbar as described in \fBSCROLLING COMMANDS\fR below.
func (*Scrollbar) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*Scrollbar) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Scrollbar) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Scrollbar) SetElementBorderWidth ¶ added in v1.0.14
ElementBorderWidth reports the width of borders drawn around the internal elements of the scrollbar (the two arrows and the slider). The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If this value is less than zero, the value of the \fB-borderwidth\fR option is used in its place.
func (*Scrollbar) SetElementBorderWidthM ¶ added in v1.0.16
SetElementBorderWidthM is like ElementBorderWidth but panics on error
func (*Scrollbar) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Scrollbar) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Scrollbar) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Scrollbar) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Scrollbar) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Scrollbar) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Scrollbar) SetJump ¶ added in v1.0.14
For widgets with a slider that can be dragged to adjust a value, such as scrollbars, this option determines when notifications are made about changes in the value. The option's value must be a boolean of the form accepted by \fBTcl_GetBoolean\fR. If the value is false, updates are made continuously as the slider is dragged. If the value is true, updates are delayed until the mouse button is released to end the drag; at that point a single notification is made (the value TODO .QW(jumps) rather than changing smoothly).
func (*Scrollbar) SetOrient ¶ added in v1.0.14
For widgets that can lay themselves out with either a horizontal or vertical orientation, such as scrollbars, this option specifies which orientation should be used. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*Scrollbar) SetOrientM ¶ added in v1.0.16
SetOrientM is like Orient but panics on error
func (*Scrollbar) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Scrollbar) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Scrollbar) SetRepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*Scrollbar) SetRepeatDelayM ¶ added in v1.0.16
SetRepeatDelayM is like RepeatDelay but panics on error
func (*Scrollbar) SetRepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*Scrollbar) SetRepeatIntervalM ¶ added in v1.0.16
SetRepeatIntervalM is like RepeatInterval but panics on error
func (*Scrollbar) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Scrollbar) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Scrollbar) SetTroughColor ¶ added in v1.0.14
TroughColor reports the color to use for the rectangular trough areas in widgets such as scrollbars and scales. This option is ignored for scrollbars on Windows (native widget does not recognize this option).
func (*Scrollbar) SetTroughColorM ¶ added in v1.0.16
SetTroughColorM is like TroughColor but panics on error
func (*Scrollbar) SetWidth ¶ added in v1.0.14
Width reports the desired narrow dimension of the scrollbar window, not including 3-D border, if any. For vertical scrollbars this will be the width and for horizontal scrollbars this will be the height. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Scrollbar) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Scrollbar) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Scrollbar) TroughColor ¶ added in v1.0.14
TroughColor reports the color to use for the rectangular trough areas in widgets such as scrollbars and scales. This option is ignored for scrollbars on Windows (native widget does not recognize this option).
func (*Scrollbar) TroughColorM ¶ added in v1.0.16
TroughColorM is like TroughColor but panics on error.
func (*Scrollbar) Width ¶ added in v1.0.14
Width reports the desired narrow dimension of the scrollbar window, not including 3-D border, if any. For vertical scrollbars this will be the width and for horizontal scrollbars this will be the height. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
type SpinBox ¶ added in v1.0.14
type SpinBox struct {
Window
}
SpinBox represents the Tk spinbox widget.
func (*SpinBox) ActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*SpinBox) ActiveBackgroundM ¶ added in v1.0.16
ActiveBackgroundM is like ActiveBackground but panics on error.
func (*SpinBox) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*SpinBox) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*SpinBox) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*SpinBox) ButtonBackground ¶ added in v1.0.14
The background color to be used for the spin buttons.
func (*SpinBox) ButtonBackgroundM ¶ added in v1.0.16
ButtonBackgroundM is like ButtonBackground but panics on error.
func (*SpinBox) ButtonCursor ¶ added in v1.0.14
The cursor to be used when over the spin buttons. If this is empty (the default), a default cursor will be used.
func (*SpinBox) ButtonCursorM ¶ added in v1.0.16
ButtonCursorM is like ButtonCursor but panics on error.
func (*SpinBox) ButtonDownRelief ¶ added in v1.0.14
The relief to be used for the upper spin button.
func (*SpinBox) ButtonDownReliefM ¶ added in v1.0.16
ButtonDownReliefM is like ButtonDownRelief but panics on error.
func (*SpinBox) ButtonuPRelief ¶ added in v1.0.14
The relief to be used for the lower spin button.
func (*SpinBox) ButtonuPReliefM ¶ added in v1.0.16
ButtonuPReliefM is like ButtonuPRelief but panics on error.
func (*SpinBox) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*SpinBox) DisabledBackground ¶ added in v1.0.14
DisabledBackground reports the background color to use when the spinbox is disabled. If this option is the empty string, the normal background color is used.
func (*SpinBox) DisabledBackgroundM ¶ added in v1.0.16
DisabledBackgroundM is like DisabledBackground but panics on error.
func (*SpinBox) DisabledForeground ¶ added in v1.0.14
DisabledForeground reports the foreground color to use when the spinbox is disabled. If this option is the empty string, the normal foreground color is used.
func (*SpinBox) DisabledForegroundM ¶ added in v1.0.16
DisabledForegroundM is like DisabledForeground but panics on error.
func (*SpinBox) ExportSelection ¶ added in v1.0.14
ExportSelection reports whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*SpinBox) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*SpinBox) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*SpinBox) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*SpinBox) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*SpinBox) Format ¶ added in v1.0.14
Format reports an alternate format to use when setting the string value when using the \fB-from\fR and \fB-to\fR range. This must be a format specifier of the form \fB%<pad>.<pad>f\fR, as it will format a floating-point number.
func (*SpinBox) From ¶ added in v1.0.14
A floating-point value corresponding to the lowest value for a spinbox, to be used in conjunction with \fB-to\fR and \fB-increment\fR. When all are specified correctly, the spinbox will use these values to control its contents. This value must be less than the \fB-to\fR option. If \fB-values\fR is specified, it supersedes this option.
func (*SpinBox) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*SpinBox) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*SpinBox) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*SpinBox) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*SpinBox) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*SpinBox) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*SpinBox) Increment ¶ added in v1.0.14
A floating-point value specifying the increment. When used with \fB-from\fR and \fB-to\fR, the value in the widget will be adjusted by \fB-increment\fR when a spin button is pressed (up adds the value, down subtracts the value).
func (*SpinBox) IncrementM ¶ added in v1.0.16
IncrementM is like Increment but panics on error.
func (*SpinBox) InsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*SpinBox) InsertBackgroundM ¶ added in v1.0.16
InsertBackgroundM is like InsertBackground but panics on error.
func (*SpinBox) InsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) InsertBorderWidthM ¶ added in v1.0.16
InsertBorderWidthM is like InsertBorderWidth but panics on error.
func (*SpinBox) InsertOffTime ¶ added in v1.0.14
InsertOffTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*SpinBox) InsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*SpinBox) InsertOnTime ¶ added in v1.0.14
InsertOnTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*SpinBox) InsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*SpinBox) InsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*SpinBox) InsertWidthM ¶ added in v1.0.16
InsertWidthM is like InsertWidth but panics on error.
func (*SpinBox) InvalidCommand ¶ added in v1.0.14
InvalidCommand reports a script to eval when \fB-validatecommand\fR returns 0. Setting it to an empty string disables this feature (the default). The best use of this option is to set it to \fIbell\fR. See \fBVALIDATION\fR below for more information.
func (*SpinBox) InvalidCommandM ¶ added in v1.0.16
InvalidCommandM is like InvalidCommand but panics on error.
func (*SpinBox) Justify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*SpinBox) ReadonlyBackground ¶ added in v1.0.14
ReadonlyBackground reports the background color to use when the spinbox is readonly. If this option is the empty string, the normal background color is used.
func (*SpinBox) ReadonlyBackgroundM ¶ added in v1.0.16
ReadonlyBackgroundM is like ReadonlyBackground but panics on error.
func (*SpinBox) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*SpinBox) RepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*SpinBox) RepeatDelayM ¶ added in v1.0.16
RepeatDelayM is like RepeatDelay but panics on error.
func (*SpinBox) RepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*SpinBox) RepeatIntervalM ¶ added in v1.0.16
RepeatIntervalM is like RepeatInterval but panics on error.
func (*SpinBox) SelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*SpinBox) SelectBackgroundM ¶ added in v1.0.16
SelectBackgroundM is like SelectBackground but panics on error.
func (*SpinBox) SelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) SelectBorderWidthM ¶ added in v1.0.17
SelectBorderWidthM is like SelectBorderWidth but panics on error.
func (*SpinBox) SelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*SpinBox) SelectForegroundM ¶ added in v1.0.16
SelectForegroundM is like SelectForeground but panics on error.
func (*SpinBox) SetActiveBackground ¶ added in v1.0.14
ActiveBackground reports background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. If strict Motif compliance has been requested by setting the \fBtk_strictMotif\fR variable, this option will normally be ignored; the normal background color will be used instead. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.
func (*SpinBox) SetActiveBackgroundM ¶ added in v1.0.16
SetActiveBackgroundM is like ActiveBackground but panics on error
func (*SpinBox) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*SpinBox) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*SpinBox) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*SpinBox) SetButtonBackground ¶ added in v1.0.14
The background color to be used for the spin buttons.
func (*SpinBox) SetButtonBackgroundM ¶ added in v1.0.16
SetButtonBackgroundM is like ButtonBackground but panics on error
func (*SpinBox) SetButtonCursor ¶ added in v1.0.14
The cursor to be used when over the spin buttons. If this is empty (the default), a default cursor will be used.
func (*SpinBox) SetButtonCursorM ¶ added in v1.0.16
SetButtonCursorM is like ButtonCursor but panics on error
func (*SpinBox) SetButtonDownRelief ¶ added in v1.0.14
The relief to be used for the upper spin button.
func (*SpinBox) SetButtonDownReliefM ¶ added in v1.0.16
SetButtonDownReliefM is like ButtonDownRelief but panics on error
func (*SpinBox) SetButtonuPRelief ¶ added in v1.0.14
The relief to be used for the lower spin button.
func (*SpinBox) SetButtonuPReliefM ¶ added in v1.0.16
SetButtonuPReliefM is like ButtonuPRelief but panics on error
func (*SpinBox) SetCommand ¶ added in v1.0.14
Command specifies a Tcl command to invoke whenever a spinbutton is invoked. The command recognizes several percent substitutions: \fB%W\fR for the widget path, \fB%s\fR for the current value of the widget, and \fB%d\fR for the direction of the button pressed (\fBup\fR or \fBdown\fR).
func (*SpinBox) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*SpinBox) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*SpinBox) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*SpinBox) SetDisabledBackground ¶ added in v1.0.14
DisabledBackground reports the background color to use when the spinbox is disabled. If this option is the empty string, the normal background color is used.
func (*SpinBox) SetDisabledBackgroundM ¶ added in v1.0.16
SetDisabledBackgroundM is like DisabledBackground but panics on error
func (*SpinBox) SetDisabledForeground ¶ added in v1.0.14
DisabledForeground reports the foreground color to use when the spinbox is disabled. If this option is the empty string, the normal foreground color is used.
func (*SpinBox) SetDisabledForegroundM ¶ added in v1.0.16
SetDisabledForegroundM is like DisabledForeground but panics on error
func (*SpinBox) SetExportSelection ¶ added in v1.0.14
ExportSelection specifies whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*SpinBox) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*SpinBox) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*SpinBox) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*SpinBox) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*SpinBox) SetFormat ¶ added in v1.0.14
Format reports an alternate format to use when setting the string value when using the \fB-from\fR and \fB-to\fR range. This must be a format specifier of the form \fB%<pad>.<pad>f\fR, as it will format a floating-point number.
func (*SpinBox) SetFormatM ¶ added in v1.0.16
SetFormatM is like Format but panics on error
func (*SpinBox) SetFrom ¶ added in v1.0.14
A floating-point value corresponding to the lowest value for a spinbox, to be used in conjunction with \fB-to\fR and \fB-increment\fR. When all are specified correctly, the spinbox will use these values to control its contents. This value must be less than the \fB-to\fR option. If \fB-values\fR is specified, it supersedes this option.
func (*SpinBox) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*SpinBox) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*SpinBox) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*SpinBox) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*SpinBox) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*SpinBox) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*SpinBox) SetIncrement ¶ added in v1.0.14
A floating-point value specifying the increment. When used with \fB-from\fR and \fB-to\fR, the value in the widget will be adjusted by \fB-increment\fR when a spin button is pressed (up adds the value, down subtracts the value).
func (*SpinBox) SetIncrementM ¶ added in v1.0.16
SetIncrementM is like Increment but panics on error
func (*SpinBox) SetInsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*SpinBox) SetInsertBackgroundM ¶ added in v1.0.16
SetInsertBackgroundM is like InsertBackground but panics on error
func (*SpinBox) SetInsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) SetInsertBorderWidthM ¶ added in v1.0.16
SetInsertBorderWidthM is like InsertBorderWidth but panics on error
func (*SpinBox) SetInsertOffTime ¶ added in v1.0.14
InsertOffTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*SpinBox) SetInsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*SpinBox) SetInsertOnTime ¶ added in v1.0.14
InsertOnTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*SpinBox) SetInsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*SpinBox) SetInsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*SpinBox) SetInsertWidthM ¶ added in v1.0.16
SetInsertWidthM is like InsertWidth but panics on error
func (*SpinBox) SetInvalidCommand ¶ added in v1.0.14
InvalidCommand reports a script to eval when \fB-validatecommand\fR returns 0. Setting it to an empty string disables this feature (the default). The best use of this option is to set it to \fIbell\fR. See \fBVALIDATION\fR below for more information.
func (*SpinBox) SetInvalidCommandM ¶ added in v1.0.16
SetInvalidCommandM is like InvalidCommand but panics on error
func (*SpinBox) SetJustify ¶ added in v1.0.14
When there are multiple lines of text displayed in a widget, this option determines how the lines line up with each other. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR. \fBLeft\fR means that the lines' left edges all line up, \fBcenter\fR means that the lines' centers are aligned, and \fBright\fR means that the lines' right edges line up.
func (*SpinBox) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*SpinBox) SetReadonlyBackground ¶ added in v1.0.14
ReadonlyBackground reports the background color to use when the spinbox is readonly. If this option is the empty string, the normal background color is used.
func (*SpinBox) SetReadonlyBackgroundM ¶ added in v1.0.16
SetReadonlyBackgroundM is like ReadonlyBackground but panics on error
func (*SpinBox) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*SpinBox) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*SpinBox) SetRepeatDelay ¶ added in v1.0.14
RepeatDelay reports the number of milliseconds a button or key must be held down before it begins to auto-repeat. Used, for example, on the up- and down-arrows in scrollbars.
func (*SpinBox) SetRepeatDelayM ¶ added in v1.0.16
SetRepeatDelayM is like RepeatDelay but panics on error
func (*SpinBox) SetRepeatInterval ¶ added in v1.0.14
Used in conjunction with \fB-repeatdelay\fR: once auto-repeat begins, this option determines the number of milliseconds between auto-repeats.
func (*SpinBox) SetRepeatIntervalM ¶ added in v1.0.16
SetRepeatIntervalM is like RepeatInterval but panics on error
func (*SpinBox) SetSelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*SpinBox) SetSelectBackgroundM ¶ added in v1.0.16
SetSelectBackgroundM is like SelectBackground but panics on error
func (*SpinBox) SetSelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*SpinBox) SetSelectBorderWidthM ¶ added in v1.0.17
SetSelectBorderWidthM is like SelectBorderWidth but panics on error
func (*SpinBox) SetSelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*SpinBox) SetSelectForegroundM ¶ added in v1.0.16
SetSelectForegroundM is like SelectForeground but panics on error
func (*SpinBox) SetState ¶ added in v1.0.14
State reports one of three states for the spinbox: \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. If the spinbox is readonly, then the value may not be changed using widget commands and no insertion cursor will be displayed, even if the input focus is in the widget; the contents of the widget may still be selected. If the spinbox is disabled, the value may not be changed, no insertion cursor will be displayed, the contents will not be selectable, and the spinbox may be displayed in a different color, depending on the values of the \fB-disabledforeground\fR and \fB-disabledbackground\fR options.
func (*SpinBox) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*SpinBox) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*SpinBox) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*SpinBox) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*SpinBox) SetTo ¶ added in v1.0.14
A floating-point value corresponding to the highest value for the spinbox, to be used in conjunction with \fB-from\fR and \fB-increment\fR. When all are specified correctly, the spinbox will use these values to control its contents. This value must be greater than the \fB-from\fR option. If \fB-values\fR is specified, it supersedes this option.
func (*SpinBox) SetValidate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. It defaults to \fBnone\fR. When you want validation, you must explicitly state which mode you wish to use. See \fBVALIDATION\fR below for more.
func (*SpinBox) SetValidateCommand ¶ added in v1.0.14
ValidateCommand reports a script to evaluate when you want to validate the input in the widget. Setting it to an empty string disables this feature (the default). Validation occurs according to the value of \fB-validate\fR. This command must return a valid Tcl boolean value. If it returns 0 (or the valid Tcl boolean equivalent) then the value of the widget will not change and the \fB-invalidcommand\fR will be evaluated if it is set. If it returns 1, then value will be changed. See \fBVALIDATION\fR below for more information.
func (*SpinBox) SetValidateCommandM ¶ added in v1.0.16
SetValidateCommandM is like ValidateCommand but panics on error
func (*SpinBox) SetValidateM ¶ added in v1.0.16
SetValidateM is like Validate but panics on error
func (*SpinBox) SetValues ¶ added in v1.0.14
Must be a proper list value. If specified, the spinbox will use these values as to control its contents, starting with the first value. This option has precedence over the \fB-from\fR and \fB-to\fR range.
func (*SpinBox) SetValuesM ¶ added in v1.0.16
SetValuesM is like Values but panics on error
func (*SpinBox) SetWidth ¶ added in v1.0.14
Width reports an integer value indicating the desired width of the spinbox window, in average-size characters of the widget's font. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text.
func (*SpinBox) SetWrap ¶ added in v1.0.14
Must be a proper boolean value. If on, the spinbox will wrap around the values of data in the widget.
func (*SpinBox) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*SpinBox) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*SpinBox) State ¶ added in v1.0.14
State reports one of three states for the spinbox: \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. If the spinbox is readonly, then the value may not be changed using widget commands and no insertion cursor will be displayed, even if the input focus is in the widget; the contents of the widget may still be selected. If the spinbox is disabled, the value may not be changed, no insertion cursor will be displayed, the contents will not be selectable, and the spinbox may be displayed in a different color, depending on the values of the \fB-disabledforeground\fR and \fB-disabledbackground\fR options.
func (*SpinBox) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*SpinBox) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*SpinBox) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*SpinBox) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*SpinBox) To ¶ added in v1.0.14
A floating-point value corresponding to the highest value for the spinbox, to be used in conjunction with \fB-from\fR and \fB-increment\fR. When all are specified correctly, the spinbox will use these values to control its contents. This value must be greater than the \fB-from\fR option. If \fB-values\fR is specified, it supersedes this option.
func (*SpinBox) Validate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. It defaults to \fBnone\fR. When you want validation, you must explicitly state which mode you wish to use. See \fBVALIDATION\fR below for more.
func (*SpinBox) ValidateCommand ¶ added in v1.0.14
ValidateCommand reports a script to evaluate when you want to validate the input in the widget. Setting it to an empty string disables this feature (the default). Validation occurs according to the value of \fB-validate\fR. This command must return a valid Tcl boolean value. If it returns 0 (or the valid Tcl boolean equivalent) then the value of the widget will not change and the \fB-invalidcommand\fR will be evaluated if it is set. If it returns 1, then value will be changed. See \fBVALIDATION\fR below for more information.
func (*SpinBox) ValidateCommandM ¶ added in v1.0.16
ValidateCommandM is like ValidateCommand but panics on error.
func (*SpinBox) Values ¶ added in v1.0.14
Must be a proper list value. If specified, the spinbox will use these values as to control its contents, starting with the first value. This option has precedence over the \fB-from\fR and \fB-to\fR range.
func (*SpinBox) Width ¶ added in v1.0.14
Width reports an integer value indicating the desired width of the spinbox window, in average-size characters of the widget's font. If the value is less than or equal to zero, the widget picks a size just large enough to hold its current text.
type TButton ¶ added in v1.0.13
type TButton struct {
Window
}
TButton represents the Tk ttk::button widget.
func (*TButton) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TButton) Compound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TButton) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TButton) Default ¶ added in v1.0.14
May be set to one of \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In a dialog box, one button may be designated the TODO .QW(default) button (meaning, roughly, TODO .QW("the one that gets invoked when the user presses <Enter>" ).) \fBactive\fR indicates that this is currently the default button; \fBnormal\fR means that it may become the default button, and \fBdisabled\fR means that it is not defaultable. The default is \fBnormal\fR.
func (*TButton) Image ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TButton) SetCommand ¶ added in v1.0.14
A script to evaluate when the widget is invoked.
func (*TButton) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*TButton) SetCompound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TButton) SetCompoundM ¶ added in v1.0.16
SetCompoundM is like Compound but panics on error
func (*TButton) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TButton) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TButton) SetDefault ¶ added in v1.0.14
May be set to one of \fBnormal\fR, \fBactive\fR, or \fBdisabled\fR. In a dialog box, one button may be designated the TODO .QW(default) button (meaning, roughly, TODO .QW("the one that gets invoked when the user presses <Enter>" ).) \fBactive\fR indicates that this is currently the default button; \fBnormal\fR means that it may become the default button, and \fBdisabled\fR means that it is not defaultable. The default is \fBnormal\fR.
func (*TButton) SetDefaultM ¶ added in v1.0.16
SetDefaultM is like Default but panics on error
func (*TButton) SetImage ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TButton) SetState ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TButton) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TButton) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TButton) SetText ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TButton) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TButton) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*TButton) SetUnderline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TButton) SetUnderlineM ¶ added in v1.0.16
SetUnderlineM is like Underline but panics on error
func (*TButton) SetWidth ¶ added in v1.0.14
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TButton) State ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TButton) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TButton) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TButton) Text ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TButton) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TButton) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*TButton) Underline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TButton) UnderlineM ¶ added in v1.0.16
UnderlineM is like Underline but panics on error.
type TCheckButton ¶ added in v1.0.14
type TCheckButton struct {
Window
}
TCheckButton represents the Tk ttk::checkbutton widget.
func (*TCheckButton) Class ¶ added in v1.0.14
func (w *TCheckButton) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TCheckButton) ClassM ¶ added in v1.0.16
func (w *TCheckButton) ClassM() string
ClassM is like Class but panics on error.
func (*TCheckButton) Compound ¶ added in v1.0.14
func (w *TCheckButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TCheckButton) CompoundM ¶ added in v1.0.16
func (w *TCheckButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*TCheckButton) Cursor ¶ added in v1.0.14
func (w *TCheckButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TCheckButton) CursorM ¶ added in v1.0.16
func (w *TCheckButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*TCheckButton) Image ¶ added in v1.0.14
func (w *TCheckButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TCheckButton) ImageM ¶ added in v1.0.16
func (w *TCheckButton) ImageM() string
ImageM is like Image but panics on error.
func (*TCheckButton) OffValue ¶ added in v1.0.14
func (w *TCheckButton) OffValue() (string, error)
The value to store in the associated \fB-variable\fR when the widget is deselected. Defaults to \fB0\fR.
func (*TCheckButton) OffValueM ¶ added in v1.0.16
func (w *TCheckButton) OffValueM() string
OffValueM is like OffValue but panics on error.
func (*TCheckButton) OnValue ¶ added in v1.0.14
func (w *TCheckButton) OnValue() (string, error)
The value to store in the associated \fB-variable\fR when the widget is selected. Defaults to \fB1\fR.
func (*TCheckButton) OnValueM ¶ added in v1.0.16
func (w *TCheckButton) OnValueM() string
OnValueM is like OnValue but panics on error.
func (*TCheckButton) SetCommand ¶ added in v1.0.14
func (w *TCheckButton) SetCommand(value Command) error
A Tcl script to execute whenever the widget is invoked.
func (*TCheckButton) SetCommandM ¶ added in v1.0.16
func (w *TCheckButton) SetCommandM(value Command) *TCheckButton
SetCommandM is like Command but panics on error
func (*TCheckButton) SetCompound ¶ added in v1.0.14
func (w *TCheckButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TCheckButton) SetCompoundM ¶ added in v1.0.16
func (w *TCheckButton) SetCompoundM(value string) *TCheckButton
SetCompoundM is like Compound but panics on error
func (*TCheckButton) SetCursor ¶ added in v1.0.14
func (w *TCheckButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TCheckButton) SetCursorM ¶ added in v1.0.16
func (w *TCheckButton) SetCursorM(value string) *TCheckButton
SetCursorM is like Cursor but panics on error
func (*TCheckButton) SetImage ¶ added in v1.0.14
func (w *TCheckButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TCheckButton) SetImageM ¶ added in v1.0.16
func (w *TCheckButton) SetImageM(value string) *TCheckButton
SetImageM is like Image but panics on error
func (*TCheckButton) SetOffValue ¶ added in v1.0.14
func (w *TCheckButton) SetOffValue(value string) error
The value to store in the associated \fB-variable\fR when the widget is deselected. Defaults to \fB0\fR.
func (*TCheckButton) SetOffValueM ¶ added in v1.0.16
func (w *TCheckButton) SetOffValueM(value string) *TCheckButton
SetOffValueM is like OffValue but panics on error
func (*TCheckButton) SetOnValue ¶ added in v1.0.14
func (w *TCheckButton) SetOnValue(value string) error
The value to store in the associated \fB-variable\fR when the widget is selected. Defaults to \fB1\fR.
func (*TCheckButton) SetOnValueM ¶ added in v1.0.16
func (w *TCheckButton) SetOnValueM(value string) *TCheckButton
SetOnValueM is like OnValue but panics on error
func (*TCheckButton) SetState ¶ added in v1.0.14
func (w *TCheckButton) SetState(value string) error
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TCheckButton) SetStateM ¶ added in v1.0.16
func (w *TCheckButton) SetStateM(value string) *TCheckButton
SetStateM is like State but panics on error
func (*TCheckButton) SetStyle ¶ added in v1.0.14
func (w *TCheckButton) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TCheckButton) SetStyleM ¶ added in v1.0.16
func (w *TCheckButton) SetStyleM(value string) *TCheckButton
SetStyleM is like Style but panics on error
func (*TCheckButton) SetTakeFocus ¶ added in v1.0.14
func (w *TCheckButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TCheckButton) SetTakeFocusM ¶ added in v1.0.16
func (w *TCheckButton) SetTakeFocusM(value string) *TCheckButton
SetTakeFocusM is like TakeFocus but panics on error
func (*TCheckButton) SetText ¶ added in v1.0.14
func (w *TCheckButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TCheckButton) SetTextM ¶ added in v1.0.16
func (w *TCheckButton) SetTextM(value string) *TCheckButton
SetTextM is like Text but panics on error
func (*TCheckButton) SetTextVariable ¶ added in v1.0.15
func (w *TCheckButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TCheckButton) SetTextVariableM ¶ added in v1.0.16
func (w *TCheckButton) SetTextVariableM(value string) *TCheckButton
SetTextVariableM is like TextVariable but panics on error
func (*TCheckButton) SetUnderline ¶ added in v1.0.14
func (w *TCheckButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TCheckButton) SetUnderlineM ¶ added in v1.0.16
func (w *TCheckButton) SetUnderlineM(value string) *TCheckButton
SetUnderlineM is like Underline but panics on error
func (*TCheckButton) SetVariable ¶ added in v1.0.15
func (w *TCheckButton) SetVariable(value string) error
The name of a global variable whose value is linked to the widget. Defaults to the widget pathname if not specified.
func (*TCheckButton) SetVariableM ¶ added in v1.0.16
func (w *TCheckButton) SetVariableM(value string) *TCheckButton
SetVariableM is like Variable but panics on error
func (*TCheckButton) SetWidth ¶ added in v1.0.14
func (w *TCheckButton) SetWidth(value string) error
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TCheckButton) SetWidthM ¶ added in v1.0.16
func (w *TCheckButton) SetWidthM(value string) *TCheckButton
SetWidthM is like Width but panics on error
func (*TCheckButton) State ¶ added in v1.0.14
func (w *TCheckButton) State() (string, error)
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TCheckButton) StateM ¶ added in v1.0.16
func (w *TCheckButton) StateM() string
StateM is like State but panics on error.
func (*TCheckButton) Style ¶ added in v1.0.14
func (w *TCheckButton) Style() (string, error)
May be used to specify a custom widget style.
func (*TCheckButton) StyleM ¶ added in v1.0.16
func (w *TCheckButton) StyleM() string
StyleM is like Style but panics on error.
func (*TCheckButton) TakeFocus ¶ added in v1.0.14
func (w *TCheckButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TCheckButton) TakeFocusM ¶ added in v1.0.16
func (w *TCheckButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TCheckButton) Text ¶ added in v1.0.14
func (w *TCheckButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TCheckButton) TextM ¶ added in v1.0.16
func (w *TCheckButton) TextM() string
TextM is like Text but panics on error.
func (*TCheckButton) TextVariable ¶ added in v1.0.15
func (w *TCheckButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TCheckButton) TextVariableM ¶ added in v1.0.16
func (w *TCheckButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*TCheckButton) Underline ¶ added in v1.0.14
func (w *TCheckButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TCheckButton) UnderlineM ¶ added in v1.0.16
func (w *TCheckButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*TCheckButton) Variable ¶ added in v1.0.15
func (w *TCheckButton) Variable() (string, error)
The name of a global variable whose value is linked to the widget. Defaults to the widget pathname if not specified.
func (*TCheckButton) VariableM ¶ added in v1.0.16
func (w *TCheckButton) VariableM() string
VariableM is like Variable but panics on error.
func (*TCheckButton) Width ¶ added in v1.0.14
func (w *TCheckButton) Width() (string, error)
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TCheckButton) WidthM ¶ added in v1.0.16
func (w *TCheckButton) WidthM() string
WidthM is like Width but panics on error.
type TComboBox ¶ added in v1.0.14
type TComboBox struct {
Window
}
TComboBox represents the Tk ttk::combobox widget.
func (*TComboBox) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TComboBox) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TComboBox) ExportSelection ¶ added in v1.0.14
Boolean value. If set, the widget selection is linked to the X selection.
func (*TComboBox) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*TComboBox) Height ¶ added in v1.0.14
Height reports the height of the pop-down listbox, in rows.
func (*TComboBox) Justify ¶ added in v1.0.14
Justify reports how the text is aligned within the widget. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
func (*TComboBox) PostCommand ¶ added in v1.0.14
A Tcl script to evaluate immediately before displaying the listbox. The \fB-postcommand\fR script may specify the \fB-values\fR to display.
func (*TComboBox) PostCommandM ¶ added in v1.0.16
PostCommandM is like PostCommand but panics on error.
func (*TComboBox) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TComboBox) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TComboBox) SetExportSelection ¶ added in v1.0.14
Boolean value. If set, the widget selection is linked to the X selection.
func (*TComboBox) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*TComboBox) SetHeight ¶ added in v1.0.14
Height reports the height of the pop-down listbox, in rows.
func (*TComboBox) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*TComboBox) SetJustify ¶ added in v1.0.14
Justify reports how the text is aligned within the widget. Must be one of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
func (*TComboBox) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*TComboBox) SetPostCommand ¶ added in v1.0.14
A Tcl script to evaluate immediately before displaying the listbox. The \fB-postcommand\fR script may specify the \fB-values\fR to display.
func (*TComboBox) SetPostCommandM ¶ added in v1.0.16
SetPostCommandM is like PostCommand but panics on error
func (*TComboBox) SetState ¶ added in v1.0.14
One of \fBnormal\fR, \fBreadonly\fR, or \fBdisabled\fR. In the \fBreadonly\fR state, the value may not be edited directly, and the user can only select one of the \fB-values\fR from the dropdown list. In the \fBnormal\fR state, the text field is directly editable. In the \fBdisabled\fR state, no interaction is possible.
func (*TComboBox) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TComboBox) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TComboBox) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable whose value is linked to the widget value. Whenever the variable changes value the widget value is updated, and vice versa.
func (*TComboBox) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*TComboBox) SetValues ¶ added in v1.0.14
Values reports the list of values to display in the drop-down listbox.
func (*TComboBox) SetValuesM ¶ added in v1.0.16
SetValuesM is like Values but panics on error
func (*TComboBox) SetWidth ¶ added in v1.0.14
Width reports an integer value indicating the desired width of the entry window, in average-size characters of the widget's font.
func (*TComboBox) State ¶ added in v1.0.14
One of \fBnormal\fR, \fBreadonly\fR, or \fBdisabled\fR. In the \fBreadonly\fR state, the value may not be edited directly, and the user can only select one of the \fB-values\fR from the dropdown list. In the \fBnormal\fR state, the text field is directly editable. In the \fBdisabled\fR state, no interaction is possible.
func (*TComboBox) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TComboBox) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TComboBox) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable whose value is linked to the widget value. Whenever the variable changes value the widget value is updated, and vice versa.
func (*TComboBox) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*TComboBox) Values ¶ added in v1.0.14
Values reports the list of values to display in the drop-down listbox.
type TEntry ¶ added in v1.0.13
type TEntry struct {
Window
}
TEntry represents the Tk ttk::entry widget.
func (*TEntry) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TEntry) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TEntry) ExportSelection ¶ added in v1.0.14
A boolean value specifying whether or not a selection in the widget should be linked to the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.
func (*TEntry) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*TEntry) Font ¶ added in v1.0.18
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*TEntry) Foreground ¶ added in v1.0.18
Foreground reports the normal foreground color to use when displaying the widget.
func (*TEntry) ForegroundM ¶ added in v1.0.18
ForegroundM is like Foreground but panics on error.
func (*TEntry) InvalidCommand ¶ added in v1.0.14
A script template to evaluate whenever the \fB-validatecommand\fR returns 0. See \fBVALIDATION\fR below for more information.
func (*TEntry) InvalidCommandM ¶ added in v1.0.16
InvalidCommandM is like InvalidCommand but panics on error.
func (*TEntry) Justify ¶ added in v1.0.14
Justify reports how the text is aligned within the entry widget. One of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
func (*TEntry) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TEntry) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TEntry) SetExportSelection ¶ added in v1.0.14
A boolean value specifying whether or not a selection in the widget should be linked to the X selection. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection.
func (*TEntry) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*TEntry) SetFont ¶ added in v1.0.18
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*TEntry) SetForeground ¶ added in v1.0.18
Foreground reports the normal foreground color to use when displaying the widget.
func (*TEntry) SetForegroundM ¶ added in v1.0.18
SetForegroundM is like Foreground but panics on error
func (*TEntry) SetInvalidCommand ¶ added in v1.0.14
A script template to evaluate whenever the \fB-validatecommand\fR returns 0. See \fBVALIDATION\fR below for more information.
func (*TEntry) SetInvalidCommandM ¶ added in v1.0.16
SetInvalidCommandM is like InvalidCommand but panics on error
func (*TEntry) SetJustify ¶ added in v1.0.14
Justify reports how the text is aligned within the entry widget. One of \fBleft\fR, \fBcenter\fR, or \fBright\fR.
func (*TEntry) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*TEntry) SetShow ¶ added in v1.0.14
If this option is specified, then the true contents of the entry are not displayed in the window. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as TODO .QW(*) or a bullet. This is useful, for example, if the entry is to be used to enter a password. If characters in the entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the entry.
func (*TEntry) SetState ¶ added in v1.0.14
Compatibility option; see \fIttk::widget(n)\fR for details. Specifies one of three states for the entry, \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. See \fBWIDGET STATES\fR, below.
func (*TEntry) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TEntry) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TEntry) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable whose value is linked to the entry widget's contents. Whenever the variable changes value, the widget's contents are updated, and vice versa.
func (*TEntry) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*TEntry) SetValidate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. Default is \fBnone\fR, meaning that validation is disabled. See \fBVALIDATION\fR below.
func (*TEntry) SetValidateCommand ¶ added in v1.0.14
A script template to evaluate whenever validation is triggered. If set to the empty string (the default), validation is disabled. The script must return a boolean value. See \fBVALIDATION\fR below.
func (*TEntry) SetValidateCommandM ¶ added in v1.0.16
SetValidateCommandM is like ValidateCommand but panics on error
func (*TEntry) SetValidateM ¶ added in v1.0.16
SetValidateM is like Validate but panics on error
func (*TEntry) SetWidth ¶ added in v1.0.14
Width reports an integer value indicating the desired width of the entry window, in average-size characters of the widget's font.
func (*TEntry) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*TEntry) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*TEntry) Show ¶ added in v1.0.14
If this option is specified, then the true contents of the entry are not displayed in the window. Instead, each character in the entry's value will be displayed as the first character in the value of this option, such as TODO .QW(*) or a bullet. This is useful, for example, if the entry is to be used to enter a password. If characters in the entry are selected and copied elsewhere, the information copied will be what is displayed, not the true contents of the entry.
func (*TEntry) State ¶ added in v1.0.14
Compatibility option; see \fIttk::widget(n)\fR for details. Specifies one of three states for the entry, \fBnormal\fR, \fBdisabled\fR, or \fBreadonly\fR. See \fBWIDGET STATES\fR, below.
func (*TEntry) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TEntry) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TEntry) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable whose value is linked to the entry widget's contents. Whenever the variable changes value, the widget's contents are updated, and vice versa.
func (*TEntry) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*TEntry) Validate ¶ added in v1.0.14
Validate reports the mode in which validation should operate: \fBnone\fR, \fBfocus\fR, \fBfocusin\fR, \fBfocusout\fR, \fBkey\fR, or \fBall\fR. Default is \fBnone\fR, meaning that validation is disabled. See \fBVALIDATION\fR below.
func (*TEntry) ValidateCommand ¶ added in v1.0.14
A script template to evaluate whenever validation is triggered. If set to the empty string (the default), validation is disabled. The script must return a boolean value. See \fBVALIDATION\fR below.
func (*TEntry) ValidateCommandM ¶ added in v1.0.16
ValidateCommandM is like ValidateCommand but panics on error.
type TFrame ¶ added in v1.0.13
type TFrame struct {
Window
}
TFrame represents the Tk ttk::frame widget.
func (*TFrame) BorderWidth ¶ added in v1.0.14
The desired width of the widget border. Defaults to 0. May be ignored depending on the theme used.
func (*TFrame) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*TFrame) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TFrame) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TFrame) Padding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TFrame) Relief ¶ added in v1.0.14
One of the standard Tk border styles: \fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR, \fBsolid\fR, or \fBsunken\fR. Defaults to \fBflat\fR.
func (*TFrame) SetBorderWidth ¶ added in v1.0.14
The desired width of the widget border. Defaults to 0. May be ignored depending on the theme used.
func (*TFrame) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*TFrame) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TFrame) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TFrame) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*TFrame) SetPadding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TFrame) SetPaddingM ¶ added in v1.0.16
SetPaddingM is like Padding but panics on error
func (*TFrame) SetRelief ¶ added in v1.0.14
One of the standard Tk border styles: \fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR, \fBsolid\fR, or \fBsunken\fR. Defaults to \fBflat\fR.
func (*TFrame) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*TFrame) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TFrame) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TFrame) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TFrame) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
type TLabel ¶ added in v1.0.13
type TLabel struct {
Window
}
TLabel represents the Tk ttk::label widget.
func (*TLabel) Anchor ¶ added in v1.0.14
Anchor reports how the information in the widget is positioned relative to the inner margins. Legal values are \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, and \fBcenter\fR. See also \fB-justify\fR.
func (*TLabel) Background ¶ added in v1.0.14
The widget's background color. If unspecified, the theme default is used.
func (*TLabel) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*TLabel) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TLabel) Compound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TLabel) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TLabel) Foreground ¶ added in v1.0.14
The widget's foreground color. If unspecified, the theme default is used.
func (*TLabel) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*TLabel) Image ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TLabel) Justify ¶ added in v1.0.14
If there are multiple lines of text, specifies how the lines are laid out relative to one another. One of \fBleft\fR, \fBcenter\fR, or \fBright\fR. See also \fB-anchor\fR.
func (*TLabel) Padding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TLabel) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget border. Valid values are \fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR, \fBsolid\fR, and \fBsunken\fR.
func (*TLabel) SetAnchor ¶ added in v1.0.14
Anchor reports how the information in the widget is positioned relative to the inner margins. Legal values are \fBn\fR, \fBne\fR, \fBe\fR, \fBse\fR, \fBs\fR, \fBsw\fR, \fBw\fR, \fBnw\fR, and \fBcenter\fR. See also \fB-justify\fR.
func (*TLabel) SetAnchorM ¶ added in v1.0.16
SetAnchorM is like Anchor but panics on error
func (*TLabel) SetBackground ¶ added in v1.0.14
The widget's background color. If unspecified, the theme default is used.
func (*TLabel) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*TLabel) SetCompound ¶ added in v1.0.14
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TLabel) SetCompoundM ¶ added in v1.0.16
SetCompoundM is like Compound but panics on error
func (*TLabel) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TLabel) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TLabel) SetForeground ¶ added in v1.0.14
The widget's foreground color. If unspecified, the theme default is used.
func (*TLabel) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*TLabel) SetImage ¶ added in v1.0.14
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TLabel) SetJustify ¶ added in v1.0.14
If there are multiple lines of text, specifies how the lines are laid out relative to one another. One of \fBleft\fR, \fBcenter\fR, or \fBright\fR. See also \fB-anchor\fR.
func (*TLabel) SetJustifyM ¶ added in v1.0.16
SetJustifyM is like Justify but panics on error
func (*TLabel) SetPadding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TLabel) SetPaddingM ¶ added in v1.0.16
SetPaddingM is like Padding but panics on error
func (*TLabel) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget border. Valid values are \fBflat\fR, \fBgroove\fR, \fBraised\fR, \fBridge\fR, \fBsolid\fR, and \fBsunken\fR.
func (*TLabel) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*TLabel) SetState ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TLabel) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TLabel) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TLabel) SetText ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TLabel) SetTextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TLabel) SetTextVariableM ¶ added in v1.0.16
SetTextVariableM is like TextVariable but panics on error
func (*TLabel) SetUnderline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TLabel) SetUnderlineM ¶ added in v1.0.16
SetUnderlineM is like Underline but panics on error
func (*TLabel) SetWidth ¶ added in v1.0.14
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TLabel) SetWrapLength ¶ added in v1.0.14
WrapLength reports the maximum line length (in pixels). If this option is less than or equal to zero, then automatic wrapping is not performed; otherwise the text is split into lines such that no line is longer than the specified value.
func (*TLabel) SetWrapLengthM ¶ added in v1.0.16
SetWrapLengthM is like WrapLength but panics on error
func (*TLabel) State ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TLabel) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TLabel) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TLabel) Text ¶ added in v1.0.13
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TLabel) TextVariable ¶ added in v1.0.15
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TLabel) TextVariableM ¶ added in v1.0.16
TextVariableM is like TextVariable but panics on error.
func (*TLabel) Underline ¶ added in v1.0.14
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TLabel) UnderlineM ¶ added in v1.0.16
UnderlineM is like Underline but panics on error.
func (*TLabel) Width ¶ added in v1.0.14
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TLabel) WrapLength ¶ added in v1.0.14
WrapLength reports the maximum line length (in pixels). If this option is less than or equal to zero, then automatic wrapping is not performed; otherwise the text is split into lines such that no line is longer than the specified value.
func (*TLabel) WrapLengthM ¶ added in v1.0.16
WrapLengthM is like WrapLength but panics on error.
type TLabelFrame ¶ added in v1.0.14
type TLabelFrame struct {
Window
}
TLabelFrame represents the Tk ttk::labelframe widget.
func (*TLabelFrame) Class ¶ added in v1.0.14
func (w *TLabelFrame) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TLabelFrame) ClassM ¶ added in v1.0.16
func (w *TLabelFrame) ClassM() string
ClassM is like Class but panics on error.
func (*TLabelFrame) Cursor ¶ added in v1.0.14
func (w *TLabelFrame) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TLabelFrame) CursorM ¶ added in v1.0.16
func (w *TLabelFrame) CursorM() string
CursorM is like Cursor but panics on error.
func (*TLabelFrame) Height ¶ added in v1.0.14
func (w *TLabelFrame) Height() (string, error)
If specified, the widget's requested height in pixels. (See \fIttk::frame(n)\fR for further notes on \fB-width\fR and \fB-height\fR).
func (*TLabelFrame) HeightM ¶ added in v1.0.16
func (w *TLabelFrame) HeightM() string
HeightM is like Height but panics on error.
func (*TLabelFrame) LabelAnchor ¶ added in v1.0.14
func (w *TLabelFrame) LabelAnchor() (string, error)
LabelAnchor reports where to place the label. Allowed values are (clockwise from the top upper left corner): \fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR, \fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR. The default value is theme-dependent.
func (*TLabelFrame) LabelAnchorM ¶ added in v1.0.16
func (w *TLabelFrame) LabelAnchorM() string
LabelAnchorM is like LabelAnchor but panics on error.
func (*TLabelFrame) LabelWidget ¶ added in v1.0.14
func (w *TLabelFrame) LabelWidget() (string, error)
The name of a widget to use for the label. If set, overrides the \fB-text\fR option. The \fB-labelwidget\fR must be a child of the \fBlabelframe\fR widget or one of the \fBlabelframe\fR's ancestors, and must belong to the same top-level widget as the \fBlabelframe\fR.
func (*TLabelFrame) LabelWidgetM ¶ added in v1.0.16
func (w *TLabelFrame) LabelWidgetM() string
LabelWidgetM is like LabelWidget but panics on error.
func (*TLabelFrame) Padding ¶ added in v1.0.14
func (w *TLabelFrame) Padding() (string, error)
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TLabelFrame) PaddingM ¶ added in v1.0.16
func (w *TLabelFrame) PaddingM() string
PaddingM is like Padding but panics on error.
func (*TLabelFrame) SetCursor ¶ added in v1.0.14
func (w *TLabelFrame) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TLabelFrame) SetCursorM ¶ added in v1.0.16
func (w *TLabelFrame) SetCursorM(value string) *TLabelFrame
SetCursorM is like Cursor but panics on error
func (*TLabelFrame) SetHeight ¶ added in v1.0.14
func (w *TLabelFrame) SetHeight(value string) error
If specified, the widget's requested height in pixels. (See \fIttk::frame(n)\fR for further notes on \fB-width\fR and \fB-height\fR).
func (*TLabelFrame) SetHeightM ¶ added in v1.0.16
func (w *TLabelFrame) SetHeightM(value string) *TLabelFrame
SetHeightM is like Height but panics on error
func (*TLabelFrame) SetLabelAnchor ¶ added in v1.0.14
func (w *TLabelFrame) SetLabelAnchor(value string) error
LabelAnchor reports where to place the label. Allowed values are (clockwise from the top upper left corner): \fBnw\fR, \fBn\fR, \fBne\fR, \fBen\fR, \fBe\fR, \fBes\fR, \fBse\fR, \fBs\fR,\fBsw\fR, \fBws\fR, \fBw\fR and \fBwn\fR. The default value is theme-dependent.
func (*TLabelFrame) SetLabelAnchorM ¶ added in v1.0.16
func (w *TLabelFrame) SetLabelAnchorM(value string) *TLabelFrame
SetLabelAnchorM is like LabelAnchor but panics on error
func (*TLabelFrame) SetLabelWidget ¶ added in v1.0.14
func (w *TLabelFrame) SetLabelWidget(value string) error
The name of a widget to use for the label. If set, overrides the \fB-text\fR option. The \fB-labelwidget\fR must be a child of the \fBlabelframe\fR widget or one of the \fBlabelframe\fR's ancestors, and must belong to the same top-level widget as the \fBlabelframe\fR.
func (*TLabelFrame) SetLabelWidgetM ¶ added in v1.0.16
func (w *TLabelFrame) SetLabelWidgetM(value string) *TLabelFrame
SetLabelWidgetM is like LabelWidget but panics on error
func (*TLabelFrame) SetPadding ¶ added in v1.0.14
func (w *TLabelFrame) SetPadding(value string) error
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TLabelFrame) SetPaddingM ¶ added in v1.0.16
func (w *TLabelFrame) SetPaddingM(value string) *TLabelFrame
SetPaddingM is like Padding but panics on error
func (*TLabelFrame) SetStyle ¶ added in v1.0.14
func (w *TLabelFrame) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TLabelFrame) SetStyleM ¶ added in v1.0.16
func (w *TLabelFrame) SetStyleM(value string) *TLabelFrame
SetStyleM is like Style but panics on error
func (*TLabelFrame) SetTakeFocus ¶ added in v1.0.14
func (w *TLabelFrame) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TLabelFrame) SetTakeFocusM ¶ added in v1.0.16
func (w *TLabelFrame) SetTakeFocusM(value string) *TLabelFrame
SetTakeFocusM is like TakeFocus but panics on error
func (*TLabelFrame) SetText ¶ added in v1.0.14
func (w *TLabelFrame) SetText(value string) error
Text reports the text of the label.
func (*TLabelFrame) SetTextM ¶ added in v1.0.16
func (w *TLabelFrame) SetTextM(value string) *TLabelFrame
SetTextM is like Text but panics on error
func (*TLabelFrame) SetUnderline ¶ added in v1.0.14
func (w *TLabelFrame) SetUnderline(value string) error
If set, specifies the integer index (0-based) of a character to underline in the text string. The underlined character is used for mnemonic activation. Mnemonic activation for a \fBttk::labelframe\fR sets the keyboard focus to the first child of the \fBttk::labelframe\fR widget.
func (*TLabelFrame) SetUnderlineM ¶ added in v1.0.16
func (w *TLabelFrame) SetUnderlineM(value string) *TLabelFrame
SetUnderlineM is like Underline but panics on error
func (*TLabelFrame) SetWidth ¶ added in v1.0.14
func (w *TLabelFrame) SetWidth(value string) error
If specified, the widget's requested width in pixels.
func (*TLabelFrame) SetWidthM ¶ added in v1.0.16
func (w *TLabelFrame) SetWidthM(value string) *TLabelFrame
SetWidthM is like Width but panics on error
func (*TLabelFrame) Style ¶ added in v1.0.14
func (w *TLabelFrame) Style() (string, error)
May be used to specify a custom widget style.
func (*TLabelFrame) StyleM ¶ added in v1.0.16
func (w *TLabelFrame) StyleM() string
StyleM is like Style but panics on error.
func (*TLabelFrame) TakeFocus ¶ added in v1.0.14
func (w *TLabelFrame) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TLabelFrame) TakeFocusM ¶ added in v1.0.16
func (w *TLabelFrame) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TLabelFrame) Text ¶ added in v1.0.14
func (w *TLabelFrame) Text() (string, error)
Text reports the text of the label.
func (*TLabelFrame) TextM ¶ added in v1.0.16
func (w *TLabelFrame) TextM() string
TextM is like Text but panics on error.
func (*TLabelFrame) Underline ¶ added in v1.0.14
func (w *TLabelFrame) Underline() (string, error)
If set, specifies the integer index (0-based) of a character to underline in the text string. The underlined character is used for mnemonic activation. Mnemonic activation for a \fBttk::labelframe\fR sets the keyboard focus to the first child of the \fBttk::labelframe\fR widget.
func (*TLabelFrame) UnderlineM ¶ added in v1.0.16
func (w *TLabelFrame) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*TLabelFrame) Width ¶ added in v1.0.14
func (w *TLabelFrame) Width() (string, error)
If specified, the widget's requested width in pixels.
func (*TLabelFrame) WidthM ¶ added in v1.0.16
func (w *TLabelFrame) WidthM() string
WidthM is like Width but panics on error.
type TMenuButton ¶ added in v1.0.14
type TMenuButton struct {
Window
}
TMenuButton represents the Tk ttk::menubutton widget.
func (*TMenuButton) Class ¶ added in v1.0.14
func (w *TMenuButton) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TMenuButton) ClassM ¶ added in v1.0.16
func (w *TMenuButton) ClassM() string
ClassM is like Class but panics on error.
func (*TMenuButton) Compound ¶ added in v1.0.14
func (w *TMenuButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TMenuButton) CompoundM ¶ added in v1.0.16
func (w *TMenuButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*TMenuButton) Cursor ¶ added in v1.0.14
func (w *TMenuButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TMenuButton) CursorM ¶ added in v1.0.16
func (w *TMenuButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*TMenuButton) Direction ¶ added in v1.0.14
func (w *TMenuButton) Direction() (string, error)
Direction reports where the menu is to be popped up relative to the menubutton. One of: \fBabove\fR, \fBbelow\fR, \fBleft\fR, \fBright\fR, or \fBflush\fR. The default is \fBbelow\fR. \fBflush\fR pops the menu up directly over the menubutton.
func (*TMenuButton) DirectionM ¶ added in v1.0.16
func (w *TMenuButton) DirectionM() string
DirectionM is like Direction but panics on error.
func (*TMenuButton) Image ¶ added in v1.0.14
func (w *TMenuButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TMenuButton) ImageM ¶ added in v1.0.16
func (w *TMenuButton) ImageM() string
ImageM is like Image but panics on error.
func (*TMenuButton) Menu ¶ added in v1.0.14
func (w *TMenuButton) Menu() (string, error)
Menu reports the path name of the menu associated with the menubutton. To be on the safe side, the menu ought to be a direct child of the menubutton.
func (*TMenuButton) MenuM ¶ added in v1.0.16
func (w *TMenuButton) MenuM() string
MenuM is like Menu but panics on error.
func (*TMenuButton) SetCompound ¶ added in v1.0.14
func (w *TMenuButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TMenuButton) SetCompoundM ¶ added in v1.0.16
func (w *TMenuButton) SetCompoundM(value string) *TMenuButton
SetCompoundM is like Compound but panics on error
func (*TMenuButton) SetCursor ¶ added in v1.0.14
func (w *TMenuButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TMenuButton) SetCursorM ¶ added in v1.0.16
func (w *TMenuButton) SetCursorM(value string) *TMenuButton
SetCursorM is like Cursor but panics on error
func (*TMenuButton) SetDirection ¶ added in v1.0.14
func (w *TMenuButton) SetDirection(value string) error
Direction reports where the menu is to be popped up relative to the menubutton. One of: \fBabove\fR, \fBbelow\fR, \fBleft\fR, \fBright\fR, or \fBflush\fR. The default is \fBbelow\fR. \fBflush\fR pops the menu up directly over the menubutton.
func (*TMenuButton) SetDirectionM ¶ added in v1.0.16
func (w *TMenuButton) SetDirectionM(value string) *TMenuButton
SetDirectionM is like Direction but panics on error
func (*TMenuButton) SetImage ¶ added in v1.0.14
func (w *TMenuButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TMenuButton) SetImageM ¶ added in v1.0.16
func (w *TMenuButton) SetImageM(value string) *TMenuButton
SetImageM is like Image but panics on error
func (*TMenuButton) SetMenu ¶ added in v1.0.14
func (w *TMenuButton) SetMenu(value string) error
Menu reports the path name of the menu associated with the menubutton. To be on the safe side, the menu ought to be a direct child of the menubutton.
func (*TMenuButton) SetMenuM ¶ added in v1.0.16
func (w *TMenuButton) SetMenuM(value string) *TMenuButton
SetMenuM is like Menu but panics on error
func (*TMenuButton) SetState ¶ added in v1.0.14
func (w *TMenuButton) SetState(value string) error
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TMenuButton) SetStateM ¶ added in v1.0.16
func (w *TMenuButton) SetStateM(value string) *TMenuButton
SetStateM is like State but panics on error
func (*TMenuButton) SetStyle ¶ added in v1.0.14
func (w *TMenuButton) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TMenuButton) SetStyleM ¶ added in v1.0.16
func (w *TMenuButton) SetStyleM(value string) *TMenuButton
SetStyleM is like Style but panics on error
func (*TMenuButton) SetTakeFocus ¶ added in v1.0.14
func (w *TMenuButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TMenuButton) SetTakeFocusM ¶ added in v1.0.16
func (w *TMenuButton) SetTakeFocusM(value string) *TMenuButton
SetTakeFocusM is like TakeFocus but panics on error
func (*TMenuButton) SetText ¶ added in v1.0.14
func (w *TMenuButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TMenuButton) SetTextM ¶ added in v1.0.16
func (w *TMenuButton) SetTextM(value string) *TMenuButton
SetTextM is like Text but panics on error
func (*TMenuButton) SetTextVariable ¶ added in v1.0.15
func (w *TMenuButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TMenuButton) SetTextVariableM ¶ added in v1.0.16
func (w *TMenuButton) SetTextVariableM(value string) *TMenuButton
SetTextVariableM is like TextVariable but panics on error
func (*TMenuButton) SetUnderline ¶ added in v1.0.14
func (w *TMenuButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TMenuButton) SetUnderlineM ¶ added in v1.0.16
func (w *TMenuButton) SetUnderlineM(value string) *TMenuButton
SetUnderlineM is like Underline but panics on error
func (*TMenuButton) SetWidth ¶ added in v1.0.14
func (w *TMenuButton) SetWidth(value string) error
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TMenuButton) SetWidthM ¶ added in v1.0.16
func (w *TMenuButton) SetWidthM(value string) *TMenuButton
SetWidthM is like Width but panics on error
func (*TMenuButton) State ¶ added in v1.0.14
func (w *TMenuButton) State() (string, error)
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TMenuButton) StateM ¶ added in v1.0.16
func (w *TMenuButton) StateM() string
StateM is like State but panics on error.
func (*TMenuButton) Style ¶ added in v1.0.14
func (w *TMenuButton) Style() (string, error)
May be used to specify a custom widget style.
func (*TMenuButton) StyleM ¶ added in v1.0.16
func (w *TMenuButton) StyleM() string
StyleM is like Style but panics on error.
func (*TMenuButton) TakeFocus ¶ added in v1.0.14
func (w *TMenuButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TMenuButton) TakeFocusM ¶ added in v1.0.16
func (w *TMenuButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TMenuButton) Text ¶ added in v1.0.14
func (w *TMenuButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TMenuButton) TextM ¶ added in v1.0.16
func (w *TMenuButton) TextM() string
TextM is like Text but panics on error.
func (*TMenuButton) TextVariable ¶ added in v1.0.15
func (w *TMenuButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TMenuButton) TextVariableM ¶ added in v1.0.16
func (w *TMenuButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*TMenuButton) Underline ¶ added in v1.0.14
func (w *TMenuButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TMenuButton) UnderlineM ¶ added in v1.0.16
func (w *TMenuButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*TMenuButton) Width ¶ added in v1.0.14
func (w *TMenuButton) Width() (string, error)
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TMenuButton) WidthM ¶ added in v1.0.16
func (w *TMenuButton) WidthM() string
WidthM is like Width but panics on error.
type TNotebook ¶ added in v1.0.13
type TNotebook struct {
Window
}
TNotebook represents the Tk ttk::notebook widget.
func (*TNotebook) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TNotebook) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TNotebook) Height ¶ added in v1.0.14
If present and greater than zero, specifies the desired height of the pane area (not including internal padding or tabs). Otherwise, the maximum height of all panes is used.
func (*TNotebook) Padding ¶ added in v1.0.14
Padding reports the amount of extra space to add around the outside of the notebook. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TNotebook) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TNotebook) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TNotebook) SetHeight ¶ added in v1.0.14
If present and greater than zero, specifies the desired height of the pane area (not including internal padding or tabs). Otherwise, the maximum height of all panes is used.
func (*TNotebook) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*TNotebook) SetPadding ¶ added in v1.0.14
Padding reports the amount of extra space to add around the outside of the notebook. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TNotebook) SetPaddingM ¶ added in v1.0.16
SetPaddingM is like Padding but panics on error
func (*TNotebook) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TNotebook) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TNotebook) SetWidth ¶ added in v1.0.14
If present and greater than zero, specifies the desired width of the pane area (not including internal padding). Otherwise, the maximum width of all panes is used.
func (*TNotebook) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TNotebook) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
type TPanedWindow ¶ added in v1.0.14
type TPanedWindow struct {
Window
}
TPanedWindow represents the Tk ttk::panedwindow widget.
func (*TPanedWindow) Class ¶ added in v1.0.14
func (w *TPanedWindow) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TPanedWindow) ClassM ¶ added in v1.0.16
func (w *TPanedWindow) ClassM() string
ClassM is like Class but panics on error.
func (*TPanedWindow) Cursor ¶ added in v1.0.14
func (w *TPanedWindow) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TPanedWindow) CursorM ¶ added in v1.0.16
func (w *TPanedWindow) CursorM() string
CursorM is like Cursor but panics on error.
func (*TPanedWindow) Height ¶ added in v1.0.14
func (w *TPanedWindow) Height() (string, error)
If present and greater than zero, specifies the desired height of the widget in pixels. Otherwise, the requested height is determined by the height of the managed windows.
func (*TPanedWindow) HeightM ¶ added in v1.0.16
func (w *TPanedWindow) HeightM() string
HeightM is like Height but panics on error.
func (*TPanedWindow) Orient ¶ added in v1.0.14
func (w *TPanedWindow) Orient() (string, error)
Orient reports the orientation of the window. If \fBvertical\fR, subpanes are stacked top-to-bottom; if \fBhorizontal\fR, subpanes are stacked left-to-right.
func (*TPanedWindow) OrientM ¶ added in v1.0.16
func (w *TPanedWindow) OrientM() string
OrientM is like Orient but panics on error.
func (*TPanedWindow) SetCursor ¶ added in v1.0.14
func (w *TPanedWindow) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TPanedWindow) SetCursorM ¶ added in v1.0.16
func (w *TPanedWindow) SetCursorM(value string) *TPanedWindow
SetCursorM is like Cursor but panics on error
func (*TPanedWindow) SetHeight ¶ added in v1.0.14
func (w *TPanedWindow) SetHeight(value string) error
If present and greater than zero, specifies the desired height of the widget in pixels. Otherwise, the requested height is determined by the height of the managed windows.
func (*TPanedWindow) SetHeightM ¶ added in v1.0.16
func (w *TPanedWindow) SetHeightM(value string) *TPanedWindow
SetHeightM is like Height but panics on error
func (*TPanedWindow) SetOrient ¶ added in v1.0.14
func (w *TPanedWindow) SetOrient(value string) error
Orient reports the orientation of the window. If \fBvertical\fR, subpanes are stacked top-to-bottom; if \fBhorizontal\fR, subpanes are stacked left-to-right.
func (*TPanedWindow) SetOrientM ¶ added in v1.0.16
func (w *TPanedWindow) SetOrientM(value string) *TPanedWindow
SetOrientM is like Orient but panics on error
func (*TPanedWindow) SetStyle ¶ added in v1.0.14
func (w *TPanedWindow) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TPanedWindow) SetStyleM ¶ added in v1.0.16
func (w *TPanedWindow) SetStyleM(value string) *TPanedWindow
SetStyleM is like Style but panics on error
func (*TPanedWindow) SetTakeFocus ¶ added in v1.0.14
func (w *TPanedWindow) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TPanedWindow) SetTakeFocusM ¶ added in v1.0.16
func (w *TPanedWindow) SetTakeFocusM(value string) *TPanedWindow
SetTakeFocusM is like TakeFocus but panics on error
func (*TPanedWindow) SetWidth ¶ added in v1.0.14
func (w *TPanedWindow) SetWidth(value string) error
If present and greater than zero, specifies the desired width of the widget in pixels. Otherwise, the requested width is determined by the width of the managed windows.
func (*TPanedWindow) SetWidthM ¶ added in v1.0.16
func (w *TPanedWindow) SetWidthM(value string) *TPanedWindow
SetWidthM is like Width but panics on error
func (*TPanedWindow) Style ¶ added in v1.0.14
func (w *TPanedWindow) Style() (string, error)
May be used to specify a custom widget style.
func (*TPanedWindow) StyleM ¶ added in v1.0.16
func (w *TPanedWindow) StyleM() string
StyleM is like Style but panics on error.
func (*TPanedWindow) TakeFocus ¶ added in v1.0.14
func (w *TPanedWindow) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TPanedWindow) TakeFocusM ¶ added in v1.0.16
func (w *TPanedWindow) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TPanedWindow) Width ¶ added in v1.0.14
func (w *TPanedWindow) Width() (string, error)
If present and greater than zero, specifies the desired width of the widget in pixels. Otherwise, the requested width is determined by the width of the managed windows.
func (*TPanedWindow) WidthM ¶ added in v1.0.16
func (w *TPanedWindow) WidthM() string
WidthM is like Width but panics on error.
type TProgressBar ¶ added in v1.0.14
type TProgressBar struct {
Window
}
TProgressBar represents the Tk ttk::progressbar widget.
func (*TProgressBar) Class ¶ added in v1.0.14
func (w *TProgressBar) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TProgressBar) ClassM ¶ added in v1.0.16
func (w *TProgressBar) ClassM() string
ClassM is like Class but panics on error.
func (*TProgressBar) Cursor ¶ added in v1.0.14
func (w *TProgressBar) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TProgressBar) CursorM ¶ added in v1.0.16
func (w *TProgressBar) CursorM() string
CursorM is like Cursor but panics on error.
func (*TProgressBar) Length ¶ added in v1.0.14
func (w *TProgressBar) Length() (string, error)
Length reports the length of the long axis of the progress bar (width if horizontal, height if vertical).
func (*TProgressBar) LengthM ¶ added in v1.0.16
func (w *TProgressBar) LengthM() string
LengthM is like Length but panics on error.
func (*TProgressBar) Maximum ¶ added in v1.0.14
func (w *TProgressBar) Maximum() (string, error)
A floating point number specifying the maximum \fB-value\fR. Defaults to 100.
func (*TProgressBar) MaximumM ¶ added in v1.0.16
func (w *TProgressBar) MaximumM() string
MaximumM is like Maximum but panics on error.
func (*TProgressBar) Mode ¶ added in v1.0.14
func (w *TProgressBar) Mode() (string, error)
One of \fBdeterminate\fR or \fBindeterminate\fR.
func (*TProgressBar) ModeM ¶ added in v1.0.16
func (w *TProgressBar) ModeM() string
ModeM is like Mode but panics on error.
func (*TProgressBar) Orient ¶ added in v1.0.14
func (w *TProgressBar) Orient() (string, error)
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the progress bar.
func (*TProgressBar) OrientM ¶ added in v1.0.16
func (w *TProgressBar) OrientM() string
OrientM is like Orient but panics on error.
func (*TProgressBar) Phase ¶ added in v1.0.14
func (w *TProgressBar) Phase() (string, error)
Read-only option. The widget periodically increments the value of this option whenever the \fB-value\fR is greater than 0 and, in \fIdeterminate\fR mode, less than \fB-maximum\fR. This option may be used by the current theme to provide additional animation effects.
func (*TProgressBar) PhaseM ¶ added in v1.0.16
func (w *TProgressBar) PhaseM() string
PhaseM is like Phase but panics on error.
func (*TProgressBar) SetCursor ¶ added in v1.0.14
func (w *TProgressBar) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TProgressBar) SetCursorM ¶ added in v1.0.16
func (w *TProgressBar) SetCursorM(value string) *TProgressBar
SetCursorM is like Cursor but panics on error
func (*TProgressBar) SetLength ¶ added in v1.0.14
func (w *TProgressBar) SetLength(value string) error
Length reports the length of the long axis of the progress bar (width if horizontal, height if vertical).
func (*TProgressBar) SetLengthM ¶ added in v1.0.16
func (w *TProgressBar) SetLengthM(value string) *TProgressBar
SetLengthM is like Length but panics on error
func (*TProgressBar) SetMaximum ¶ added in v1.0.14
func (w *TProgressBar) SetMaximum(value string) error
A floating point number specifying the maximum \fB-value\fR. Defaults to 100.
func (*TProgressBar) SetMaximumM ¶ added in v1.0.16
func (w *TProgressBar) SetMaximumM(value string) *TProgressBar
SetMaximumM is like Maximum but panics on error
func (*TProgressBar) SetMode ¶ added in v1.0.14
func (w *TProgressBar) SetMode(value string) error
One of \fBdeterminate\fR or \fBindeterminate\fR.
func (*TProgressBar) SetModeM ¶ added in v1.0.16
func (w *TProgressBar) SetModeM(value string) *TProgressBar
SetModeM is like Mode but panics on error
func (*TProgressBar) SetOrient ¶ added in v1.0.14
func (w *TProgressBar) SetOrient(value string) error
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the progress bar.
func (*TProgressBar) SetOrientM ¶ added in v1.0.16
func (w *TProgressBar) SetOrientM(value string) *TProgressBar
SetOrientM is like Orient but panics on error
func (*TProgressBar) SetPhase ¶ added in v1.0.14
func (w *TProgressBar) SetPhase(value string) error
Read-only option. The widget periodically increments the value of this option whenever the \fB-value\fR is greater than 0 and, in \fIdeterminate\fR mode, less than \fB-maximum\fR. This option may be used by the current theme to provide additional animation effects.
func (*TProgressBar) SetPhaseM ¶ added in v1.0.16
func (w *TProgressBar) SetPhaseM(value string) *TProgressBar
SetPhaseM is like Phase but panics on error
func (*TProgressBar) SetStyle ¶ added in v1.0.14
func (w *TProgressBar) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TProgressBar) SetStyleM ¶ added in v1.0.16
func (w *TProgressBar) SetStyleM(value string) *TProgressBar
SetStyleM is like Style but panics on error
func (*TProgressBar) SetTakeFocus ¶ added in v1.0.14
func (w *TProgressBar) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TProgressBar) SetTakeFocusM ¶ added in v1.0.16
func (w *TProgressBar) SetTakeFocusM(value string) *TProgressBar
SetTakeFocusM is like TakeFocus but panics on error
func (*TProgressBar) SetValue ¶ added in v1.0.14
func (w *TProgressBar) SetValue(value string) error
The current value of the progress bar. In \fIdeterminate\fR mode, this represents the amount of work completed. In \fIindeterminate\fR mode, it is interpreted modulo \fB-maximum\fR; that is, the progress bar completes one TODO .QW(cycle) when the \fB-value\fR increases by \fB-maximum\fR. If \fB-variable\fR is set to an existing variable, specifying \fB-value\fR has no effect (the variable value takes precedence).
func (*TProgressBar) SetValueM ¶ added in v1.0.16
func (w *TProgressBar) SetValueM(value string) *TProgressBar
SetValueM is like Value but panics on error
func (*TProgressBar) SetVariable ¶ added in v1.0.15
func (w *TProgressBar) SetVariable(value string) error
The name of a global Tcl variable which is linked to the \fB-value\fR. If specified to an existing variable, the \fB-value\fR of the progress bar is automatically set to the value of the variable whenever the latter is modified.
func (*TProgressBar) SetVariableM ¶ added in v1.0.16
func (w *TProgressBar) SetVariableM(value string) *TProgressBar
SetVariableM is like Variable but panics on error
func (*TProgressBar) Style ¶ added in v1.0.14
func (w *TProgressBar) Style() (string, error)
May be used to specify a custom widget style.
func (*TProgressBar) StyleM ¶ added in v1.0.16
func (w *TProgressBar) StyleM() string
StyleM is like Style but panics on error.
func (*TProgressBar) TakeFocus ¶ added in v1.0.14
func (w *TProgressBar) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TProgressBar) TakeFocusM ¶ added in v1.0.16
func (w *TProgressBar) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TProgressBar) Value ¶ added in v1.0.14
func (w *TProgressBar) Value() (string, error)
The current value of the progress bar. In \fIdeterminate\fR mode, this represents the amount of work completed. In \fIindeterminate\fR mode, it is interpreted modulo \fB-maximum\fR; that is, the progress bar completes one TODO .QW(cycle) when the \fB-value\fR increases by \fB-maximum\fR. If \fB-variable\fR is set to an existing variable, specifying \fB-value\fR has no effect (the variable value takes precedence).
func (*TProgressBar) ValueM ¶ added in v1.0.16
func (w *TProgressBar) ValueM() string
ValueM is like Value but panics on error.
func (*TProgressBar) Variable ¶ added in v1.0.15
func (w *TProgressBar) Variable() (string, error)
The name of a global Tcl variable which is linked to the \fB-value\fR. If specified to an existing variable, the \fB-value\fR of the progress bar is automatically set to the value of the variable whenever the latter is modified.
func (*TProgressBar) VariableM ¶ added in v1.0.16
func (w *TProgressBar) VariableM() string
VariableM is like Variable but panics on error.
type TRadioButton ¶ added in v1.0.14
type TRadioButton struct {
Window
}
TRadioButton represents the Tk ttk::radiobutton widget.
func (*TRadioButton) Class ¶ added in v1.0.14
func (w *TRadioButton) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TRadioButton) ClassM ¶ added in v1.0.16
func (w *TRadioButton) ClassM() string
ClassM is like Class but panics on error.
func (*TRadioButton) Compound ¶ added in v1.0.14
func (w *TRadioButton) Compound() (string, error)
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TRadioButton) CompoundM ¶ added in v1.0.16
func (w *TRadioButton) CompoundM() string
CompoundM is like Compound but panics on error.
func (*TRadioButton) Cursor ¶ added in v1.0.14
func (w *TRadioButton) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TRadioButton) CursorM ¶ added in v1.0.16
func (w *TRadioButton) CursorM() string
CursorM is like Cursor but panics on error.
func (*TRadioButton) Image ¶ added in v1.0.14
func (w *TRadioButton) Image() (string, error)
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TRadioButton) ImageM ¶ added in v1.0.16
func (w *TRadioButton) ImageM() string
ImageM is like Image but panics on error.
func (*TRadioButton) SetCommand ¶ added in v1.0.14
func (w *TRadioButton) SetCommand(value Command) error
A Tcl script to evaluate whenever the widget is invoked.
func (*TRadioButton) SetCommandM ¶ added in v1.0.16
func (w *TRadioButton) SetCommandM(value Command) *TRadioButton
SetCommandM is like Command but panics on error
func (*TRadioButton) SetCompound ¶ added in v1.0.14
func (w *TRadioButton) SetCompound(value string) error
Compound reports if the widget should display text and bitmaps/images at the same time, and if so, where the bitmap/image should be placed relative to the text. Must be one of the values \fBnone\fR, \fBbottom\fR, \fBtop\fR, \fBleft\fR, \fBright\fR, or \fBcenter\fR. For example, the (default) value \fBnone\fR specifies that the bitmap or image should (if defined) be displayed instead of the text, the value \fBleft\fR specifies that the bitmap or image should be displayed to the left of the text, and the value \fBcenter\fR specifies that the bitmap or image should be displayed on top of the text.
func (*TRadioButton) SetCompoundM ¶ added in v1.0.16
func (w *TRadioButton) SetCompoundM(value string) *TRadioButton
SetCompoundM is like Compound but panics on error
func (*TRadioButton) SetCursor ¶ added in v1.0.14
func (w *TRadioButton) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TRadioButton) SetCursorM ¶ added in v1.0.16
func (w *TRadioButton) SetCursorM(value string) *TRadioButton
SetCursorM is like Cursor but panics on error
func (*TRadioButton) SetImage ¶ added in v1.0.14
func (w *TRadioButton) SetImage(value string) error
Image reports an image to display in the widget, which must have been created with the \fBimage create\fR command. Typically, if the \fB-image\fR option is specified then it overrides other options that specify a bitmap or textual value to display in the widget, though this is controlled by the \fB-compound\fR option; the \fB-image\fR option may be reset to an empty string to re-enable a bitmap or text display.
func (*TRadioButton) SetImageM ¶ added in v1.0.16
func (w *TRadioButton) SetImageM(value string) *TRadioButton
SetImageM is like Image but panics on error
func (*TRadioButton) SetState ¶ added in v1.0.14
func (w *TRadioButton) SetState(value string) error
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TRadioButton) SetStateM ¶ added in v1.0.16
func (w *TRadioButton) SetStateM(value string) *TRadioButton
SetStateM is like State but panics on error
func (*TRadioButton) SetStyle ¶ added in v1.0.14
func (w *TRadioButton) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TRadioButton) SetStyleM ¶ added in v1.0.16
func (w *TRadioButton) SetStyleM(value string) *TRadioButton
SetStyleM is like Style but panics on error
func (*TRadioButton) SetTakeFocus ¶ added in v1.0.14
func (w *TRadioButton) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TRadioButton) SetTakeFocusM ¶ added in v1.0.16
func (w *TRadioButton) SetTakeFocusM(value string) *TRadioButton
SetTakeFocusM is like TakeFocus but panics on error
func (*TRadioButton) SetText ¶ added in v1.0.14
func (w *TRadioButton) SetText(value string) error
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TRadioButton) SetTextM ¶ added in v1.0.16
func (w *TRadioButton) SetTextM(value string) *TRadioButton
SetTextM is like Text but panics on error
func (*TRadioButton) SetTextVariable ¶ added in v1.0.15
func (w *TRadioButton) SetTextVariable(value string) error
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TRadioButton) SetTextVariableM ¶ added in v1.0.16
func (w *TRadioButton) SetTextVariableM(value string) *TRadioButton
SetTextVariableM is like TextVariable but panics on error
func (*TRadioButton) SetUnderline ¶ added in v1.0.14
func (w *TRadioButton) SetUnderline(value string) error
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TRadioButton) SetUnderlineM ¶ added in v1.0.16
func (w *TRadioButton) SetUnderlineM(value string) *TRadioButton
SetUnderlineM is like Underline but panics on error
func (*TRadioButton) SetValue ¶ added in v1.0.14
func (w *TRadioButton) SetValue(value string) error
The value to store in the associated \fB-variable\fR when the widget is selected.
func (*TRadioButton) SetValueM ¶ added in v1.0.16
func (w *TRadioButton) SetValueM(value string) *TRadioButton
SetValueM is like Value but panics on error
func (*TRadioButton) SetVariable ¶ added in v1.0.15
func (w *TRadioButton) SetVariable(value string) error
The name of a global variable whose value is linked to the widget. Default value is \fB::selectedButton\fR.
func (*TRadioButton) SetVariableM ¶ added in v1.0.16
func (w *TRadioButton) SetVariableM(value string) *TRadioButton
SetVariableM is like Variable but panics on error
func (*TRadioButton) SetWidth ¶ added in v1.0.14
func (w *TRadioButton) SetWidth(value string) error
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TRadioButton) SetWidthM ¶ added in v1.0.16
func (w *TRadioButton) SetWidthM(value string) *TRadioButton
SetWidthM is like Width but panics on error
func (*TRadioButton) State ¶ added in v1.0.14
func (w *TRadioButton) State() (string, error)
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TRadioButton) StateM ¶ added in v1.0.16
func (w *TRadioButton) StateM() string
StateM is like State but panics on error.
func (*TRadioButton) Style ¶ added in v1.0.14
func (w *TRadioButton) Style() (string, error)
May be used to specify a custom widget style.
func (*TRadioButton) StyleM ¶ added in v1.0.16
func (w *TRadioButton) StyleM() string
StyleM is like Style but panics on error.
func (*TRadioButton) TakeFocus ¶ added in v1.0.14
func (w *TRadioButton) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TRadioButton) TakeFocusM ¶ added in v1.0.16
func (w *TRadioButton) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
func (*TRadioButton) Text ¶ added in v1.0.14
func (w *TRadioButton) Text() (string, error)
Text reports a string to be displayed inside the widget. The way in which the string is displayed depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TRadioButton) TextM ¶ added in v1.0.16
func (w *TRadioButton) TextM() string
TextM is like Text but panics on error.
func (*TRadioButton) TextVariable ¶ added in v1.0.15
func (w *TRadioButton) TextVariable() (string, error)
TextVariable reports the name of a global variable. The value of the variable is a text string to be displayed inside the widget; if the variable value changes then the widget will automatically update itself to reflect the new value. The way in which the string is displayed in the widget depends on the particular widget and may be determined by other options, such as \fB-anchor\fR or \fB-justify\fR.
func (*TRadioButton) TextVariableM ¶ added in v1.0.16
func (w *TRadioButton) TextVariableM() string
TextVariableM is like TextVariable but panics on error.
func (*TRadioButton) Underline ¶ added in v1.0.14
func (w *TRadioButton) Underline() (string, error)
Underline reports the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the widget, 1 to the next character, and so on.
func (*TRadioButton) UnderlineM ¶ added in v1.0.16
func (w *TRadioButton) UnderlineM() string
UnderlineM is like Underline but panics on error.
func (*TRadioButton) Value ¶ added in v1.0.14
func (w *TRadioButton) Value() (string, error)
The value to store in the associated \fB-variable\fR when the widget is selected.
func (*TRadioButton) ValueM ¶ added in v1.0.16
func (w *TRadioButton) ValueM() string
ValueM is like Value but panics on error.
func (*TRadioButton) Variable ¶ added in v1.0.15
func (w *TRadioButton) Variable() (string, error)
The name of a global variable whose value is linked to the widget. Default value is \fB::selectedButton\fR.
func (*TRadioButton) VariableM ¶ added in v1.0.16
func (w *TRadioButton) VariableM() string
VariableM is like Variable but panics on error.
func (*TRadioButton) Width ¶ added in v1.0.14
func (w *TRadioButton) Width() (string, error)
If greater than zero, specifies how much space, in character widths, to allocate for the text label. If less than zero, specifies a minimum width. If zero or unspecified, the natural width of the text label is used.
func (*TRadioButton) WidthM ¶ added in v1.0.16
func (w *TRadioButton) WidthM() string
WidthM is like Width but panics on error.
type TScale ¶ added in v1.0.13
type TScale struct {
Window
}
TScale represents the Tk ttk::scale widget.
func (*TScale) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TScale) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TScale) From ¶ added in v1.0.14
A real value corresponding to the left or top end of the scale.
func (*TScale) Length ¶ added in v1.0.14
Length reports the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For vertical scales this is the scale's height; for horizontal scales it is the scale's width.
func (*TScale) Orient ¶ added in v1.0.14
Orient reports which orientation whether the widget should be laid out horizontally or vertically. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*TScale) SetCommand ¶ added in v1.0.14
Command specifies the prefix of a Tcl command to invoke whenever the scale's value is changed via a widget command. The actual command consists of this option followed by a space and a real number indicating the new value of the scale.
func (*TScale) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*TScale) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TScale) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TScale) SetFrom ¶ added in v1.0.14
A real value corresponding to the left or top end of the scale.
func (*TScale) SetLength ¶ added in v1.0.14
Length reports the desired long dimension of the scale in screen units (i.e. any of the forms acceptable to \fBTk_GetPixels\fR). For vertical scales this is the scale's height; for horizontal scales it is the scale's width.
func (*TScale) SetLengthM ¶ added in v1.0.16
SetLengthM is like Length but panics on error
func (*TScale) SetOrient ¶ added in v1.0.14
Orient reports which orientation whether the widget should be laid out horizontally or vertically. Must be either \fBhorizontal\fR or \fBvertical\fR or an abbreviation of one of these.
func (*TScale) SetOrientM ¶ added in v1.0.16
SetOrientM is like Orient but panics on error
func (*TScale) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TScale) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TScale) SetTo ¶ added in v1.0.14
To reports a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than the \fB-from\fR option.
func (*TScale) SetValue ¶ added in v1.0.14
Value reports the current floating-point value of the variable. If \fB-variable\fR is set to an existing variable, specifying \fB-value\fR has no effect (the variable value takes precedence).
func (*TScale) SetVariable ¶ added in v1.0.15
Variable reports the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value.
func (*TScale) SetVariableM ¶ added in v1.0.16
SetVariableM is like Variable but panics on error
func (*TScale) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TScale) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TScale) To ¶ added in v1.0.14
To reports a real value corresponding to the right or bottom end of the scale. This value may be either less than or greater than the \fB-from\fR option.
func (*TScale) Value ¶ added in v1.0.14
Value reports the current floating-point value of the variable. If \fB-variable\fR is set to an existing variable, specifying \fB-value\fR has no effect (the variable value takes precedence).
func (*TScale) Variable ¶ added in v1.0.15
Variable reports the name of a global variable to link to the scale. Whenever the value of the variable changes, the scale will update to reflect this value. Whenever the scale is manipulated interactively, the variable will be modified to reflect the scale's new value.
type TScrollbar ¶ added in v1.0.13
type TScrollbar struct {
Window
}
TScrollbar represents the Tk ttk::scrollbar widget.
func (*TScrollbar) Class ¶ added in v1.0.14
func (w *TScrollbar) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TScrollbar) ClassM ¶ added in v1.0.16
func (w *TScrollbar) ClassM() string
ClassM is like Class but panics on error.
func (*TScrollbar) Cursor ¶ added in v1.0.14
func (w *TScrollbar) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TScrollbar) CursorM ¶ added in v1.0.16
func (w *TScrollbar) CursorM() string
CursorM is like Cursor but panics on error.
func (*TScrollbar) Orient ¶ added in v1.0.14
func (w *TScrollbar) Orient() (string, error)
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the scrollbar.
func (*TScrollbar) OrientM ¶ added in v1.0.16
func (w *TScrollbar) OrientM() string
OrientM is like Orient but panics on error.
func (*TScrollbar) SetCommand ¶ added in v1.0.14
func (w *TScrollbar) SetCommand(value Command) error
A Tcl script prefix to evaluate to change the view in the widget associated with the scrollbar. Additional arguments are appended to the value of this option, as described in \fBSCROLLING COMMANDS\fR below, whenever the user requests a view change by manipulating the scrollbar.
func (*TScrollbar) SetCommandM ¶ added in v1.0.16
func (w *TScrollbar) SetCommandM(value Command) *TScrollbar
SetCommandM is like Command but panics on error
func (*TScrollbar) SetCursor ¶ added in v1.0.14
func (w *TScrollbar) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TScrollbar) SetCursorM ¶ added in v1.0.16
func (w *TScrollbar) SetCursorM(value string) *TScrollbar
SetCursorM is like Cursor but panics on error
func (*TScrollbar) SetOrient ¶ added in v1.0.14
func (w *TScrollbar) SetOrient(value string) error
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the scrollbar.
func (*TScrollbar) SetOrientM ¶ added in v1.0.16
func (w *TScrollbar) SetOrientM(value string) *TScrollbar
SetOrientM is like Orient but panics on error
func (*TScrollbar) SetStyle ¶ added in v1.0.14
func (w *TScrollbar) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TScrollbar) SetStyleM ¶ added in v1.0.16
func (w *TScrollbar) SetStyleM(value string) *TScrollbar
SetStyleM is like Style but panics on error
func (*TScrollbar) SetTakeFocus ¶ added in v1.0.14
func (w *TScrollbar) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TScrollbar) SetTakeFocusM ¶ added in v1.0.16
func (w *TScrollbar) SetTakeFocusM(value string) *TScrollbar
SetTakeFocusM is like TakeFocus but panics on error
func (*TScrollbar) Style ¶ added in v1.0.14
func (w *TScrollbar) Style() (string, error)
May be used to specify a custom widget style.
func (*TScrollbar) StyleM ¶ added in v1.0.16
func (w *TScrollbar) StyleM() string
StyleM is like Style but panics on error.
func (*TScrollbar) TakeFocus ¶ added in v1.0.14
func (w *TScrollbar) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TScrollbar) TakeFocusM ¶ added in v1.0.16
func (w *TScrollbar) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
type TSeparator ¶ added in v1.0.13
type TSeparator struct {
Window
}
TSeparator represents the Tk ttk::separator widget.
func (*TSeparator) Class ¶ added in v1.0.14
func (w *TSeparator) Class() (string, error)
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TSeparator) ClassM ¶ added in v1.0.16
func (w *TSeparator) ClassM() string
ClassM is like Class but panics on error.
func (*TSeparator) Cursor ¶ added in v1.0.14
func (w *TSeparator) Cursor() (string, error)
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSeparator) CursorM ¶ added in v1.0.16
func (w *TSeparator) CursorM() string
CursorM is like Cursor but panics on error.
func (*TSeparator) Orient ¶ added in v1.0.14
func (w *TSeparator) Orient() (string, error)
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the separator.
func (*TSeparator) OrientM ¶ added in v1.0.16
func (w *TSeparator) OrientM() string
OrientM is like Orient but panics on error.
func (*TSeparator) SetCursor ¶ added in v1.0.14
func (w *TSeparator) SetCursor(value string) error
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSeparator) SetCursorM ¶ added in v1.0.16
func (w *TSeparator) SetCursorM(value string) *TSeparator
SetCursorM is like Cursor but panics on error
func (*TSeparator) SetOrient ¶ added in v1.0.14
func (w *TSeparator) SetOrient(value string) error
One of \fBhorizontal\fR or \fBvertical\fR. Specifies the orientation of the separator.
func (*TSeparator) SetOrientM ¶ added in v1.0.16
func (w *TSeparator) SetOrientM(value string) *TSeparator
SetOrientM is like Orient but panics on error
func (*TSeparator) SetStyle ¶ added in v1.0.14
func (w *TSeparator) SetStyle(value string) error
May be used to specify a custom widget style.
func (*TSeparator) SetStyleM ¶ added in v1.0.16
func (w *TSeparator) SetStyleM(value string) *TSeparator
SetStyleM is like Style but panics on error
func (*TSeparator) SetTakeFocus ¶ added in v1.0.14
func (w *TSeparator) SetTakeFocus(value string) error
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSeparator) SetTakeFocusM ¶ added in v1.0.16
func (w *TSeparator) SetTakeFocusM(value string) *TSeparator
SetTakeFocusM is like TakeFocus but panics on error
func (*TSeparator) Style ¶ added in v1.0.14
func (w *TSeparator) Style() (string, error)
May be used to specify a custom widget style.
func (*TSeparator) StyleM ¶ added in v1.0.16
func (w *TSeparator) StyleM() string
StyleM is like Style but panics on error.
func (*TSeparator) TakeFocus ¶ added in v1.0.14
func (w *TSeparator) TakeFocus() (string, error)
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSeparator) TakeFocusM ¶ added in v1.0.16
func (w *TSeparator) TakeFocusM() string
TakeFocusM is like TakeFocus but panics on error.
type TSizeGrip ¶ added in v1.0.14
type TSizeGrip struct {
Window
}
TSizeGrip represents the Tk ttk::sizegrip widget.
func (*TSizeGrip) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TSizeGrip) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSizeGrip) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSizeGrip) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TSizeGrip) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSizeGrip) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TSizeGrip) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSizeGrip) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
type TSpinBox ¶ added in v1.0.14
type TSpinBox struct {
Window
}
TSpinBox represents the Tk ttk::spinbox widget.
func (*TSpinBox) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TSpinBox) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSpinBox) Format ¶ added in v1.0.14
Format reports an alternate format to use when setting the string value when using the \fB-from\fR and \fB-to\fR range. This must be a format specifier of the form \fB%<pad>.<pad>f\fR, as it will format a floating-point number.
func (*TSpinBox) From ¶ added in v1.0.14
A floating-point value specifying the lowest value for the spinbox. This is used in conjunction with \fB-to\fR and \fB-increment\fR to set a numerical range.
func (*TSpinBox) Increment ¶ added in v1.0.14
A floating-point value specifying the change in value to be applied each time one of the widget spin buttons is pressed. The up button applies a positive increment, the down button applies a negative increment.
func (*TSpinBox) IncrementM ¶ added in v1.0.16
IncrementM is like Increment but panics on error.
func (*TSpinBox) SetCommand ¶ added in v1.0.14
Command specifies a Tcl command to be invoked whenever a spinbutton is invoked.
func (*TSpinBox) SetCommandM ¶ added in v1.0.16
SetCommandM is like Command but panics on error
func (*TSpinBox) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TSpinBox) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TSpinBox) SetFormat ¶ added in v1.0.14
Format reports an alternate format to use when setting the string value when using the \fB-from\fR and \fB-to\fR range. This must be a format specifier of the form \fB%<pad>.<pad>f\fR, as it will format a floating-point number.
func (*TSpinBox) SetFormatM ¶ added in v1.0.16
SetFormatM is like Format but panics on error
func (*TSpinBox) SetFrom ¶ added in v1.0.14
A floating-point value specifying the lowest value for the spinbox. This is used in conjunction with \fB-to\fR and \fB-increment\fR to set a numerical range.
func (*TSpinBox) SetIncrement ¶ added in v1.0.14
A floating-point value specifying the change in value to be applied each time one of the widget spin buttons is pressed. The up button applies a positive increment, the down button applies a negative increment.
func (*TSpinBox) SetIncrementM ¶ added in v1.0.16
SetIncrementM is like Increment but panics on error
func (*TSpinBox) SetState ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TSpinBox) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSpinBox) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TSpinBox) SetTo ¶ added in v1.0.14
A floating-point value specifying the highest permissible value for the widget. See also \fB-from\fR and \fB-increment\fR. range.
func (*TSpinBox) SetValidate ¶ added in v1.0.14
TODO(nodocs)
func (*TSpinBox) SetValidateCommand ¶ added in v1.0.14
TODO(nodocs)
func (*TSpinBox) SetValidateCommandM ¶ added in v1.0.16
SetValidateCommandM is like ValidateCommand but panics on error
func (*TSpinBox) SetValidateM ¶ added in v1.0.16
SetValidateM is like Validate but panics on error
func (*TSpinBox) SetValues ¶ added in v1.0.14
This must be a Tcl list of values. If this option is set then this will override any range set using the \fB-from\fR, \fB-to\fR and \fB-increment\fR options. The widget will instead use the values specified beginning with the first value.
func (*TSpinBox) SetValuesM ¶ added in v1.0.16
SetValuesM is like Values but panics on error
func (*TSpinBox) SetWrap ¶ added in v1.0.14
Must be a proper boolean value. If on, the spinbox will wrap around the values of data in the widget.
func (*TSpinBox) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*TSpinBox) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*TSpinBox) State ¶ added in v1.0.14
May be set to \fBnormal\fR or \fBdisabled\fR to control the \fBdisabled\fR state bit. This is a write-only option: setting it changes the widget state, but the \fBstate\fR widget command does not affect the \fB-state\fR option.
func (*TSpinBox) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TSpinBox) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TSpinBox) To ¶ added in v1.0.14
A floating-point value specifying the highest permissible value for the widget. See also \fB-from\fR and \fB-increment\fR. range.
func (*TSpinBox) ValidateCommand ¶ added in v1.0.14
TODO(nodocs)
func (*TSpinBox) ValidateCommandM ¶ added in v1.0.16
ValidateCommandM is like ValidateCommand but panics on error.
func (*TSpinBox) Values ¶ added in v1.0.14
This must be a Tcl list of values. If this option is set then this will override any range set using the \fB-from\fR, \fB-to\fR and \fB-increment\fR options. The widget will instead use the values specified beginning with the first value.
type TTreeView ¶ added in v1.0.14
type TTreeView struct {
Window
}
TTreeView represents the Tk ttk::treeview widget.
func (*TTreeView) Class ¶ added in v1.0.14
Class reports the window class. The class is used when querying the option database for the window's other options, to determine the default bindtags for the window, and to select the widget's default layout and style. This is a read-only option: it may only be specified when the window is created, and may not be changed with the \fBconfigure\fR widget command.
func (*TTreeView) Columns ¶ added in v1.0.14
A list of column identifiers, specifying the number of columns and their names.
func (*TTreeView) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TTreeView) DisplayColumns ¶ added in v1.0.14
A list of column identifiers (either symbolic names or integer indices) specifying which data columns are displayed and the order in which they appear, or the string \fB#all\fP. If set to \fB#all\fP (the default), all columns are shown in the order given.
func (*TTreeView) DisplayColumnsM ¶ added in v1.0.16
DisplayColumnsM is like DisplayColumns but panics on error.
func (*TTreeView) Height ¶ added in v1.0.14
Height reports the number of rows which should be visible. Note: the requested width is determined from the sum of the column widths.
func (*TTreeView) Padding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TTreeView) SelectMode ¶ added in v1.0.14
Controls how the built-in class bindings manage the selection. One of \fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
func (*TTreeView) SelectModeM ¶ added in v1.0.16
SelectModeM is like SelectMode but panics on error.
func (*TTreeView) SetColumns ¶ added in v1.0.14
A list of column identifiers, specifying the number of columns and their names.
func (*TTreeView) SetColumnsM ¶ added in v1.0.16
SetColumnsM is like Columns but panics on error
func (*TTreeView) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TTreeView) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TTreeView) SetDisplayColumns ¶ added in v1.0.14
A list of column identifiers (either symbolic names or integer indices) specifying which data columns are displayed and the order in which they appear, or the string \fB#all\fP. If set to \fB#all\fP (the default), all columns are shown in the order given.
func (*TTreeView) SetDisplayColumnsM ¶ added in v1.0.16
SetDisplayColumnsM is like DisplayColumns but panics on error
func (*TTreeView) SetHeight ¶ added in v1.0.14
Height reports the number of rows which should be visible. Note: the requested width is determined from the sum of the column widths.
func (*TTreeView) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*TTreeView) SetPadding ¶ added in v1.0.14
Padding reports the internal padding for the widget. The padding is a list of up to four length specifications \fIleft top right bottom\fR. If fewer than four elements are specified, \fIbottom\fR defaults to \fItop\fR, \fIright\fR defaults to \fIleft\fR, and \fItop\fR defaults to \fIleft\fR. In other words, a list of three numbers specify the left, vertical, and right padding; a list of two numbers specify the horizontal and the vertical padding; a single number specifies the same padding all the way around the widget.
func (*TTreeView) SetPaddingM ¶ added in v1.0.16
SetPaddingM is like Padding but panics on error
func (*TTreeView) SetSelectMode ¶ added in v1.0.14
Controls how the built-in class bindings manage the selection. One of \fBextended\fR, \fBbrowse\fR, or \fBnone\fR.
func (*TTreeView) SetSelectModeM ¶ added in v1.0.16
SetSelectModeM is like SelectMode but panics on error
func (*TTreeView) SetShow ¶ added in v1.0.14
A list containing zero or more of the following values, specifying which elements of the tree to display. TODO .IP(\fBtree\fR) TODO .IP(\fBheadings\fR)
func (*TTreeView) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TTreeView) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TTreeView) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*TTreeView) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*TTreeView) SetYScrollCommand ¶ added in v1.0.17
YScrollCommand specifies the prefix for a command used to communicate with vertical scrollbars. This option is treated in the same way as the \fB-xscrollcommand\fR option, except that it is used for vertical scrollbars and is provided by widgets that support vertical scrolling. See the description of \fB-xscrollcommand\fR for details on how this option is used.
func (*TTreeView) SetYScrollCommandM ¶ added in v1.0.17
SetYScrollCommandM is like YScrollCommand but panics on error
func (*TTreeView) Show ¶ added in v1.0.14
A list containing zero or more of the following values, specifying which elements of the tree to display. TODO .IP(\fBtree\fR) TODO .IP(\fBheadings\fR)
func (*TTreeView) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TTreeView) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
type Text ¶ added in v1.0.13
type Text struct {
Window
}
Text represents the Tk text widget.
func (*Text) AutoSeparators ¶ added in v1.0.14
AutoSeparators reports a boolean that says whether separators are automatically inserted in the undo stack. Only meaningful when the \fB-undo\fR option is true.
func (*Text) AutoSeparatorsM ¶ added in v1.0.16
AutoSeparatorsM is like AutoSeparators but panics on error.
func (*Text) Background ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Text) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*Text) BlockCursor ¶ added in v1.0.14
BlockCursor reports a boolean that says whether the blinking insertion cursor should be drawn as a character-sized rectangular block. If false (the default) a thin vertical line is used for the insertion cursor.
func (*Text) BlockCursorM ¶ added in v1.0.16
BlockCursorM is like BlockCursor but panics on error.
func (*Text) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*Text) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Text) EndLine ¶ added in v1.0.14
EndLine reports an integer line index representing the line of the underlying textual data store that should be just after the last line contained in the widget. This allows a text widget to reflect only a portion of a larger piece of text. Instead of an integer, the empty string can be provided to this configuration option, which will configure the widget to end at the very last line in the textual data store.
func (*Text) ExportSelection ¶ added in v1.0.14
ExportSelection reports whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*Text) ExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*Text) Font ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Text) Foreground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Text) ForegroundM ¶ added in v1.0.16
ForegroundM is like Foreground but panics on error.
func (*Text) Height ¶ added in v1.0.14
Height reports the desired height for the window, in units of characters in the font given by the \fB-font\fR option. Must be at least one.
func (*Text) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Text) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*Text) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Text) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*Text) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Text) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*Text) InactiveSelectBackground ¶ added in v1.0.14
InactiveSelectBackground reports the colour to use for the selection (the \fBsel\fR tag) when the window does not have the input focus. If empty, \fB{}\fR, then no selection is shown when the window does not have the focus.
func (*Text) InactiveSelectBackgroundM ¶ added in v1.0.16
InactiveSelectBackgroundM is like InactiveSelectBackground but panics on error.
func (*Text) InsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Text) InsertBackgroundM ¶ added in v1.0.16
InsertBackgroundM is like InsertBackground but panics on error.
func (*Text) InsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) InsertBorderWidthM ¶ added in v1.0.16
InsertBorderWidthM is like InsertBorderWidth but panics on error.
func (*Text) InsertOffTime ¶ added in v1.0.14
InsertOffTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Text) InsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Text) InsertOnTime ¶ added in v1.0.14
InsertOnTime reports a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Text) InsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Text) InsertUnfocussed ¶ added in v1.0.14
InsertUnfocussed reports how to display the insertion cursor when the widget does not have the focus. Must be \fBnone\fR (the default) which means to not display the cursor, \fBhollow\fR which means to display a hollow box, or \fBsolid\fR which means to display a solid box. Note that \fBhollow\fR and \fBsolid\fR will appear very similar when the \fB-blockcursor\fR option is false.
func (*Text) InsertUnfocussedM ¶ added in v1.0.16
InsertUnfocussedM is like InsertUnfocussed but panics on error.
func (*Text) InsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Text) InsertWidthM ¶ added in v1.0.16
InsertWidthM is like InsertWidth but panics on error.
func (*Text) MaxUndo ¶ added in v1.0.14
MaxUndo reports the maximum number of compound undo actions on the undo stack. A zero or a negative value imply an unlimited undo stack.
func (*Text) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Text) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Text) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Text) SelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Text) SelectBackgroundM ¶ added in v1.0.16
SelectBackgroundM is like SelectBackground but panics on error.
func (*Text) SelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) SelectBorderWidthM ¶ added in v1.0.17
SelectBorderWidthM is like SelectBorderWidth but panics on error.
func (*Text) SelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Text) SelectForegroundM ¶ added in v1.0.16
SelectForegroundM is like SelectForeground but panics on error.
func (*Text) SetAutoSeparators ¶ added in v1.0.14
AutoSeparators reports a boolean that says whether separators are automatically inserted in the undo stack. Only meaningful when the \fB-undo\fR option is true.
func (*Text) SetAutoSeparatorsM ¶ added in v1.0.16
SetAutoSeparatorsM is like AutoSeparators but panics on error
func (*Text) SetBackground ¶ added in v1.0.14
Background reports the normal background color to use when displaying the widget.
func (*Text) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*Text) SetBlockCursor ¶ added in v1.0.14
BlockCursor reports a boolean that says whether the blinking insertion cursor should be drawn as a character-sized rectangular block. If false (the default) a thin vertical line is used for the insertion cursor.
func (*Text) SetBlockCursorM ¶ added in v1.0.16
SetBlockCursorM is like BlockCursor but panics on error
func (*Text) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*Text) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*Text) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*Text) SetEndLine ¶ added in v1.0.14
EndLine reports an integer line index representing the line of the underlying textual data store that should be just after the last line contained in the widget. This allows a text widget to reflect only a portion of a larger piece of text. Instead of an integer, the empty string can be provided to this configuration option, which will configure the widget to end at the very last line in the textual data store.
func (*Text) SetEndLineM ¶ added in v1.0.16
SetEndLineM is like EndLine but panics on error
func (*Text) SetExportSelection ¶ added in v1.0.14
ExportSelection specifies whether or not a selection in the widget should also be the X selection. The value may have any of the forms accepted by \fBTcl_GetBoolean\fR, such as \fBtrue\fR, \fBfalse\fR, \fB0\fR, \fB1\fR, \fByes\fR, or \fBno\fR. If the selection is exported, then selecting in the widget deselects the current X selection, selecting outside the widget deselects any widget selection, and the widget will respond to selection retrieval requests when it has a selection. The default is usually for widgets to export selections.
func (*Text) SetExportSelectionM ¶ added in v1.0.16
ExportSelectionM is like ExportSelection but panics on error.
func (*Text) SetFont ¶ added in v1.0.14
Font reports the font to use when drawing text inside the widget. The value may have any of the forms described in the \fBfont\fR manual page under \fBFONT DESCRIPTION\fR.
func (*Text) SetForeground ¶ added in v1.0.14
Foreground reports the normal foreground color to use when displaying the widget.
func (*Text) SetForegroundM ¶ added in v1.0.16
SetForegroundM is like Foreground but panics on error
func (*Text) SetGrid ¶ added in v1.0.14
SetGrid reports a boolean value that determines whether this widget controls the resizing grid for its top-level window. This option is typically used in text widgets, where the information in the widget has a natural size (the size of a character) and it makes sense for the window's dimensions to be integral numbers of these units. These natural window sizes form a grid. If the \fB-setgrid\fR option is set to true then the widget will communicate with the window manager so that when the user interactively resizes the top-level window that contains the widget, the dimensions of the window will be displayed to the user in grid units and the window size will be constrained to integral numbers of grid units. See the section \fBGRIDDED GEOMETRY MANAGEMENT\fR in the \fBwm\fR manual entry for more details.
func (*Text) SetHeight ¶ added in v1.0.14
Height reports the desired height for the window, in units of characters in the font given by the \fB-font\fR option. Must be at least one.
func (*Text) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*Text) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*Text) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*Text) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*Text) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*Text) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*Text) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*Text) SetInactiveSelectBackground ¶ added in v1.0.14
InactiveSelectBackground reports the colour to use for the selection (the \fBsel\fR tag) when the window does not have the input focus. If empty, \fB{}\fR, then no selection is shown when the window does not have the focus.
func (*Text) SetInactiveSelectBackgroundM ¶ added in v1.0.16
SetInactiveSelectBackgroundM is like InactiveSelectBackground but panics on error
func (*Text) SetInsertBackground ¶ added in v1.0.14
InsertBackground reports the color to use as background in the area covered by the insertion cursor. This color will normally override either the normal background for the widget (or the selection background if the insertion cursor happens to fall in the selection).
func (*Text) SetInsertBackgroundM ¶ added in v1.0.16
SetInsertBackgroundM is like InsertBackground but panics on error
func (*Text) SetInsertBorderWidth ¶ added in v1.0.14
InsertBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) SetInsertBorderWidthM ¶ added in v1.0.16
SetInsertBorderWidthM is like InsertBorderWidth but panics on error
func (*Text) SetInsertOffTime ¶ added in v1.0.14
InsertOffTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(off) in each blink cycle. If this option is zero then the cursor does not blink: it is on all the time.
func (*Text) SetInsertOffTimeM ¶ added in v1.0.16
InsertOffTimeM is like InsertOffTime but panics on error.
func (*Text) SetInsertOnTime ¶ added in v1.0.14
InsertOnTime specifies a non-negative integer value indicating the number of milliseconds the insertion cursor should remain TODO .QW(on) in each blink cycle.
func (*Text) SetInsertOnTimeM ¶ added in v1.0.16
InsertOnTimeM is like InsertOnTime but panics on error.
func (*Text) SetInsertUnfocussed ¶ added in v1.0.14
InsertUnfocussed reports how to display the insertion cursor when the widget does not have the focus. Must be \fBnone\fR (the default) which means to not display the cursor, \fBhollow\fR which means to display a hollow box, or \fBsolid\fR which means to display a solid box. Note that \fBhollow\fR and \fBsolid\fR will appear very similar when the \fB-blockcursor\fR option is false.
func (*Text) SetInsertUnfocussedM ¶ added in v1.0.16
SetInsertUnfocussedM is like InsertUnfocussed but panics on error
func (*Text) SetInsertWidth ¶ added in v1.0.14
InsertWidth reports a value indicating the total width of the insertion cursor. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If a border has been specified for the insertion cursor (using the \fB-insertborderwidth\fR option), the border will be drawn inside the width specified by the \fB-insertwidth\fR option.
func (*Text) SetInsertWidthM ¶ added in v1.0.16
SetInsertWidthM is like InsertWidth but panics on error
func (*Text) SetMaxUndo ¶ added in v1.0.14
MaxUndo reports the maximum number of compound undo actions on the undo stack. A zero or a negative value imply an unlimited undo stack.
func (*Text) SetMaxUndoM ¶ added in v1.0.16
SetMaxUndoM is like MaxUndo but panics on error
func (*Text) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Text) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*Text) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*Text) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*Text) SetSelectBackground ¶ added in v1.0.14
SelectBackground reports the background color to use when displaying selected items.
func (*Text) SetSelectBackgroundM ¶ added in v1.0.16
SetSelectBackgroundM is like SelectBackground but panics on error
func (*Text) SetSelectBorderWidth ¶ added in v1.0.17
SelectBorderWidth reports a non-negative value indicating the width of the 3-D border to draw around selected items. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*Text) SetSelectBorderWidthM ¶ added in v1.0.17
SetSelectBorderWidthM is like SelectBorderWidth but panics on error
func (*Text) SetSelectForeground ¶ added in v1.0.14
SelectForeground reports the foreground color to use when displaying selected items.
func (*Text) SetSelectForegroundM ¶ added in v1.0.16
SetSelectForegroundM is like SelectForeground but panics on error
func (*Text) SetSetGrid ¶ added in v1.0.14
SetGrid reports a boolean value that determines whether this widget controls the resizing grid for its top-level window. This option is typically used in text widgets, where the information in the widget has a natural size (the size of a character) and it makes sense for the window's dimensions to be integral numbers of these units. These natural window sizes form a grid. If the \fB-setgrid\fR option is set to true then the widget will communicate with the window manager so that when the user interactively resizes the top-level window that contains the widget, the dimensions of the window will be displayed to the user in grid units and the window size will be constrained to integral numbers of grid units. See the section \fBGRIDDED GEOMETRY MANAGEMENT\fR in the \fBwm\fR manual entry for more details.
func (*Text) SetSetGridM ¶ added in v1.0.16
SetSetGridM is like SetGrid but panics on error
func (*Text) SetSpacing1 ¶ added in v1.0.14
Requests additional space above each text line in the widget, using any of the standard forms for screen distances. If a line wraps, this option only applies to the first line on the display. This option may be overridden with \fB-spacing1\fR options in tags.
func (*Text) SetSpacing1M ¶ added in v1.0.16
SetSpacing1M is like Spacing1 but panics on error
func (*Text) SetSpacing2 ¶ added in v1.0.14
For lines that wrap (so that they cover more than one line on the display) this option specifies additional space to provide between the display lines that represent a single line of text. The value may have any of the standard forms for screen distances. This option may be overridden with \fB-spacing2\fR options in tags.
func (*Text) SetSpacing2M ¶ added in v1.0.16
SetSpacing2M is like Spacing2 but panics on error
func (*Text) SetSpacing3 ¶ added in v1.0.14
Requests additional space below each text line in the widget, using any of the standard forms for screen distances. If a line wraps, this option only applies to the last line on the display. This option may be overridden with \fB-spacing3\fR options in tags.
func (*Text) SetSpacing3M ¶ added in v1.0.16
SetSpacing3M is like Spacing3 but panics on error
func (*Text) SetStartLine ¶ added in v1.0.14
StartLine reports an integer line index representing the first line of the underlying textual data store that should be contained in the widget. This allows a text widget to reflect only a portion of a larger piece of text. Instead of an integer, the empty string can be provided to this configuration option, which will configure the widget to start at the very first line in the textual data store.
func (*Text) SetStartLineM ¶ added in v1.0.16
SetStartLineM is like StartLine but panics on error
func (*Text) SetState ¶ added in v1.0.14
State reports one of two states for the text: \fBnormal\fR or \fBdisabled\fR. If the text is disabled then characters may not be inserted or deleted and no insertion cursor will be displayed, even if the input focus is in the widget.
func (*Text) SetTabStyle ¶ added in v1.0.14
TabStyle reports how to interpret the relationship between tab stops on a line and tabs in the text of that line. The value must be \fBtabular\fR (the default) or \fBwordprocessor\fR. Note that tabs are interpreted as they are encountered in the text. If the tab style is \fBtabular\fR then the \fIn\fR'th tab character in the line's text will be associated with the \fIn\fR'th tab stop defined for that line. If the tab character's x coordinate falls to the right of the \fIn\fR'th tab stop, then a gap of a single space will be inserted as a fallback. If the tab style is \fBwordprocessor\fR then any tab character being laid out will use (and be defined by) the first tab stop to the right of the preceding characters already laid out on that line. The value of the \fB-tabstyle\fR option may be overridden by \fB-tabstyle\fR options in tags.
func (*Text) SetTabStyleM ¶ added in v1.0.16
SetTabStyleM is like TabStyle but panics on error
func (*Text) SetTabs ¶ added in v1.0.14
Tabs reports a set of tab stops for the window. The option's value consists of a list of screen distances giving the positions of the tab stops, each of which is a distance relative to the left edge of the widget (excluding borders, padding, etc). Each position may optionally be followed in the next list element by one of the keywords \fBleft\fR, \fBright\fR, \fBcenter\fR, or \fBnumeric\fR, which specifies how to justify text relative to the tab stop. \fBLeft\fR is the default; it causes the text following the tab character to be positioned with its left edge at the tab position. \fBRight\fR means that the right edge of the text following the tab character is positioned at the tab position, and \fBcenter\fR means that the text is centered at the tab position. \fBNumeric\fR means that the decimal point in the text is positioned at the tab position; if there is no decimal point then the least significant digit of the number is positioned just to the left of the tab position; if there is no number in the text then the text is right-justified at the tab position. For example, TODO .QW("\fB-tabs {2c left 4c 6c center}\fR") creates three tab stops at two-centimeter intervals; the first two use left justification and the third uses center justification.
func (*Text) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Text) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*Text) SetUndo ¶ added in v1.0.14
Undo reports a boolean that says whether the undo mechanism is active or not.
func (*Text) SetWidth ¶ added in v1.0.14
Width reports the desired width for the window in units of characters in the font given by the \fB-font\fR option. If the font does not have a uniform width then the width of the character TODO .QW(0) is used in translating from character units to screen units.
func (*Text) SetWrap ¶ added in v1.0.14
Wrap reports how to handle lines in the text that are too long to be displayed in a single line of the text's window. The value must be \fBnone\fR or \fBchar\fR or \fBword\fR. A wrap mode of \fBnone\fR means that each line of text appears as exactly one line on the screen; extra characters that do not fit on the screen are not displayed. In the other modes each line of text will be broken up into several screen lines if necessary to keep all the characters visible. In \fBchar\fR mode a screen line break may occur after any character; in \fBword\fR mode a line break will only be made at word boundaries.
func (*Text) SetXScrollCommand ¶ added in v1.0.14
XScrollCommand specifies the prefix for a command used to communicate with horizontal scrollbars. When the view in the widget's window changes (or whenever anything else occurs that could change the display in a scrollbar, such as a change in the total size of the widget's contents), the widget will generate a Tcl command by concatenating the scroll command and two numbers. Each of the numbers is a fraction between 0 and 1, which indicates a position in the document. 0 indicates the beginning of the document, 1 indicates the end, .333 indicates a position one third the way through the document, and so on. The first fraction indicates the first information in the document that is visible in the window, and the second fraction indicates the information just after the last portion that is visible. The command is then passed to the Tcl interpreter for execution. Typically the \fB-xscrollcommand\fR option consists of the path name of a scrollbar widget followed by TODO .QW(set ,) e.g. TODO .QW(".x.scrollbar set" :) this will cause the scrollbar to be updated whenever the view in the window changes. If this option is not specified, then no command will be executed.
func (*Text) SetXScrollCommandM ¶ added in v1.0.16
SetXScrollCommandM is like XScrollCommand but panics on error
func (*Text) SetYScrollCommand ¶ added in v1.0.17
YScrollCommand specifies the prefix for a command used to communicate with vertical scrollbars. This option is treated in the same way as the \fB-xscrollcommand\fR option, except that it is used for vertical scrollbars and is provided by widgets that support vertical scrolling. See the description of \fB-xscrollcommand\fR for details on how this option is used.
func (*Text) SetYScrollCommandM ¶ added in v1.0.17
SetYScrollCommandM is like YScrollCommand but panics on error
func (*Text) Spacing1 ¶ added in v1.0.14
Requests additional space above each text line in the widget, using any of the standard forms for screen distances. If a line wraps, this option only applies to the first line on the display. This option may be overridden with \fB-spacing1\fR options in tags.
func (*Text) Spacing2 ¶ added in v1.0.14
For lines that wrap (so that they cover more than one line on the display) this option specifies additional space to provide between the display lines that represent a single line of text. The value may have any of the standard forms for screen distances. This option may be overridden with \fB-spacing2\fR options in tags.
func (*Text) Spacing3 ¶ added in v1.0.14
Requests additional space below each text line in the widget, using any of the standard forms for screen distances. If a line wraps, this option only applies to the last line on the display. This option may be overridden with \fB-spacing3\fR options in tags.
func (*Text) StartLine ¶ added in v1.0.14
StartLine reports an integer line index representing the first line of the underlying textual data store that should be contained in the widget. This allows a text widget to reflect only a portion of a larger piece of text. Instead of an integer, the empty string can be provided to this configuration option, which will configure the widget to start at the very first line in the textual data store.
func (*Text) StartLineM ¶ added in v1.0.16
StartLineM is like StartLine but panics on error.
func (*Text) State ¶ added in v1.0.14
State reports one of two states for the text: \fBnormal\fR or \fBdisabled\fR. If the text is disabled then characters may not be inserted or deleted and no insertion cursor will be displayed, even if the input focus is in the widget.
func (*Text) TabStyle ¶ added in v1.0.14
TabStyle reports how to interpret the relationship between tab stops on a line and tabs in the text of that line. The value must be \fBtabular\fR (the default) or \fBwordprocessor\fR. Note that tabs are interpreted as they are encountered in the text. If the tab style is \fBtabular\fR then the \fIn\fR'th tab character in the line's text will be associated with the \fIn\fR'th tab stop defined for that line. If the tab character's x coordinate falls to the right of the \fIn\fR'th tab stop, then a gap of a single space will be inserted as a fallback. If the tab style is \fBwordprocessor\fR then any tab character being laid out will use (and be defined by) the first tab stop to the right of the preceding characters already laid out on that line. The value of the \fB-tabstyle\fR option may be overridden by \fB-tabstyle\fR options in tags.
func (*Text) Tabs ¶ added in v1.0.14
Tabs reports a set of tab stops for the window. The option's value consists of a list of screen distances giving the positions of the tab stops, each of which is a distance relative to the left edge of the widget (excluding borders, padding, etc). Each position may optionally be followed in the next list element by one of the keywords \fBleft\fR, \fBright\fR, \fBcenter\fR, or \fBnumeric\fR, which specifies how to justify text relative to the tab stop. \fBLeft\fR is the default; it causes the text following the tab character to be positioned with its left edge at the tab position. \fBRight\fR means that the right edge of the text following the tab character is positioned at the tab position, and \fBcenter\fR means that the text is centered at the tab position. \fBNumeric\fR means that the decimal point in the text is positioned at the tab position; if there is no decimal point then the least significant digit of the number is positioned just to the left of the tab position; if there is no number in the text then the text is right-justified at the tab position. For example, TODO .QW("\fB-tabs {2c left 4c 6c center}\fR") creates three tab stops at two-centimeter intervals; the first two use left justification and the third uses center justification.
func (*Text) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*Text) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*Text) Undo ¶ added in v1.0.14
Undo reports a boolean that says whether the undo mechanism is active or not.
func (*Text) Width ¶ added in v1.0.14
Width reports the desired width for the window in units of characters in the font given by the \fB-font\fR option. If the font does not have a uniform width then the width of the character TODO .QW(0) is used in translating from character units to screen units.
func (*Text) Wrap ¶ added in v1.0.14
Wrap reports how to handle lines in the text that are too long to be displayed in a single line of the text's window. The value must be \fBnone\fR or \fBchar\fR or \fBword\fR. A wrap mode of \fBnone\fR means that each line of text appears as exactly one line on the screen; extra characters that do not fit on the screen are not displayed. In the other modes each line of text will be broken up into several screen lines if necessary to keep all the characters visible. In \fBchar\fR mode a screen line break may occur after any character; in \fBword\fR mode a line break will only be made at word boundaries.
type TopLevel ¶ added in v1.0.14
type TopLevel struct {
Window
}
TopLevel represents the Tk toplevel widget.
func (*TopLevel) Background ¶ added in v1.0.14
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*TopLevel) BackgroundM ¶ added in v1.0.16
BackgroundM is like Background but panics on error.
func (*TopLevel) BorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*TopLevel) BorderWidthM ¶ added in v1.0.16
BorderWidthM is like BorderWidth but panics on error.
func (*TopLevel) Class ¶ added in v1.0.14
Class reports a class for the window. This class will be used when querying the option database for the window's other options, and it will also be used later for other purposes such as bindings. Some window managers display the class name for windows in their dock while some others display the window title. The \fB-class\fR option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) Colormap ¶ added in v1.0.14
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the default colormap of its screen. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) Container ¶ added in v1.0.14
The value must be a boolean. If true, it means that this window will be used as a container in which some other application will be embedded (for example, a Tk toplevel can be embedded using the \fB-use\fR option). The window will support the appropriate window manager protocols for things like geometry requests. The window should not have any children of its own in this application. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) ContainerM ¶ added in v1.0.16
ContainerM is like Container but panics on error.
func (*TopLevel) Cursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TopLevel) Height ¶ added in v1.0.14
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*TopLevel) HighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*TopLevel) HighlightBackgroundM ¶ added in v1.0.16
HighlightBackgroundM is like HighlightBackground but panics on error.
func (*TopLevel) HighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*TopLevel) HighlightColorM ¶ added in v1.0.16
HighlightColorM is like HighlightColor but panics on error.
func (*TopLevel) HighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*TopLevel) HighlightThicknessM ¶ added in v1.0.16
HighlightThicknessM is like HighlightThickness but panics on error.
func (*TopLevel) Menu ¶ added in v1.0.14
Menu reports a menu widget to be used as a menubar. On the Macintosh, the menubar will be displayed across the top of the main monitor. On Microsoft Windows and all UNIX platforms, the menu will appear across the toplevel window as part of the window dressing maintained by the window manager.
func (*TopLevel) PadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*TopLevel) PadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*TopLevel) Relief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*TopLevel) Screen ¶ added in v1.0.14
Screen reports the screen on which to place the new window. Any valid screen name may be used, even one associated with a different display. Defaults to the same screen as its parent. This option is special in that it may not be specified via the option database, and it may not be modified with the \fBconfigure\fR widget command.
func (*TopLevel) SetBackground ¶ added in v1.0.14
This option is the same as the standard \fB-background\fR option except that its value may also be specified as an empty string. In this case, the widget will display no background or border, and no colors will be consumed from its colormap for its background and border.
func (*TopLevel) SetBackgroundM ¶ added in v1.0.16
SetBackgroundM is like Background but panics on error
func (*TopLevel) SetBorderWidth ¶ added in v1.0.14
BorderWidth reports a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the \fB-relief\fR option typically determines this). The value may also be used when drawing 3-D effects in the interior of the widget. The value may have any of the forms acceptable to \fBTk_GetPixels\fR.
func (*TopLevel) SetBorderWidthM ¶ added in v1.0.16
SetBorderWidthM is like BorderWidth but panics on error
func (*TopLevel) SetColormap ¶ added in v1.0.14
Colormap reports a colormap to use for the window. The value may be either \fBnew\fR, in which case a new colormap is created for the window and its children, or the name of another window (which must be on the same screen and have the same visual as \fIpathName\fR), in which case the new window will use the colormap from the specified window. If the \fB-colormap\fR option is not specified, the new window uses the default colormap of its screen. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) SetColormapM ¶ added in v1.0.16
SetColormapM is like Colormap but panics on error
func (*TopLevel) SetContainer ¶ added in v1.0.14
The value must be a boolean. If true, it means that this window will be used as a container in which some other application will be embedded (for example, a Tk toplevel can be embedded using the \fB-use\fR option). The window will support the appropriate window manager protocols for things like geometry requests. The window should not have any children of its own in this application. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) SetContainerM ¶ added in v1.0.16
SetContainerM is like Container but panics on error
func (*TopLevel) SetCursor ¶ added in v1.0.14
Cursor reports the mouse cursor to be used for the widget. The value may have any of the forms acceptable to \fBTk_GetCursor\fR. In addition, if an empty string is specified, it indicates that the widget should defer to its parent for cursor specification.
func (*TopLevel) SetCursorM ¶ added in v1.0.16
SetCursorM is like Cursor but panics on error
func (*TopLevel) SetHeight ¶ added in v1.0.14
Height reports the desired height for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*TopLevel) SetHeightM ¶ added in v1.0.16
SetHeightM is like Height but panics on error
func (*TopLevel) SetHighlightBackground ¶ added in v1.0.14
HighlightBackground reports the color to display in the traversal highlight region when the widget does not have the input focus.
func (*TopLevel) SetHighlightBackgroundM ¶ added in v1.0.16
SetHighlightBackgroundM is like HighlightBackground but panics on error
func (*TopLevel) SetHighlightColor ¶ added in v1.0.14
HighlightColor reports the color to use for the traversal highlight rectangle that is drawn around the widget when it has the input focus.
func (*TopLevel) SetHighlightColorM ¶ added in v1.0.16
SetHighlightColorM is like HighlightColor but panics on error
func (*TopLevel) SetHighlightThickness ¶ added in v1.0.14
HighlightThickness reports a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. If the value is zero, no focus highlight is drawn around the widget.
func (*TopLevel) SetHighlightThicknessM ¶ added in v1.0.16
SetHighlightThicknessM is like HighlightThickness but panics on error
func (*TopLevel) SetMenu ¶ added in v1.0.14
Menu reports a menu widget to be used as a menubar. On the Macintosh, the menubar will be displayed across the top of the main monitor. On Microsoft Windows and all UNIX platforms, the menu will appear across the toplevel window as part of the window dressing maintained by the window manager.
func (*TopLevel) SetPadX ¶ added in v1.0.14
PadX reports a non-negative value indicating how much extra space to request for the widget in the X-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the width it would normally need (as determined by the width of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space to the left and/or right of what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*TopLevel) SetPadY ¶ added in v1.0.14
PadY reports a non-negative value indicating how much extra space to request for the widget in the Y-direction. The value may have any of the forms acceptable to \fBTk_GetPixels\fR. When computing how large a window it needs, the widget will add this amount to the height it would normally need (as determined by the height of the things displayed in the widget); if the geometry manager can satisfy this request, the widget will end up with extra internal space above and/or below what it displays inside. Most widgets only use this option for padding text: if they are displaying a bitmap or image, then they usually ignore padding options.
func (*TopLevel) SetRelief ¶ added in v1.0.14
Relief reports the 3-D effect desired for the widget. Acceptable values are \fBraised\fR, \fBsunken\fR, \fBflat\fR, \fBridge\fR, \fBsolid\fR, and \fBgroove\fR. The value indicates how the interior of the widget should appear relative to its exterior; for example, \fBraised\fR means the interior of the widget should appear to protrude from the screen, relative to the exterior of the widget.
func (*TopLevel) SetReliefM ¶ added in v1.0.16
SetReliefM is like Relief but panics on error
func (*TopLevel) SetScreen ¶ added in v1.0.14
Screen reports the screen on which to place the new window. Any valid screen name may be used, even one associated with a different display. Defaults to the same screen as its parent. This option is special in that it may not be specified via the option database, and it may not be modified with the \fBconfigure\fR widget command.
func (*TopLevel) SetScreenM ¶ added in v1.0.16
SetScreenM is like Screen but panics on error
func (*TopLevel) SetTakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TopLevel) SetTakeFocusM ¶ added in v1.0.16
SetTakeFocusM is like TakeFocus but panics on error
func (*TopLevel) SetUse ¶ added in v1.0.14
This option is used for embedding. If the value is not an empty string, it must be the window identifier of a container window, specified as a hexadecimal string like the ones returned by the \fBwinfo id\fR command. The toplevel widget will be created as a child of the given container instead of the root window for the screen. If the container window is in a Tk application, it must be a frame or toplevel widget for which the \fB-container\fR option was specified. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) SetVisual ¶ added in v1.0.14
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the default visual for its screen. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
func (*TopLevel) SetVisualM ¶ added in v1.0.16
SetVisualM is like Visual but panics on error
func (*TopLevel) SetWidth ¶ added in v1.0.14
Width reports the desired width for the window in any of the forms acceptable to \fBTk_GetPixels\fR. If this option is less than or equal to zero then the window will not request any size at all.
func (*TopLevel) TakeFocus ¶ added in v1.0.14
Determines whether the window accepts the focus during keyboard traversal (e.g., Tab and Shift-Tab). Before setting the focus to a window, the traversal scripts consult the value of the \fB-takefocus\fR option. A value of \fB0\fR means that the window should be skipped entirely during keyboard traversal. \fB1\fR means that the window should receive the input focus as long as it is viewable (it and all of its ancestors are mapped). An empty value for the option means that the traversal scripts make the decision about whether or not to focus on the window: the current algorithm is to skip the window if it is disabled, if it has no key bindings, or if it is not viewable. If the value has any other form, then the traversal scripts take the value, append the name of the window to it (with a separator space), and evaluate the resulting string as a Tcl script. The script must return \fB0\fR, \fB1\fR, or an empty string: a \fB0\fR or \fB1\fR value specifies whether the window will receive the input focus, and an empty string results in the default decision described above. Note: this interpretation of the option is defined entirely by the Tcl scripts that implement traversal: the widget implementations ignore the option entirely, so you can change its meaning if you redefine the keyboard traversal scripts.
func (*TopLevel) TakeFocusM ¶ added in v1.0.16
TakeFocusM is like TakeFocus but panics on error.
func (*TopLevel) Use ¶ added in v1.0.14
This option is used for embedding. If the value is not an empty string, it must be the window identifier of a container window, specified as a hexadecimal string like the ones returned by the \fBwinfo id\fR command. The toplevel widget will be created as a child of the given container instead of the root window for the screen. If the container window is in a Tk application, it must be a frame or toplevel widget for which the \fB-container\fR option was specified. This option may not be changed with the \fBconfigure\fR widget command.
func (*TopLevel) Visual ¶ added in v1.0.14
Visual reports visual information for the new window in any of the forms accepted by \fBTk_GetVisual\fR. If this option is not specified, the new window will use the default visual for its screen. The \fB-visual\fR option may not be modified with the \fBconfigure\fR widget command.
type Widget ¶ added in v1.0.13
type Widget interface {
Win() *Window
}
Widget represents any GUI element.
type Window ¶ added in v1.0.15
type Window struct {
// contains filtered or unexported fields
}
Window is the base of all GUI elements.
func (*Window) NewButton ¶ added in v1.0.15
NewButton returns a new Button as a child of w or an error, if any.
func (*Window) NewButtonM ¶ added in v1.0.16
NewButtonM is like NewButton but panics on error.
func (*Window) NewCanvas ¶ added in v1.0.15
NewCanvas returns a new Canvas as a child of w or an error, if any.
func (*Window) NewCanvasM ¶ added in v1.0.16
NewCanvasM is like NewCanvas but panics on error.
func (*Window) NewCheckButton ¶ added in v1.0.15
func (w *Window) NewCheckButton() (r *CheckButton, err error)
NewCheckButton returns a new CheckButton as a child of w or an error, if any.
func (*Window) NewCheckButtonM ¶ added in v1.0.16
func (w *Window) NewCheckButtonM() *CheckButton
NewCheckButtonM is like NewCheckButton but panics on error.
func (*Window) NewEntry ¶ added in v1.0.15
NewEntry returns a new Entry as a child of w or an error, if any.
func (*Window) NewFrame ¶ added in v1.0.15
NewFrame returns a new Frame as a child of w or an error, if any.
func (*Window) NewLabel ¶ added in v1.0.15
NewLabel returns a new Label as a child of w or an error, if any.
func (*Window) NewLabelFrame ¶ added in v1.0.15
func (w *Window) NewLabelFrame() (r *LabelFrame, err error)
NewLabelFrame returns a new LabelFrame as a child of w or an error, if any.
func (*Window) NewLabelFrameM ¶ added in v1.0.16
func (w *Window) NewLabelFrameM() *LabelFrame
NewLabelFrameM is like NewLabelFrame but panics on error.
func (*Window) NewListBox ¶ added in v1.0.15
NewListBox returns a new ListBox as a child of w or an error, if any.
func (*Window) NewListBoxM ¶ added in v1.0.16
NewListBoxM is like NewListBox but panics on error.
func (*Window) NewMenu ¶ added in v1.0.15
NewMenu returns a new Menu as a child of w or an error, if any.
func (*Window) NewMenuButton ¶ added in v1.0.15
func (w *Window) NewMenuButton() (r *MenuButton, err error)
NewMenuButton returns a new MenuButton as a child of w or an error, if any.
func (*Window) NewMenuButtonM ¶ added in v1.0.16
func (w *Window) NewMenuButtonM() *MenuButton
NewMenuButtonM is like NewMenuButton but panics on error.
func (*Window) NewMessage ¶ added in v1.0.15
NewMessage returns a new Message as a child of w or an error, if any.
func (*Window) NewMessageM ¶ added in v1.0.16
NewMessageM is like NewMessage but panics on error.
func (*Window) NewPanedWindow ¶ added in v1.0.15
func (w *Window) NewPanedWindow() (r *PanedWindow, err error)
NewPanedWindow returns a new PanedWindow as a child of w or an error, if any.
func (*Window) NewPanedWindowM ¶ added in v1.0.16
func (w *Window) NewPanedWindowM() *PanedWindow
NewPanedWindowM is like NewPanedWindow but panics on error.
func (*Window) NewRadioButton ¶ added in v1.0.15
func (w *Window) NewRadioButton() (r *RadioButton, err error)
NewRadioButton returns a new RadioButton as a child of w or an error, if any.
func (*Window) NewRadioButtonM ¶ added in v1.0.16
func (w *Window) NewRadioButtonM() *RadioButton
NewRadioButtonM is like NewRadioButton but panics on error.
func (*Window) NewScale ¶ added in v1.0.15
NewScale returns a new Scale as a child of w or an error, if any.
func (*Window) NewScrollbar ¶ added in v1.0.15
NewScrollbar returns a new Scrollbar as a child of w or an error, if any.
func (*Window) NewScrollbarM ¶ added in v1.0.16
NewScrollbarM is like NewScrollbar but panics on error.
func (*Window) NewSpinBox ¶ added in v1.0.15
NewSpinBox returns a new SpinBox as a child of w or an error, if any.
func (*Window) NewSpinBoxM ¶ added in v1.0.16
NewSpinBoxM is like NewSpinBox but panics on error.
func (*Window) NewTButton ¶ added in v1.0.15
NewTButton returns a new TButton as a child of w or an error, if any.
func (*Window) NewTButtonM ¶ added in v1.0.16
NewTButtonM is like NewTButton but panics on error.
func (*Window) NewTCheckButton ¶ added in v1.0.15
func (w *Window) NewTCheckButton() (r *TCheckButton, err error)
NewTCheckButton returns a new TCheckButton as a child of w or an error, if any.
func (*Window) NewTCheckButtonM ¶ added in v1.0.16
func (w *Window) NewTCheckButtonM() *TCheckButton
NewTCheckButtonM is like NewTCheckButton but panics on error.
func (*Window) NewTComboBox ¶ added in v1.0.15
NewTComboBox returns a new TComboBox as a child of w or an error, if any.
func (*Window) NewTComboBoxM ¶ added in v1.0.16
NewTComboBoxM is like NewTComboBox but panics on error.
func (*Window) NewTEntry ¶ added in v1.0.15
NewTEntry returns a new TEntry as a child of w or an error, if any.
func (*Window) NewTEntryM ¶ added in v1.0.16
NewTEntryM is like NewTEntry but panics on error.
func (*Window) NewTFrame ¶ added in v1.0.15
NewTFrame returns a new TFrame as a child of w or an error, if any.
func (*Window) NewTFrameM ¶ added in v1.0.16
NewTFrameM is like NewTFrame but panics on error.
func (*Window) NewTLabel ¶ added in v1.0.15
NewTLabel returns a new TLabel as a child of w or an error, if any.
func (*Window) NewTLabelFrame ¶ added in v1.0.15
func (w *Window) NewTLabelFrame() (r *TLabelFrame, err error)
NewTLabelFrame returns a new TLabelFrame as a child of w or an error, if any.
func (*Window) NewTLabelFrameM ¶ added in v1.0.16
func (w *Window) NewTLabelFrameM() *TLabelFrame
NewTLabelFrameM is like NewTLabelFrame but panics on error.
func (*Window) NewTLabelM ¶ added in v1.0.16
NewTLabelM is like NewTLabel but panics on error.
func (*Window) NewTMenuButton ¶ added in v1.0.15
func (w *Window) NewTMenuButton() (r *TMenuButton, err error)
NewTMenuButton returns a new TMenuButton as a child of w or an error, if any.
func (*Window) NewTMenuButtonM ¶ added in v1.0.16
func (w *Window) NewTMenuButtonM() *TMenuButton
NewTMenuButtonM is like NewTMenuButton but panics on error.
func (*Window) NewTNotebook ¶ added in v1.0.15
NewTNotebook returns a new TNotebook as a child of w or an error, if any.
func (*Window) NewTNotebookM ¶ added in v1.0.16
NewTNotebookM is like NewTNotebook but panics on error.
func (*Window) NewTPanedWindow ¶ added in v1.0.15
func (w *Window) NewTPanedWindow() (r *TPanedWindow, err error)
NewTPanedWindow returns a new TPanedWindow as a child of w or an error, if any.
func (*Window) NewTPanedWindowM ¶ added in v1.0.16
func (w *Window) NewTPanedWindowM() *TPanedWindow
NewTPanedWindowM is like NewTPanedWindow but panics on error.
func (*Window) NewTProgressBar ¶ added in v1.0.15
func (w *Window) NewTProgressBar() (r *TProgressBar, err error)
NewTProgressBar returns a new TProgressBar as a child of w or an error, if any.
func (*Window) NewTProgressBarM ¶ added in v1.0.16
func (w *Window) NewTProgressBarM() *TProgressBar
NewTProgressBarM is like NewTProgressBar but panics on error.
func (*Window) NewTRadioButton ¶ added in v1.0.15
func (w *Window) NewTRadioButton() (r *TRadioButton, err error)
NewTRadioButton returns a new TRadioButton as a child of w or an error, if any.
func (*Window) NewTRadioButtonM ¶ added in v1.0.16
func (w *Window) NewTRadioButtonM() *TRadioButton
NewTRadioButtonM is like NewTRadioButton but panics on error.
func (*Window) NewTScale ¶ added in v1.0.15
NewTScale returns a new TScale as a child of w or an error, if any.
func (*Window) NewTScaleM ¶ added in v1.0.16
NewTScaleM is like NewTScale but panics on error.
func (*Window) NewTScrollbar ¶ added in v1.0.15
func (w *Window) NewTScrollbar() (r *TScrollbar, err error)
NewTScrollbar returns a new TScrollbar as a child of w or an error, if any.
func (*Window) NewTScrollbarM ¶ added in v1.0.16
func (w *Window) NewTScrollbarM() *TScrollbar
NewTScrollbarM is like NewTScrollbar but panics on error.
func (*Window) NewTSeparator ¶ added in v1.0.15
func (w *Window) NewTSeparator() (r *TSeparator, err error)
NewTSeparator returns a new TSeparator as a child of w or an error, if any.
func (*Window) NewTSeparatorM ¶ added in v1.0.16
func (w *Window) NewTSeparatorM() *TSeparator
NewTSeparatorM is like NewTSeparator but panics on error.
func (*Window) NewTSizeGrip ¶ added in v1.0.15
NewTSizeGrip returns a new TSizeGrip as a child of w or an error, if any.
func (*Window) NewTSizeGripM ¶ added in v1.0.16
NewTSizeGripM is like NewTSizeGrip but panics on error.
func (*Window) NewTSpinBox ¶ added in v1.0.15
NewTSpinBox returns a new TSpinBox as a child of w or an error, if any.
func (*Window) NewTSpinBoxM ¶ added in v1.0.16
NewTSpinBoxM is like NewTSpinBox but panics on error.
func (*Window) NewTTreeView ¶ added in v1.0.15
NewTTreeView returns a new TTreeView as a child of w or an error, if any.
func (*Window) NewTTreeViewM ¶ added in v1.0.16
NewTTreeViewM is like NewTTreeView but panics on error.
func (*Window) NewText ¶ added in v1.0.15
NewText returns a new Text as a child of w or an error, if any.
func (*Window) NewTopLevel ¶ added in v1.0.15
NewTopLevel returns a new TopLevel as a child of w or an error, if any.
func (*Window) NewTopLevelM ¶ added in v1.0.16
NewTopLevelM is like NewTopLevel but panics on error.