Documentation ¶
Overview ¶
Package ctk is a curses-based graphical user interface library modeled after the GTK API.
The purpose of this project is to provide a similar API to the actual GTK project and instead of interacting with an X11 server, the Curses Tool Kit interacts with a terminal display, managed by the Curses Development Kit.
CTK Type Hierarchy
Object |- Adjustment `- Widget |- Container | |- Bin | | |- Button | | |- EventBox | | |- Frame | | |- Viewport | | | `- ScrolledViewport | | `- Window | | `- Dialog | `- Box | |- HBox | |- VBox | `- ButtonBox | |- HButtonBox | `- VButtonBox |- Misc | |- Arrow | `- Label |- Range | |- Scale | | |- HScale | | `- VScale | `- Scrollbar | |- HScrollbar | `- VScrollbar `- Sensitive
Index ¶
- Constants
- Variables
- func AddStockItems(items ...*StockItem)
- func BuilderRegisterConstructor(tag cdk.TypeTag, fn BuilderTranslationFn)
- func ValidStockId(id StockID) (ok bool)
- func WidgetDescend(widget Widget, fn WidgetIteratorFn) (rv cenums.EventFlag)
- func WidgetRecurseInvalidate(widget Widget)
- func WidgetRecurseSetWindow(widget Widget, window Window)
- func WithAppWindow(action AppFn, argv ...string) func()
- func WithArgvApplicationSignalStartup(startupFn ApplicationStartupFn) cdk.SignalListenerFn
- func WithArgvNoneSignal(fn func(), eventFlag cenums.EventFlag) cdk.SignalListenerFn
- func WithArgvNoneWithFlagsSignal(fn func() cenums.EventFlag) cdk.SignalListenerFn
- func WithArgvSignalEvent(fn SignalEventFn) cdk.SignalListenerFn
- func WithFakeWindow(fn WithFakeWindowFn) func()
- func WithFakeWindowOptions(w, h int, theme paint.Theme, fn WithFakeWindowFn) func()
- type AccelGroup
- type AccelGroupFindFunc
- type AccelGroups
- type AccelKey
- type AccelMap
- type Accelerator
- type Action
- type ActionEntry
- type ActionGroup
- type Activatable
- type Adjustment
- type Alignable
- type Alignment
- type AppFn
- type Application
- type ApplicationInitFn
- type ApplicationShutdownFn
- type ApplicationStartupFn
- type Arrow
- type Bin
- type Box
- type Buildable
- type Builder
- type BuilderElement
- type BuilderNode
- type BuilderTranslationFn
- type Button
- type ButtonBox
- type CAccelGroup
- func (a *CAccelGroup) AccelConnect(accelKey cdk.Key, accelMods cdk.ModMask, accelFlags enums.AccelFlags, ...) (id uuid.UUID)
- func (a *CAccelGroup) AccelDisconnect(id uuid.UUID) (removed bool)
- func (a *CAccelGroup) AccelGroupActivate(keyval cdk.Key, modifier cdk.ModMask) (activated bool)
- func (a *CAccelGroup) AcceleratorGetDefaultModMask() (value int)
- func (a *CAccelGroup) AcceleratorGetLabel(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string)
- func (a *CAccelGroup) AcceleratorName(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string)
- func (a *CAccelGroup) AcceleratorParse(accelerator string) (acceleratorKey cdk.Key, acceleratorMods cdk.ModMask)
- func (a *CAccelGroup) AcceleratorSetDefaultModMask(defaultModMask cdk.ModMask)
- func (a *CAccelGroup) AcceleratorValid(keyval cdk.Key, modifiers cdk.ModMask) (valid bool)
- func (a *CAccelGroup) Activate(accelKey cdk.Key, accelMods cdk.ModMask) (value bool)
- func (a *CAccelGroup) ConnectByPath(accelPath string, handle string, closure enums.GClosure)
- func (a *CAccelGroup) DisconnectKey(accelKey cdk.Key, accelMods cdk.ModMask) (removed bool)
- func (a *CAccelGroup) Find(findFunc AccelGroupFindFunc, data interface{}) (key *AccelKey)
- func (a *CAccelGroup) GetIsLocked() (locked bool)
- func (a *CAccelGroup) GetModifierMask() (value cdk.ModMask)
- func (a *CAccelGroup) Init() (already bool)
- func (a *CAccelGroup) LockGroup()
- func (a *CAccelGroup) Query(accelKey cdk.Key, accelMods cdk.ModMask) (entries []*CAccelGroupEntry)
- func (a *CAccelGroup) UnlockGroup()
- type CAccelGroupEntry
- type CAccelGroups
- func (a *CAccelGroups) Activate(object Object, accelKey cdk.Key, accelMods cdk.ModMask) (value bool)
- func (a *CAccelGroups) AddAccelGroup(object Object, accelGroup AccelGroup)
- func (a *CAccelGroups) FromObject(object Object) (groups []AccelGroup)
- func (a *CAccelGroups) RemoveAccelGroup(object Object, accelGroup AccelGroup)
- type CAccelKey
- type CAccelMap
- func (a *CAccelMap) AddEntry(accelPath string, accelKey cdk.Key, accelMods cdk.ModMask)
- func (a *CAccelMap) ChangeEntry(accelPath string, accelKey cdk.Key, accelMods cdk.ModMask, replace bool) (ok bool)
- func (a *CAccelMap) Init() (already bool)
- func (a *CAccelMap) Load(fileName string)
- func (a *CAccelMap) LoadFromString(accelMap string)
- func (a *CAccelMap) LockPath(accelPath string)
- func (a *CAccelMap) LookupEntry(accelPath string) (accelerator Accelerator, ok bool)
- func (a *CAccelMap) Save(fileName string)
- func (a *CAccelMap) SaveToString() (accelMap string)
- func (a *CAccelMap) UnlockPath(accelPath string)
- type CAccelerator
- func (a *CAccelerator) Configure(key cdk.Key, mods cdk.ModMask)
- func (a *CAccelerator) Init() (already bool)
- func (a *CAccelerator) IsLocked() (locked bool)
- func (a *CAccelerator) Key() (key cdk.Key)
- func (a *CAccelerator) LockAccel()
- func (a *CAccelerator) Match(key cdk.Key, mods cdk.ModMask) (match bool)
- func (a *CAccelerator) Mods() (mods cdk.ModMask)
- func (a *CAccelerator) Path() (path string)
- func (a *CAccelerator) Settings() (path string, key cdk.Key, mods cdk.ModMask)
- func (a *CAccelerator) UnlockAccel()
- func (a *CAccelerator) UnsetKeyMods()
- type CAction
- func (a *CAction) Activate()
- func (a *CAction) ConnectAccelerator()
- func (a *CAction) CreateMenu() (value Widget)
- func (a *CAction) CreateMenuItem() (value Widget)
- func (a *CAction) CreateToolItem() (value Widget)
- func (a *CAction) DisconnectAccelerator()
- func (a *CAction) GetAccelClosure() (value enums.GClosure)
- func (a *CAction) GetAccelPath() (value string)
- func (a *CAction) GetAlwaysShowImage() (value bool)
- func (a *CAction) GetIcon() (value rune)
- func (a *CAction) GetIconName() (value string)
- func (a *CAction) GetIsImportant() (value bool)
- func (a *CAction) GetLabel() (value string)
- func (a *CAction) GetName() (value string)
- func (a *CAction) GetProxies() (value []interface{})
- func (a *CAction) GetSensitive() (value bool)
- func (a *CAction) GetShortLabel() (value string)
- func (a *CAction) GetStockId() (value StockID)
- func (a *CAction) GetTooltip() (value string)
- func (a *CAction) GetVisible() (value bool)
- func (a *CAction) GetVisibleHorizontal() (value bool)
- func (a *CAction) GetVisibleVertical() (value bool)
- func (a *CAction) Init() (already bool)
- func (a *CAction) IsSensitive() (value bool)
- func (a *CAction) IsVisible() (value bool)
- func (a *CAction) SetAccelGroup(accelGroup AccelGroup)
- func (a *CAction) SetAccelPath(accelPath string)
- func (a *CAction) SetAlwaysShowImage(alwaysShow bool)
- func (a *CAction) SetIcon(icon rune)
- func (a *CAction) SetIconName(iconName string)
- func (a *CAction) SetIsImportant(isImportant bool)
- func (a *CAction) SetLabel(label string)
- func (a *CAction) SetSensitive(sensitive bool)
- func (a *CAction) SetShortLabel(shortLabel string)
- func (a *CAction) SetStockId(stockId StockID)
- func (a *CAction) SetTooltip(tooltip string)
- func (a *CAction) SetVisible(visible bool)
- func (a *CAction) SetVisibleHorizontal(visibleHorizontal bool)
- func (a *CAction) SetVisibleVertical(visibleVertical bool)
- func (a *CAction) UnblockActivate()
- type CActionGroup
- func (a *CActionGroup) AddAction(action Action)
- func (a *CActionGroup) AddActionWithAccel(action Action, accelerator string)
- func (a *CActionGroup) AddActions(entries []ActionEntry, nEntries int, userData interface{})
- func (a *CActionGroup) AddActionsFull(entries []ActionEntry, nEntries int, userData interface{}, ...)
- func (a *CActionGroup) AddRadioActions(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, ...)
- func (a *CActionGroup) AddRadioActionsFull(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, ...)
- func (a *CActionGroup) AddToggleActions(entries []ToggleActionEntry, nEntries int, userData interface{})
- func (a *CActionGroup) AddToggleActionsFull(entries []ToggleActionEntry, nEntries int, userData interface{}, ...)
- func (a *CActionGroup) GetAction(actionName string) (value Action)
- func (a *CActionGroup) GetName() (value string)
- func (a *CActionGroup) GetSensitive() (value bool)
- func (a *CActionGroup) GetVisible() (value bool)
- func (a *CActionGroup) Init() (already bool)
- func (a *CActionGroup) ListActions() (value []Action)
- func (a *CActionGroup) RemoveAction(action Action)
- func (a *CActionGroup) SetSensitive(sensitive bool)
- func (a *CActionGroup) SetTranslateFunc(fn TranslateFunc, data interface{}, notify GDestroyNotify)
- func (a *CActionGroup) SetTranslationDomain(domain string)
- func (a *CActionGroup) SetVisible(visible bool)
- func (a *CActionGroup) TranslateString(string string) (value string)
- type CAdjustment
- func (a *CAdjustment) Changed() cenums.EventFlag
- func (a *CAdjustment) ClampPage(upper, lower int)
- func (a *CAdjustment) Configure(value, lower, upper, stepIncrement, pageIncrement, pageSize int)
- func (a *CAdjustment) GetLower() (value int)
- func (a *CAdjustment) GetPageIncrement() (pageIncrement int)
- func (a *CAdjustment) GetPageSize() (pageSize int)
- func (a *CAdjustment) GetStepIncrement() (stepIncrement int)
- func (a *CAdjustment) GetUpper() (upper int)
- func (a *CAdjustment) GetValue() (value int)
- func (a *CAdjustment) Init() bool
- func (a *CAdjustment) Moot() bool
- func (a *CAdjustment) SetLower(lower int)
- func (a *CAdjustment) SetPageIncrement(pageIncrement int)
- func (a *CAdjustment) SetPageSize(pageSize int)
- func (a *CAdjustment) SetStepIncrement(stepIncrement int)
- func (a *CAdjustment) SetUpper(upper int)
- func (a *CAdjustment) SetValue(value int)
- func (a *CAdjustment) Settings() (value, lower, upper, stepIncrement, pageIncrement, pageSize int)
- func (a *CAdjustment) ShowByPolicy(policy enums.PolicyType) bool
- func (a *CAdjustment) ValueChanged() cenums.EventFlag
- type CAlignment
- func (a *CAlignment) Add(w Widget)
- func (a *CAlignment) Get() (xAlign, yAlign, xScale, yScale float64)
- func (a *CAlignment) GetPadding() (paddingTop, paddingBottom, paddingLeft, paddingRight int)
- func (a *CAlignment) Init() (already bool)
- func (a *CAlignment) Remove(w Widget)
- func (a *CAlignment) Set(xAlign, yAlign, xScale, yScale float64)
- func (a *CAlignment) SetPadding(paddingTop, paddingBottom, paddingLeft, paddingRight int)
- type CApplication
- type CArrow
- func (a *CArrow) GetArrowRune() (r rune, width int)
- func (a *CArrow) GetArrowRuneSet() (ars paint.ArrowRuneSet)
- func (a *CArrow) GetArrowType() (arrow enums.ArrowType)
- func (a *CArrow) GetSizeRequest() (width, height int)
- func (a *CArrow) Init() bool
- func (a *CArrow) SetArrowRuneSet(ars paint.ArrowRuneSet)
- func (a *CArrow) SetArrowType(arrow enums.ArrowType)
- func (a *CArrow) UnsetArrowRuneSet()
- type CBin
- type CBox
- func (b *CBox) Add(child Widget)
- func (b *CBox) Build(builder Builder, element *CBuilderElement) error
- func (b *CBox) GetFocusChain() (focusableWidgets []Widget, explicitlySet bool)
- func (b *CBox) GetHomogeneous() (value bool)
- func (b *CBox) GetOrientation() (orientation cenums.Orientation)
- func (b *CBox) GetSizeRequest() (width, height int)
- func (b *CBox) GetSpacing() (value int)
- func (b *CBox) Init() (already bool)
- func (b *CBox) PackEnd(child Widget, expand, fill bool, padding int)
- func (b *CBox) PackStart(child Widget, expand, fill bool, padding int)
- func (b *CBox) QueryChildPacking(child Widget) (expand bool, fill bool, padding int, packType enums.PackType)
- func (b *CBox) Remove(w Widget)
- func (b *CBox) ReorderChild(child Widget, position int)
- func (b *CBox) SetChildPacking(child Widget, expand bool, fill bool, padding int, packType enums.PackType)
- func (b *CBox) SetHomogeneous(homogeneous bool)
- func (b *CBox) SetOrientation(orientation cenums.Orientation)
- func (b *CBox) SetSpacing(spacing int)
- type CBuilder
- func (b *CBuilder) AddNamedSignalHandler(name string, fn cdk.SignalListenerFn)
- func (b *CBuilder) Build(element *CBuilderElement) (newObject interface{})
- func (b *CBuilder) BuildableTypeTags() map[string]cdk.TypeTag
- func (b *CBuilder) GetWidget(name string) (w interface{})
- func (b *CBuilder) GetWidgetsBuiltByType(tag cdk.CTypeTag) (widgets []interface{})
- func (b *CBuilder) Init() (already bool)
- func (b *CBuilder) LoadFromString(raw string) (topElement *CBuilderElement, err error)
- func (b *CBuilder) LookupNamedSignalHandler(name string) (fn cdk.SignalListenerFn)
- func (b *CBuilder) ParsePacking(packing *CBuilderElement) (expand, fill bool, padding int, packType enums.PackType)
- type CBuilderElement
- type CButton
- func (b *CButton) Activate() (value bool)
- func (b *CButton) Add(w Widget)
- func (b *CButton) Build(builder Builder, element *CBuilderElement) error
- func (b *CButton) CancelEvent()
- func (b *CButton) Clicked() cenums.EventFlag
- func (b *CButton) GetAlignment() (xAlign float64, yAlign float64)
- func (b *CButton) GetFocusChain() (focusableWidgets []Widget, explicitlySet bool)
- func (b *CButton) GetFocusOnClick() (value bool)
- func (b *CButton) GetImage() (value Widget, ok bool)
- func (b *CButton) GetImagePosition() (value enums.PositionType)
- func (b *CButton) GetLabel() (value string)
- func (b *CButton) GetPressed() bool
- func (b *CButton) GetRelief() (value enums.ReliefStyle)
- func (b *CButton) GetSizeRequest() (width, height int)
- func (b *CButton) GetUseMarkup() (enabled bool)
- func (b *CButton) GetUseStock() (value bool)
- func (b *CButton) GetUseUnderline() (enabled bool)
- func (b *CButton) GetWidgetAt(p *ptypes.Point2I) Widget
- func (b *CButton) Init() (already bool)
- func (b *CButton) SetAlignment(xAlign float64, yAlign float64)
- func (b *CButton) SetFocusOnClick(focusOnClick bool)
- func (b *CButton) SetImage(image Widget)
- func (b *CButton) SetImagePosition(position enums.PositionType)
- func (b *CButton) SetLabel(label string)
- func (b *CButton) SetPressed(pressed bool)
- func (b *CButton) SetRelief(newStyle enums.ReliefStyle)
- func (b *CButton) SetState(state enums.StateType)
- func (b *CButton) SetTheme(theme paint.Theme)
- func (b *CButton) SetUseMarkup(enabled bool)
- func (b *CButton) SetUseStock(useStock bool)
- func (b *CButton) SetUseUnderline(enabled bool)
- func (b *CButton) UnsetState(state enums.StateType)
- type CButtonBox
- func (b *CButtonBox) Add(w Widget)
- func (b *CButtonBox) Build(builder Builder, element *CBuilderElement) error
- func (b *CButtonBox) GetChildPrimary(w Widget) (isPrimary bool)
- func (b *CButtonBox) GetChildSecondary(w Widget) (isSecondary bool)
- func (b *CButtonBox) GetLayout() (value enums.ButtonBoxStyle)
- func (b *CButtonBox) Init() (already bool)
- func (b *CButtonBox) PackEnd(w Widget, expand, fill bool, padding int)
- func (b *CButtonBox) PackStart(w Widget, expand, fill bool, padding int)
- func (b *CButtonBox) Remove(w Widget)
- func (b *CButtonBox) SetChildPacking(child Widget, expand bool, fill bool, padding int, packType enums.PackType)
- func (b *CButtonBox) SetChildSecondary(child Widget, isSecondary bool)
- func (b *CButtonBox) SetLayout(layoutStyle enums.ButtonBoxStyle)
- func (b *CButtonBox) SetSpacing(spacing int)
- type CContainer
- func (c *CContainer) Add(w Widget)
- func (c *CContainer) AddWithProperties(widget Widget, argv ...interface{})
- func (c *CContainer) Build(builder Builder, element *CBuilderElement) error
- func (c *CContainer) ChildGet(child Widget, properties ...cdk.Property) (values []interface{})
- func (c *CContainer) ChildSet(child Widget, argv ...interface{})
- func (c *CContainer) ChildType() (value cdk.CTypeTag)
- func (c *CContainer) Destroy()
- func (c *CContainer) FindAllWidgetsAt(p *ptypes.Point2I) (found []Widget)
- func (c *CContainer) FindChildProperty(property cdk.Property) (value *cdk.CProperty)
- func (c *CContainer) FindWidgetAt(p *ptypes.Point2I) (found Widget)
- func (c *CContainer) GetBorderWidth() (value int)
- func (c *CContainer) GetChildProperty(child Widget, propertyName cdk.Property) (value interface{})
- func (c *CContainer) GetChildren() (children []Widget)
- func (c *CContainer) GetFocusChain() (focusableWidgets []Widget, explicitlySet bool)
- func (c *CContainer) GetFocusChild() (value Widget)
- func (c *CContainer) GetFocusHAdjustment() (value Adjustment)
- func (c *CContainer) GetFocusVAdjustment() (value Adjustment)
- func (c *CContainer) GetWidgetAt(p *ptypes.Point2I) Widget
- func (c *CContainer) HasChild(widget Widget) (present bool)
- func (c *CContainer) Init() (already bool)
- func (c *CContainer) InstallChildProperty(name cdk.Property, kind cdk.PropertyType, write bool, def interface{}) error
- func (c *CContainer) InvalidateAllChildren()
- func (c *CContainer) InvalidateChildren()
- func (c *CContainer) ListChildProperties() (properties []*cdk.CProperty)
- func (c *CContainer) Map()
- func (c *CContainer) Remove(w Widget)
- func (c *CContainer) RenderFreeze()
- func (c *CContainer) RenderThaw()
- func (c *CContainer) ResizeChildren()
- func (c *CContainer) SetBorderWidth(borderWidth int)
- func (c *CContainer) SetChildProperty(child Widget, propertyName cdk.Property, value interface{})
- func (c *CContainer) SetFocusChain(focusableWidgets []Widget)
- func (c *CContainer) SetFocusChild(child Widget)
- func (c *CContainer) SetFocusHAdjustment(adjustment Adjustment)
- func (c *CContainer) SetFocusVAdjustment(adjustment Adjustment)
- func (c *CContainer) SetWindow(w Window)
- func (c *CContainer) ShowAll()
- func (c *CContainer) Unmap()
- func (c *CContainer) UnsetFocusChain()
- type CDialog
- func (d *CDialog) Add(w Widget)
- func (d *CDialog) AddActionWidget(child Widget, responseId enums.ResponseType)
- func (d *CDialog) AddButton(buttonText string, responseId enums.ResponseType) (button Button)
- func (d *CDialog) AddButtons(argv ...interface{})
- func (d *CDialog) AddSecondaryActionWidget(child Widget, responseId enums.ResponseType)
- func (d *CDialog) Build(builder Builder, element *CBuilderElement) error
- func (d *CDialog) Destroy()
- func (d *CDialog) GetActionArea() (value ButtonBox)
- func (d *CDialog) GetContentArea() (value VBox)
- func (d *CDialog) GetDialogFlags() (flags enums.DialogFlags)
- func (d *CDialog) GetResponseForWidget(widget Widget) (value enums.ResponseType)
- func (d *CDialog) GetWidgetForResponse(responseId enums.ResponseType) (value Widget)
- func (d *CDialog) GetWindow() Window
- func (d *CDialog) Init() (already bool)
- func (d *CDialog) Response(responseId enums.ResponseType)
- func (d *CDialog) Run() (response chan enums.ResponseType)
- func (d *CDialog) RunFunc(fn func(response enums.ResponseType, argv ...interface{}), argv ...interface{})
- func (d *CDialog) SetDefaultResponse(responseId enums.ResponseType)
- func (d *CDialog) SetDialogFlags(flags enums.DialogFlags)
- func (d *CDialog) SetResponseSensitive(responseId enums.ResponseType, sensitive bool)
- func (d *CDialog) Show()
- func (d *CDialog) ShowAll()
- type CEntry
- func (l *CEntry) Activate() (value bool)
- func (l *CEntry) Build(builder Builder, element *CBuilderElement) error
- func (l *CEntry) CancelEvent()
- func (l *CEntry) CopyClipboard()
- func (l *CEntry) CutClipboard()
- func (l *CEntry) DeleteSelection()
- func (l *CEntry) DeleteText(startPos int, endPos int)
- func (l *CEntry) DeleteTextAndSetPosition(start, end, position int)
- func (l *CEntry) GetAttributes() (value paint.Style)
- func (l *CEntry) GetChars(startPos int, endPos int) (value string)
- func (l *CEntry) GetEditable() (value bool)
- func (l *CEntry) GetJustify() (value cenums.Justification)
- func (l *CEntry) GetLineWrap() (value bool)
- func (l *CEntry) GetLineWrapMode() (value cenums.WrapMode)
- func (l *CEntry) GetMaxWidthChars() (value int)
- func (l *CEntry) GetPosition() (value int)
- func (l *CEntry) GetSelectable() (value bool)
- func (l *CEntry) GetSelectionBounds() (startPos, endPos int, ok bool)
- func (l *CEntry) GetSingleLineMode() (value bool)
- func (l *CEntry) GetSizeRequest() (width, height int)
- func (l *CEntry) GetText() (value string)
- func (l *CEntry) GetWidthChars() (value int)
- func (l *CEntry) Init() (already bool)
- func (l *CEntry) InsertText(newText string, position int)
- func (l *CEntry) InsertTextAndSetPosition(newText string, index, position int)
- func (l *CEntry) PasteClipboard()
- func (l *CEntry) SelectRegion(startOffset int, endOffset int)
- func (l *CEntry) SetAttributes(attrs paint.Style)
- func (l *CEntry) SetEditable(isEditable bool)
- func (l *CEntry) SetJustify(justify cenums.Justification)
- func (l *CEntry) SetLineWrap(wrap bool)
- func (l *CEntry) SetLineWrapMode(wrapMode cenums.WrapMode)
- func (l *CEntry) SetMaxWidthChars(nChars int)
- func (l *CEntry) SetPosition(position int)
- func (l *CEntry) SetSelectable(setting bool)
- func (l *CEntry) SetSingleLineMode(singleLineMode bool)
- func (l *CEntry) SetText(text string)
- func (l *CEntry) SetWidthChars(nChars int)
- func (l *CEntry) Settings() (singleLineMode bool, lineWrapMode cenums.WrapMode, ...)
- type CEventBox
- func (b *CEventBox) Activate() (value bool)
- func (b *CEventBox) CancelEvent()
- func (b *CEventBox) GetAboveChild() (value bool)
- func (b *CEventBox) GetVisibleWindow() (value bool)
- func (b *CEventBox) Init() (already bool)
- func (b *CEventBox) ProcessEvent(evt cdk.Event) cenums.EventFlag
- func (b *CEventBox) SetAboveChild(aboveChild bool)
- func (b *CEventBox) SetVisibleWindow(visibleWindow bool)
- type CFakeWindow
- type CFrame
- func (f *CFrame) Add(w Widget)
- func (f *CFrame) GetFocusWithChild() (focusWithChild bool)
- func (f *CFrame) GetLabel() (value string)
- func (f *CFrame) GetLabelAlign() (xAlign float64, yAlign float64)
- func (f *CFrame) GetLabelWidget() (value Widget)
- func (f *CFrame) GetShadowType() (value enums.ShadowType)
- func (f *CFrame) GetSizeRequest() (width, height int)
- func (f *CFrame) GetWidgetAt(p *ptypes.Point2I) Widget
- func (f *CFrame) Init() (already bool)
- func (f *CFrame) IsFocus() bool
- func (f *CFrame) Remove(w Widget)
- func (f *CFrame) SetFocusWithChild(focusWithChild bool)
- func (f *CFrame) SetLabel(label string)
- func (f *CFrame) SetLabelAlign(xAlign float64, yAlign float64)
- func (f *CFrame) SetLabelWidget(widget Widget)
- func (f *CFrame) SetShadowType(shadowType enums.ShadowType)
- func (f *CFrame) SetWindow(w Window)
- type CHBox
- type CHButtonBox
- type CHScrollbar
- type CLabel
- func (l *CLabel) Build(builder Builder, element *CBuilderElement) error
- func (l *CLabel) GetAttributes() (value paint.Style)
- func (l *CLabel) GetCleanText() (text string)
- func (l *CLabel) GetClearText() (text string)
- func (l *CLabel) GetCurrentUri() (value string)
- func (l *CLabel) GetEllipsize() (value bool)
- func (l *CLabel) GetJustify() (value cenums.Justification)
- func (l *CLabel) GetLabel() (value string)
- func (l *CLabel) GetLineWrap() (value bool)
- func (l *CLabel) GetLineWrapMode() (value cenums.WrapMode)
- func (l *CLabel) GetMaxWidthChars() (value int)
- func (l *CLabel) GetMnemonicKeyVal() (value rune)
- func (l *CLabel) GetMnemonicWidget() (value Widget)
- func (l *CLabel) GetPlainText() (text string)
- func (l *CLabel) GetPlainTextInfo() (maxWidth, lineCount int)
- func (l *CLabel) GetPlainTextInfoAtWidth(width int) (maxWidth, lineCount int)
- func (l *CLabel) GetSelectable() (value bool)
- func (l *CLabel) GetSelectionBounds() (start int, end int, nonEmpty bool)
- func (l *CLabel) GetSingleLineMode() (value bool)
- func (l *CLabel) GetSizeRequest() (width, height int)
- func (l *CLabel) GetText() (value string)
- func (l *CLabel) GetTrackVisitedLinks() (value bool)
- func (l *CLabel) GetUseMarkup() (value bool)
- func (l *CLabel) GetUseUnderline() (value bool)
- func (l *CLabel) GetWidthChars() (value int)
- func (l *CLabel) Init() (already bool)
- func (l *CLabel) SelectRegion(startOffset int, endOffset int)
- func (l *CLabel) SetAttributes(attrs paint.Style)
- func (l *CLabel) SetEllipsize(mode bool)
- func (l *CLabel) SetJustify(justify cenums.Justification)
- func (l *CLabel) SetLabel(str string)
- func (l *CLabel) SetLineWrap(wrap bool)
- func (l *CLabel) SetLineWrapMode(wrapMode cenums.WrapMode)
- func (l *CLabel) SetMarkup(text string) (parseError error)
- func (l *CLabel) SetMarkupWithMnemonic(str string) (err error)
- func (l *CLabel) SetMaxWidthChars(nChars int)
- func (l *CLabel) SetMnemonicWidget(widget Widget)
- func (l *CLabel) SetSelectable(setting bool)
- func (l *CLabel) SetSingleLineMode(singleLineMode bool)
- func (l *CLabel) SetText(text string)
- func (l *CLabel) SetTextWithMnemonic(str string)
- func (l *CLabel) SetTrackVisitedLinks(trackLinks bool)
- func (l *CLabel) SetUseMarkup(setting bool)
- func (l *CLabel) SetUseUnderline(setting bool)
- func (l *CLabel) SetWidthChars(nChars int)
- func (l *CLabel) Settings() (singleLineMode bool, lineWrapMode cenums.WrapMode, ellipsize bool, ...)
- type CMisc
- type CObject
- func (o *CObject) Build(builder Builder, element *CBuilderElement) error
- func (o *CObject) CssSelector() (selector string)
- func (o *CObject) GetAllocation() (alloc ptypes.Rectangle)
- func (o *CObject) GetCssBool(name cdk.Property, state enums.StateType) (value bool, err error)
- func (o *CObject) GetCssColor(name cdk.Property, state enums.StateType) (value paint.Color, err error)
- func (o *CObject) GetCssFloat(name cdk.Property, state enums.StateType) (value float64, err error)
- func (o *CObject) GetCssInt(name cdk.Property, state enums.StateType) (value int, err error)
- func (o *CObject) GetCssProperties() (properties map[enums.StateType][]*CStyleProperty)
- func (o *CObject) GetCssProperty(name cdk.Property, state enums.StateType) (property *CStyleProperty)
- func (o *CObject) GetCssString(name cdk.Property, state enums.StateType) (value string, err error)
- func (o *CObject) GetCssValue(name cdk.Property, state enums.StateType) (value interface{})
- func (o *CObject) GetInvalidated() (invalidated bool)
- func (o *CObject) GetObjectAt(p *ptypes.Point2I) Object
- func (o *CObject) GetOrigin() (origin ptypes.Point2I)
- func (o *CObject) GetRegion() (region ptypes.Region)
- func (o *CObject) GetTextDirection() (direction enums.TextDirection)
- func (o *CObject) HasPoint(p *ptypes.Point2I) (contains bool)
- func (o *CObject) Init() (already bool)
- func (o *CObject) InstallCssProperty(name cdk.Property, state enums.StateType, kind cdk.PropertyType, write bool, ...) (err error)
- func (o *CObject) Invalidate() cenums.EventFlag
- func (o *CObject) ObjectInfo() string
- func (o *CObject) ProcessEvent(evt cdk.Event) cenums.EventFlag
- func (o *CObject) Resize() cenums.EventFlag
- func (o *CObject) SetAllocation(size ptypes.Rectangle)
- func (o *CObject) SetCssPropertyFromStyle(key, value string) (err error)
- func (o *CObject) SetInvalidated(invalidated bool)
- func (o *CObject) SetOrigin(x, y int)
- func (o *CObject) SetRegion(region ptypes.Region)
- func (o *CObject) SetTextDirection(direction enums.TextDirection)
- type CRadioAction
- type CRange
- func (r *CRange) GetAdjustment() (adjustment *CAdjustment)
- func (r *CRange) GetFillLevel() (value float64)
- func (r *CRange) GetFlippable() (value bool)
- func (r *CRange) GetIncrements() (step int, page int)
- func (r *CRange) GetInverted() (value bool)
- func (r *CRange) GetLowerStepperSensitivity() (value enums.SensitivityType)
- func (r *CRange) GetMinSliderLength() (length int)
- func (r *CRange) GetMinSliderSize() (value int)
- func (r *CRange) GetPageSize() (pageSize int)
- func (r *CRange) GetRange() (min, max int)
- func (r *CRange) GetRangeRect() (rangeRect ptypes.Rectangle)
- func (r *CRange) GetRestrictToFillLevel() (value bool)
- func (r *CRange) GetRoundDigits() (value int)
- func (r *CRange) GetShowFillLevel() (value bool)
- func (r *CRange) GetSliderLength() (length int)
- func (r *CRange) GetSliderRange() (sliderStart int, sliderEnd int)
- func (r *CRange) GetSliderSizeFixed() (value bool)
- func (r *CRange) GetStepperSize() (size int)
- func (r *CRange) GetStepperSpacing() (spacing int)
- func (r *CRange) GetTroughUnderSteppers() (underSteppers bool)
- func (r *CRange) GetUpperStepperSensitivity() (value enums.SensitivityType)
- func (r *CRange) GetValue() (value int)
- func (r *CRange) Init() (already bool)
- func (r *CRange) SetFillLevel(fillLevel float64)
- func (r *CRange) SetFlippable(flippable bool)
- func (r *CRange) SetIncrements(step int, page int)
- func (r *CRange) SetInverted(setting bool)
- func (r *CRange) SetLowerStepperSensitivity(sensitivity enums.SensitivityType)
- func (r *CRange) SetMinSliderLength(length int)
- func (r *CRange) SetMinSliderSize(minSize bool)
- func (r *CRange) SetPageSize(pageSize int)
- func (r *CRange) SetRange(min, max int)
- func (r *CRange) SetRestrictToFillLevel(restrictToFillLevel bool)
- func (r *CRange) SetRoundDigits(roundDigits int)
- func (r *CRange) SetShowFillLevel(showFillLevel bool)
- func (r *CRange) SetSliderLength(length int)
- func (r *CRange) SetSliderSizeFixed(sizeFixed bool)
- func (r *CRange) SetStepperSize(size int)
- func (r *CRange) SetStepperSpacing(spacing int)
- func (r *CRange) SetTroughUnderSteppers(underSteppers bool)
- func (r *CRange) SetUpperStepperSensitivity(sensitivity enums.SensitivityType)
- func (r *CRange) SetValue(value int)
- type CScrollbar
- func (s *CScrollbar) Backward(step int) cenums.EventFlag
- func (s *CScrollbar) BackwardPage() cenums.EventFlag
- func (s *CScrollbar) BackwardStep() cenums.EventFlag
- func (s *CScrollbar) CancelEvent()
- func (s *CScrollbar) Changed()
- func (s *CScrollbar) FindWidgetAt(p *ptypes.Point2I) Widget
- func (s *CScrollbar) Forward(step int) cenums.EventFlag
- func (s *CScrollbar) ForwardPage() cenums.EventFlag
- func (s *CScrollbar) ForwardStep() cenums.EventFlag
- func (s *CScrollbar) GetAllStepperRegions() (fwd, bwd, sFwd, sBwd ptypes.Region)
- func (s *CScrollbar) GetHasBackwardStepper() (hasBackwardStepper bool)
- func (s *CScrollbar) GetHasForwardStepper() (hasForwardStepper bool)
- func (s *CScrollbar) GetHasSecondaryBackwardStepper() (hasSecondaryBackwardStepper bool)
- func (s *CScrollbar) GetHasSecondaryForwardStepper() (hasSecondaryForwardStepper bool)
- func (s *CScrollbar) GetPageInfo() (page, pageSize int)
- func (s *CScrollbar) GetSizeRequest() (width, height int)
- func (s *CScrollbar) GetSliderRegion() (region ptypes.Region)
- func (s *CScrollbar) GetStepperRegions() (start, end ptypes.Region)
- func (s *CScrollbar) GetTroughRegion() (region ptypes.Region)
- func (s *CScrollbar) GetWidgetAt(p *ptypes.Point2I) Widget
- func (s *CScrollbar) Init() (already bool)
- func (s *CScrollbar) ScrollEnd() cenums.EventFlag
- func (s *CScrollbar) ScrollHome() cenums.EventFlag
- func (s *CScrollbar) SetHasBackwardStepper(hasBackwardStepper bool)
- func (s *CScrollbar) SetHasForwardStepper(hasForwardStepper bool)
- func (s *CScrollbar) SetHasSecondaryBackwardStepper(hasSecondaryBackwardStepper bool)
- func (s *CScrollbar) SetHasSecondaryForwardStepper(hasSecondaryForwardStepper bool)
- func (s *CScrollbar) SetState(state enums.StateType)
- func (s *CScrollbar) UnsetState(state enums.StateType)
- func (s *CScrollbar) ValueChanged()
- type CScrolledViewport
- func (s *CScrolledViewport) Add(w Widget)
- func (s *CScrolledViewport) AddWithViewport(child Widget)
- func (s *CScrolledViewport) Build(builder Builder, element *CBuilderElement) error
- func (s *CScrolledViewport) CancelEvent()
- func (s *CScrolledViewport) GetChild() Widget
- func (s *CScrolledViewport) GetHAdjustment() (value Adjustment)
- func (s *CScrolledViewport) GetHScrollbar() HScrollbar
- func (s *CScrolledViewport) GetPlacement() (value enums.CornerType)
- func (s *CScrolledViewport) GetPolicy() (hScrollbarPolicy enums.PolicyType, vScrollbarPolicy enums.PolicyType)
- func (s *CScrolledViewport) GetRegions() (c, h, v ptypes.Region)
- func (s *CScrolledViewport) GetShadowType() (value enums.ShadowType)
- func (s *CScrolledViewport) GetVAdjustment() (value Adjustment)
- func (s *CScrolledViewport) GetVScrollbar() VScrollbar
- func (s *CScrolledViewport) GetWidgetAt(p *ptypes.Point2I) Widget
- func (s *CScrolledViewport) Hide()
- func (s *CScrolledViewport) HorizontalShowByPolicy() (show bool)
- func (s *CScrolledViewport) Init() (already bool)
- func (s *CScrolledViewport) Remove(w Widget)
- func (s *CScrolledViewport) ScrollBottom()
- func (s *CScrolledViewport) ScrollTo(target Widget)
- func (s *CScrolledViewport) ScrollTop()
- func (s *CScrolledViewport) SetHAdjustment(hAdjustment Adjustment)
- func (s *CScrolledViewport) SetPlacement(windowPlacement enums.CornerType)
- func (s *CScrolledViewport) SetPolicy(hScrollbarPolicy enums.PolicyType, vScrollbarPolicy enums.PolicyType)
- func (s *CScrolledViewport) SetShadowType(t enums.ShadowType)
- func (s *CScrolledViewport) SetVAdjustment(vAdjustment Adjustment)
- func (s *CScrolledViewport) SetWindow(w Window)
- func (s *CScrolledViewport) Show()
- func (s *CScrolledViewport) UnsetPlacement()
- func (s *CScrolledViewport) VerticalShowByPolicy() (show bool)
- type CSeparator
- type CSettings
- func (s *CSettings) GetAlternativeButtonOrder() (value bool)
- func (s *CSettings) GetAlternativeSortArrows() (value bool)
- func (s *CSettings) GetColorPalette() (value string)
- func (s *CSettings) GetColorScheme() (value string)
- func (s *CSettings) GetCursorBlink() (value bool)
- func (s *CSettings) GetCursorBlinkTime() (value time.Duration)
- func (s *CSettings) GetCursorBlinkTimeout() (value time.Duration)
- func (s *CSettings) GetCursorThemeName() (value string)
- func (s *CSettings) GetDndDragThreshold() (value time.Duration)
- func (s *CSettings) GetDoubleClickDistance() (value int)
- func (s *CSettings) GetDoubleClickTime() (value time.Duration)
- func (s *CSettings) GetEnableAccels() (value bool)
- func (s *CSettings) GetEnableMnemonics() (value bool)
- func (s *CSettings) GetEnableTooltips() (value bool)
- func (s *CSettings) GetEntryPasswordHintTimeout() (value time.Duration)
- func (s *CSettings) GetEntrySelectOnFocus() (value bool)
- func (s *CSettings) GetErrorBell() (value bool)
- func (s *CSettings) GetFallbackIconTheme() (value string)
- func (s *CSettings) GetFileChooserBackend() (value string)
- func (s *CSettings) GetIconThemeName() (value string)
- func (s *CSettings) GetImModule() (value string)
- func (s *CSettings) GetImPreeditStyle() (value interface{})
- func (s *CSettings) GetImStatusStyle() (value interface{})
- func (s *CSettings) GetKeyThemeName() (value string)
- func (s *CSettings) GetKeynavCursorOnly() (value bool)
- func (s *CSettings) GetKeynavWrapAround() (value bool)
- func (s *CSettings) GetLabelSelectOnFocus() (value bool)
- func (s *CSettings) GetMenuBarAccel() (value string)
- func (s *CSettings) GetMenuBarPopupDelay() (value time.Duration)
- func (s *CSettings) GetMenuImages() (value bool)
- func (s *CSettings) GetMenuPopdownDelay() (value time.Duration)
- func (s *CSettings) GetMenuPopupDelay() (value time.Duration)
- func (s *CSettings) GetModules() (value string)
- func (s *CSettings) GetPrimaryButtonWarpsSlider() (value bool)
- func (s *CSettings) GetScrolledWindowPlacement() (value interface{})
- func (s *CSettings) GetShowInputMethodMenu() (value bool)
- func (s *CSettings) GetShowUnicodeMenu() (value bool)
- func (s *CSettings) GetThemeName() (value string)
- func (s *CSettings) GetTimeoutExpand() (value time.Duration)
- func (s *CSettings) GetTimeoutInitial() (value time.Duration)
- func (s *CSettings) GetTimeoutRepeat() (value time.Duration)
- func (s *CSettings) GetToolbarStyle() (value interface{})
- func (s *CSettings) GetTooltipBrowseModeTimeout() (value time.Duration)
- func (s *CSettings) GetTooltipBrowseTimeout() (value time.Duration)
- func (s *CSettings) GetTooltipTimeout() (value time.Duration)
- func (s *CSettings) GetTouchscreenMode() (value bool)
- func (s *CSettings) Init() (already bool)
- func (s *CSettings) LoadFromString(rc string) (err error)
- func (s *CSettings) SetCtkAlternativeButtonOrder(value bool)
- func (s *CSettings) SetCtkAlternativeSortArrows(value bool)
- func (s *CSettings) SetCtkColorPalette(value string)
- func (s *CSettings) SetCtkColorScheme(value string)
- func (s *CSettings) SetCtkCursorBlink(value bool)
- func (s *CSettings) SetCtkCursorBlinkTime(value time.Duration)
- func (s *CSettings) SetCtkCursorBlinkTimeout(value time.Duration)
- func (s *CSettings) SetCtkCursorThemeName(value string)
- func (s *CSettings) SetCtkDndDragThreshold(value time.Duration)
- func (s *CSettings) SetCtkDoubleClickDistance(value int)
- func (s *CSettings) SetCtkDoubleClickTime(value time.Duration)
- func (s *CSettings) SetCtkEnableAccels(value bool)
- func (s *CSettings) SetCtkEnableMnemonics(value bool)
- func (s *CSettings) SetCtkEnableTooltips(value bool)
- func (s *CSettings) SetCtkEntryPasswordHintTimeout(value time.Duration)
- func (s *CSettings) SetCtkEntrySelectOnFocus(value bool)
- func (s *CSettings) SetCtkErrorBell(value bool)
- func (s *CSettings) SetCtkFallbackIconTheme(value string)
- func (s *CSettings) SetCtkFileChooserBackend(value string)
- func (s *CSettings) SetCtkIconThemeName(value string)
- func (s *CSettings) SetCtkImModule(value string)
- func (s *CSettings) SetCtkImPreeditStyle(value interface{})
- func (s *CSettings) SetCtkImStatusStyle(value interface{})
- func (s *CSettings) SetCtkKeyThemeName(value string)
- func (s *CSettings) SetCtkKeynavCursorOnly(value bool)
- func (s *CSettings) SetCtkKeynavWrapAround(value bool)
- func (s *CSettings) SetCtkLabelSelectOnFocus(value bool)
- func (s *CSettings) SetCtkMenuBarAccel(value string)
- func (s *CSettings) SetCtkMenuBarPopupDelay(value time.Duration)
- func (s *CSettings) SetCtkMenuImages(value bool)
- func (s *CSettings) SetCtkMenuPopdownDelay(value time.Duration)
- func (s *CSettings) SetCtkMenuPopupDelay(value time.Duration)
- func (s *CSettings) SetCtkModules(value string)
- func (s *CSettings) SetCtkPrimaryButtonWarpsSlider(value bool)
- func (s *CSettings) SetCtkScrolledWindowPlacement(value interface{})
- func (s *CSettings) SetCtkShowInputMethodMenu(value bool)
- func (s *CSettings) SetCtkShowUnicodeMenu(value bool)
- func (s *CSettings) SetCtkThemeName(value string)
- func (s *CSettings) SetCtkTimeoutExpand(value time.Duration)
- func (s *CSettings) SetCtkTimeoutInitial(value time.Duration)
- func (s *CSettings) SetCtkTimeoutRepeat(value time.Duration)
- func (s *CSettings) SetCtkToolbarStyle(value interface{})
- func (s *CSettings) SetCtkTooltipBrowseModeTimeout(value time.Duration)
- func (s *CSettings) SetCtkTooltipBrowseTimeout(value time.Duration)
- func (s *CSettings) SetCtkTooltipTimeout(value time.Duration)
- func (s *CSettings) SetCtkTouchscreenMode(value bool)
- type CSpinner
- func (s *CSpinner) GetSizeRequest() (width, height int)
- func (s *CSpinner) GetSpinnerRune() (r rune)
- func (s *CSpinner) IncrementSpinner()
- func (s *CSpinner) Init() bool
- func (s *CSpinner) IsSpinning() (running bool)
- func (s *CSpinner) SetSpinnerRunes(runes ...rune)
- func (s *CSpinner) StartSpinning()
- func (s *CSpinner) StopSpinning()
- type CStyle
- func (s *CStyle) Init() (already bool)
- func (s *CStyle) PaintArrow(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintBox(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintBoxGap(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintCheck(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintDiamond(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintExpander(window Window, stateType enums.StateType, area ptypes.Rectangle, widget Widget, ...)
- func (s *CStyle) PaintExtension(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintFlatBox(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintFocus(window Window, stateType enums.StateType, area ptypes.Rectangle, widget Widget, ...)
- func (s *CStyle) PaintHandle(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintOption(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintPolygon(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintResizeGrip(window Window, stateType enums.StateType, area ptypes.Rectangle, widget Widget, ...)
- func (s *CStyle) PaintShadow(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintShadowGap(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintSlider(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintSpinner(window Window, stateType enums.StateType, area ptypes.Rectangle, widget Widget, ...)
- func (s *CStyle) PaintTab(window Window, stateType enums.StateType, shadowType enums.ShadowType, ...)
- func (s *CStyle) PaintVLine(window Window, stateType enums.StateType, area ptypes.Rectangle, widget Widget, ...)
- type CStyleProperty
- func (p *CStyleProperty) Buildable() bool
- func (p *CStyleProperty) Clone() *CStyleProperty
- func (p *CStyleProperty) Default() (def interface{})
- func (p *CStyleProperty) Name() cdk.Property
- func (p *CStyleProperty) ReadOnly() bool
- func (p *CStyleProperty) Set(value interface{}) error
- func (p *CStyleProperty) SetFromString(value string) error
- func (p *CStyleProperty) State() enums.StateType
- func (p *CStyleProperty) Type() cdk.PropertyType
- func (p *CStyleProperty) Value() (value interface{})
- type CToggleAction
- type CVBox
- type CVButtonBox
- type CVScrollbar
- type CViewport
- func (v *CViewport) GetBinWindow() (value Window)
- func (v *CViewport) GetHAdjustment() (adjustment Adjustment)
- func (v *CViewport) GetShadowType() (shadowType enums.ShadowType)
- func (v *CViewport) GetVAdjustment() (adjustment Adjustment)
- func (v *CViewport) GetViewWindow() (value Window)
- func (v *CViewport) Init() (already bool)
- func (v *CViewport) SetHAdjustment(adjustment Adjustment)
- func (v *CViewport) SetShadowType(shadowType enums.ShadowType)
- func (v *CViewport) SetVAdjustment(adjustment Adjustment)
- type CWidget
- func (w *CWidget) Activate() (value bool)
- func (w *CWidget) AddAccelerator(accelSignal string, accelGroup AccelGroup, accelKey int, ...)
- func (w *CWidget) AddEvents(events cdk.EventMask)
- func (w *CWidget) AddMnemonicLabel(label Widget)
- func (w *CWidget) CanActivateAccel(signalId int) (value bool)
- func (w *CWidget) CanDefault() bool
- func (w *CWidget) CanFocus() bool
- func (w *CWidget) ChildFocus(direction enums.DirectionType) (value bool)
- func (w *CWidget) ChildNotify(childProperty string)
- func (w *CWidget) ClassPath(pathLength int, path string, pathReversed string)
- func (w *CWidget) CssFullPath() (selector string)
- func (w *CWidget) CssState() (state enums.StateType)
- func (w *CWidget) Destroy()
- func (w *CWidget) Draw() cenums.EventFlag
- func (w *CWidget) ErrorBell()
- func (w *CWidget) FreezeChildNotify()
- func (w *CWidget) GetAllParents() (parents []Widget)
- func (w *CWidget) GetAncestor(widgetType cdk.CTypeTag) (value Widget)
- func (w *CWidget) GetAppPaintable() (value bool)
- func (w *CWidget) GetCanDefault() (value bool)
- func (w *CWidget) GetCanFocus() (value bool)
- func (w *CWidget) GetChildVisible() (value bool)
- func (w *CWidget) GetCompositeChildren() (composites []Widget)
- func (w *CWidget) GetCompositeName() (value string)
- func (w *CWidget) GetDefaultDirection() (value enums.TextDirection)
- func (w *CWidget) GetDirection() (value enums.TextDirection)
- func (w *CWidget) GetDisplay() (value cdk.Display)
- func (w *CWidget) GetEvents() (value cdk.EventMask)
- func (w *CWidget) GetFlags() enums.WidgetFlags
- func (w *CWidget) GetHasTooltip() (value bool)
- func (w *CWidget) GetHasWindow() (ok bool)
- func (w *CWidget) GetMapped() (value bool)
- func (w *CWidget) GetNoShowAll() (value bool)
- func (w *CWidget) GetParent() (value Widget)
- func (w *CWidget) GetParentWindow() (value Window)
- func (w *CWidget) GetPointer(x int, y int)
- func (w *CWidget) GetRealized() (value bool)
- func (w *CWidget) GetReceivesDefault() (value bool)
- func (w *CWidget) GetRegion() (region ptypes.Region)
- func (w *CWidget) GetRootWindow() (value Window)
- func (w *CWidget) GetScreen() (value cdk.Display)
- func (w *CWidget) GetSensitive() (value bool)
- func (w *CWidget) GetSizeRequest() (width, height int)
- func (w *CWidget) GetState() (value enums.StateType)
- func (w *CWidget) GetTheme() (theme paint.Theme)
- func (w *CWidget) GetThemeRequest() (theme paint.Theme)
- func (w *CWidget) GetTooltipMarkup() (value string)
- func (w *CWidget) GetTooltipText() (value string)
- func (w *CWidget) GetTooltipWindow() (value Window)
- func (w *CWidget) GetTopParent() (parent Widget)
- func (w *CWidget) GetToplevel() (value Widget)
- func (w *CWidget) GetVisible() (value bool)
- func (w *CWidget) GetWidgetAt(p *ptypes.Point2I) Widget
- func (w *CWidget) GetWindow() (window Window)
- func (w *CWidget) GrabDefault()
- func (w *CWidget) GrabEventFocus()
- func (w *CWidget) GrabFocus()
- func (w *CWidget) HasDefault() (value bool)
- func (w *CWidget) HasEventFocus() bool
- func (w *CWidget) HasFlags(f enums.WidgetFlags) bool
- func (w *CWidget) HasFocus() (value bool)
- func (w *CWidget) HasGrab() (value bool)
- func (w *CWidget) HasScreen() (value bool)
- func (w *CWidget) HasState(s enums.StateType) bool
- func (w *CWidget) Hide()
- func (w *CWidget) HideOnDelete() (value bool)
- func (w *CWidget) Init() (already bool)
- func (w *CWidget) Invalidate() cenums.EventFlag
- func (w *CWidget) IsAncestor(ancestor Widget) (value bool)
- func (w *CWidget) IsDefault() bool
- func (w *CWidget) IsDrawable() (value bool)
- func (w *CWidget) IsFocus() (value bool)
- func (w *CWidget) IsFocused() bool
- func (w *CWidget) IsMapped() (mapped bool)
- func (w *CWidget) IsParentFocused() bool
- func (w *CWidget) IsSensitive() bool
- func (w *CWidget) IsToplevel() (value bool)
- func (w *CWidget) IsVisible() bool
- func (w *CWidget) KeynavFailed(direction enums.DirectionType) (value bool)
- func (w *CWidget) LockDraw()
- func (w *CWidget) LockEvent()
- func (w *CWidget) Map()
- func (w *CWidget) MnemonicActivate(groupCycling bool) (value bool)
- func (w *CWidget) Path() (path string)
- func (w *CWidget) PopCompositeChild(child Widget)
- func (w *CWidget) PushCompositeChild(child Widget)
- func (w *CWidget) ReleaseEventFocus()
- func (w *CWidget) RemoveAccelerator(accelGroup AccelGroup, accelKey int, accelMods enums.ModifierType) (value bool)
- func (w *CWidget) RemoveMnemonicLabel(label Widget)
- func (w *CWidget) RenderFreeze()
- func (w *CWidget) RenderFrozen() bool
- func (w *CWidget) RenderThaw()
- func (w *CWidget) Reparent(parent Widget)
- func (w *CWidget) RequestDrawAndShow()
- func (w *CWidget) RequestDrawAndSync()
- func (w *CWidget) Resize() cenums.EventFlag
- func (w *CWidget) SendExpose(event cdk.Event) (value int)
- func (w *CWidget) SendFocusChange(event cdk.Event) (value bool)
- func (w *CWidget) SetAccelPath(accelPath string, accelGroup AccelGroup)
- func (w *CWidget) SetAppPaintable(appPaintable bool)
- func (w *CWidget) SetCanDefault(canDefault bool)
- func (w *CWidget) SetCanFocus(canFocus bool)
- func (w *CWidget) SetCompositeName(name string)
- func (w *CWidget) SetDefaultDirection(dir enums.TextDirection)
- func (w *CWidget) SetDirection(dir enums.TextDirection)
- func (w *CWidget) SetDoubleBuffered(doubleBuffered bool)
- func (w *CWidget) SetEvents(events cdk.EventMask)
- func (w *CWidget) SetFlags(v enums.WidgetFlags)
- func (w *CWidget) SetHasTooltip(hasTooltip bool)
- func (w *CWidget) SetMapped(mapped bool)
- func (w *CWidget) SetNoShowAll(noShowAll bool)
- func (w *CWidget) SetParent(parent Widget)
- func (w *CWidget) SetRealized(realized bool)
- func (w *CWidget) SetReceivesDefault(receivesDefault bool)
- func (w *CWidget) SetRedrawOnAllocate(redrawOnAllocate bool)
- func (w *CWidget) SetScrollAdjustments(hadjustment Adjustment, vadjustment Adjustment) (value bool)
- func (w *CWidget) SetSensitive(sensitive bool)
- func (w *CWidget) SetSizeRequest(width, height int)
- func (w *CWidget) SetState(state enums.StateType)
- func (w *CWidget) SetTheme(theme paint.Theme)
- func (w *CWidget) SetTooltipMarkup(markup string)
- func (w *CWidget) SetTooltipText(text string)
- func (w *CWidget) SetTooltipWindow(customWindow Window)
- func (w *CWidget) SetVisible(visible bool)
- func (w *CWidget) SetWindow(window Window)
- func (w *CWidget) Show()
- func (w *CWidget) SizeRequest() ptypes.Rectangle
- func (w *CWidget) TranslateCoordinates(destWidget Widget, srcX int, srcY int, destX int, destY int) (value bool)
- func (w *CWidget) UnlockDraw()
- func (w *CWidget) UnlockEvent()
- func (w *CWidget) Unmap()
- func (w *CWidget) Unparent()
- func (w *CWidget) UnsetFlags(v enums.WidgetFlags)
- func (w *CWidget) UnsetState(state enums.StateType)
- type CWindow
- func (w *CWindow) ActivateDefault() (value bool)
- func (w *CWindow) ActivateFocus() (value bool)
- func (w *CWindow) ActivateKey(event cdk.EventKey) (value bool)
- func (w *CWindow) ActivateMnemonic(keyval rune, modifier cdk.ModMask) (activated bool)
- func (w *CWindow) AddAccelGroup(accelGroup AccelGroup)
- func (w *CWindow) AddMnemonic(keyval rune, target Widget)
- func (w *CWindow) ApplyStylesTo(widget Widget)
- func (w *CWindow) Build(builder Builder, element *CBuilderElement) error
- func (w *CWindow) Deiconify()
- func (w *CWindow) Draw() cenums.EventFlag
- func (w *CWindow) ExportStylesToString() (css string)
- func (w *CWindow) FocusNext() cenums.EventFlag
- func (w *CWindow) FocusPrevious() cenums.EventFlag
- func (w *CWindow) Fullscreen()
- func (w *CWindow) GetAcceptFocus() (value bool)
- func (w *CWindow) GetDecorated() (value bool)
- func (w *CWindow) GetDefaultSize(width int, height int)
- func (w *CWindow) GetDefaultWidget() (value Widget)
- func (w *CWindow) GetDeletable() (value bool)
- func (w *CWindow) GetDestroyWithParent() (value bool)
- func (w *CWindow) GetDisplay() (dm cdk.Display)
- func (w *CWindow) GetEventFocus() (o cdk.Object)
- func (w *CWindow) GetFocus() (focus Widget)
- func (w *CWindow) GetFocusOnMap() (value bool)
- func (w *CWindow) GetMnemonicModifier() (value cdk.ModMask)
- func (w *CWindow) GetMnemonicsVisible() (value bool)
- func (w *CWindow) GetModal() (value bool)
- func (w *CWindow) GetNextFocus() (next Widget)
- func (w *CWindow) GetOpacity() (value float64)
- func (w *CWindow) GetPosition(rootX int, rootY int)
- func (w *CWindow) GetPreviousFocus() (previous Widget)
- func (w *CWindow) GetResizable() (value bool)
- func (w *CWindow) GetRole() (value string)
- func (w *CWindow) GetSize() (width, height int)
- func (w *CWindow) GetSkipPagerHint() (value bool)
- func (w *CWindow) GetSkipTaskbarHint() (value bool)
- func (w *CWindow) GetTitle() (value string)
- func (w *CWindow) GetTransientFor() (value Window)
- func (w *CWindow) GetTypeHint() (value enums.WindowTypeHint)
- func (w *CWindow) GetUrgencyHint() (value bool)
- func (w *CWindow) GetVBox() (vbox VBox)
- func (w *CWindow) GetWindowType() (value cenums.WindowType)
- func (w *CWindow) HasGroup() (value bool)
- func (w *CWindow) HasToplevelFocus() (focused bool)
- func (w *CWindow) Hide()
- func (w *CWindow) Iconify()
- func (w *CWindow) ImportStylesFromString(css string) (err error)
- func (w *CWindow) Init() (already bool)
- func (w *CWindow) IsActive() (active bool)
- func (w *CWindow) ListTopLevels() (value []Window)
- func (w *CWindow) Maximize()
- func (w *CWindow) Move(x int, y int)
- func (w *CWindow) ParseGeometry(geometry string) (value bool)
- func (w *CWindow) Present()
- func (w *CWindow) PresentWithTime(timestamp int)
- func (w *CWindow) PropagateKeyEvent(event cdk.EventKey) (value bool)
- func (w *CWindow) ReApplyStyles()
- func (w *CWindow) RemoveAccelGroup(accelGroup AccelGroup)
- func (w *CWindow) RemoveMnemonic(keyval rune, target Widget)
- func (w *CWindow) RemoveWidgetMnemonics(target Widget)
- func (w *CWindow) ReplaceStylesFromString(css string) (err error)
- func (w *CWindow) RequestDrawAndShow()
- func (w *CWindow) RequestDrawAndSync()
- func (w *CWindow) ReshowWithInitialSize()
- func (w *CWindow) SetAcceptFocus(setting bool)
- func (w *CWindow) SetAutoStartupNotification(setting bool)
- func (w *CWindow) SetDecorated(setting bool)
- func (w *CWindow) SetDefault(defaultWidget Widget)
- func (w *CWindow) SetDeletable(setting bool)
- func (w *CWindow) SetDestroyWithParent(setting bool)
- func (w *CWindow) SetDisplay(dm cdk.Display)
- func (w *CWindow) SetEventFocus(o cdk.Object)
- func (w *CWindow) SetFocus(focus Widget)
- func (w *CWindow) SetFocusOnMap(setting bool)
- func (w *CWindow) SetKeepAbove(setting bool)
- func (w *CWindow) SetKeepBelow(setting bool)
- func (w *CWindow) SetMnemonicModifier(modifier cdk.ModMask)
- func (w *CWindow) SetMnemonicsVisible(setting bool)
- func (w *CWindow) SetModal(modal bool)
- func (w *CWindow) SetOpacity(opacity float64)
- func (w *CWindow) SetPosition(position enums.WindowPosition)
- func (w *CWindow) SetResizable(resizable bool)
- func (w *CWindow) SetRole(role string)
- func (w *CWindow) SetSkipPagerHint(setting bool)
- func (w *CWindow) SetSkipTaskbarHint(setting bool)
- func (w *CWindow) SetStartupId(startupId string)
- func (w *CWindow) SetTitle(title string)
- func (w *CWindow) SetTransientFor(parent Window)
- func (w *CWindow) SetTypeHint(hint enums.WindowTypeHint)
- func (w *CWindow) SetUrgencyHint(setting bool)
- func (w *CWindow) SetWindowType(hint cenums.WindowType)
- func (w *CWindow) Show()
- func (w *CWindow) ShowAll()
- func (w *CWindow) Stick()
- func (w *CWindow) Unfullscreen()
- func (w *CWindow) Unmaximize()
- func (w *CWindow) Unstick()
- type Container
- type Dialog
- func MakeDialog() Dialog
- func NewButtonMenuDialog(title, message string, argv ...interface{}) (dialog Dialog)
- func NewDialog() (value Dialog)
- func NewDialogWithButtons(title string, parent Window, flags enums.DialogFlags, argv ...interface{}) (dialog Dialog)
- func NewMessageDialog(title, message string) (dialog Dialog)
- func NewYesNoDialog(title, message string, defaultNo bool) (dialog Dialog)
- type Drawable
- type Editable
- type Entry
- type EventBox
- type Frame
- type GDestroyNotify
- type HBox
- type HButtonBox
- type HScrollbar
- type Label
- type Misc
- type Object
- type Orientable
- type RadioAction
- type RadioActionEntry
- type Range
- type Scrollbar
- type ScrolledViewport
- type Sensitive
- type Separator
- type Settings
- type SignalEventFn
- type Spinner
- type StockID
- type StockItem
- type Style
- type StyleProperty
- type StyleSheetMedia
- type StyleSheetProperty
- type StyleSheetRule
- type StyleSheetSelector
- type ToggleAction
- type ToggleActionEntry
- type TranslateFunc
- type VBox
- type VButtonBox
- type VScrollbar
- type Viewport
- type Widget
- type WidgetIteratorFn
- type WidgetSlice
- type Window
- type WithFakeWindowFn
Constants ¶
const ( TypeButton cdk.CTypeTag = "ctk-button" ButtonMonoTheme paint.ThemeName = "button-mono" ButtonColorTheme paint.ThemeName = "button-color" )
const ( TypeEntry cdk.CTypeTag = "ctk-entry" EntryMonoTheme paint.ThemeName = "entry-mono" EntryColorTheme paint.ThemeName = "entry-color" )
const ( TypeLabel cdk.CTypeTag = "ctk-label" LabelMonoTheme paint.ThemeName = "label-mono" LabelColorTheme paint.ThemeName = "label-color" )
const ( SignalAllocation cdk.Signal = "allocation" SignalCancelEvent cdk.Signal = "cancel-event" SignalCdkEvent cdk.Signal = "cdk-event" SignalDraw cdk.Signal = cdk.SignalDraw SignalError cdk.Signal = "error" SignalEventKey cdk.Signal = "key-event" SignalEventMouse cdk.Signal = "mouse-event" SignalEventPaste cdk.Signal = "paste-event" SignalGainedEventFocus cdk.Signal = "gained-event-focus" SignalGainedFocus cdk.Signal = "gained-focus" SignalGrabEventFocus cdk.Signal = "grab-event-focus" SignalHomogeneous cdk.Signal = "homogeneous" SignalInvalidate cdk.Signal = "invalidate" SignalInvalidateChanged cdk.Signal = "invalidate-changed" SignalLostEventFocus cdk.Signal = "lost-event-focus" SignalLostFocus cdk.Signal = "lost-focus" SignalName cdk.Signal = "name" SignalOrigin cdk.Signal = "origin" SignalPackEnd cdk.Signal = "pack-end" SignalPackStart cdk.Signal = "pack-start" SignalReleaseEventFocus cdk.Signal = "set-event-focus" SignalReorderChild cdk.Signal = "reorder-child" SignalReparent cdk.Signal = "reparent" SignalResize cdk.Signal = "resize" SignalSetEventFocus cdk.Signal = "set-event-focus" SignalSetFlags cdk.Signal = "set-flags" SignalSetParent cdk.Signal = "set-parent" SignalSetProperty cdk.Signal = cdk.SignalSetProperty SignalSetSensitive cdk.Signal = "set-sensitive" SignalSetSizeRequest cdk.Signal = "set-size-request" SignalSetState cdk.Signal = "set-state" SignalSetTheme cdk.Signal = "set-theme" SignalSetWindow cdk.Signal = "set-window" SignalShowAll cdk.Signal = "show-all" SignalSpacing cdk.Signal = "spacing" SignalTextDirection cdk.Signal = "text-direction" SignalUnparent cdk.Signal = "unparent" SignalUnsetFlags cdk.Signal = "unset-flags" SignalUnsetState cdk.Signal = "unset-state" )
const ( SignalSpinnerStart cdk.Signal = "spinner-start" SignalSpinnerTick cdk.Signal = "spinner-tick" SignalSpinnerStop cdk.Signal = "spinner-stop" )
const ( TypeWidget cdk.CTypeTag = "ctk-widget" TooltipColorStyle paint.StyleName = "tooltip-color" TooltipColorTheme paint.ThemeName = "tooltip-color" )
const AlignmentDrawHandle = "alignment-draw-handler"
const AlignmentEventResizeHandle = "alignment-event-resize-handler"
const AlignmentGainedFocusHandle = "alignment-gained-focus-handler"
const AlignmentLostFocusHandle = "alignment-lost-focus-handler"
const ApplicationFocusedWindowHandle = "application-focused-window-handler"
const ApplicationMappedWindowHandle = "application-mapped-window-handler"
const ApplicationPluginShutdownHandle = "application-plugin-shutdown-handler"
const ApplicationPluginStartupHandle = "application-plugin-startup-handler"
const ApplicationSetupDisplayHandle = "application-setup-display-handler"
const ApplicationUnmappedWindowHandle = "application-unmapped-window-handler"
const ArrowDrawHandle = "arrow-draw-handler"
const ArrowResizeHandle = "arrow-resize-handler"
const BoxChildHideHandle = "box-child-hide-handler"
const BoxChildShowHandle = "box-child-show-handler"
const BoxDrawHandle = "box-draw-handler"
const BoxEnterHandle = "box-enter-handler"
const BoxInvalidateHandle = "box-invalidate-handler"
const BoxLeaveHandle = "box-leave-handler"
const BoxResizeHandle = "box-resize-handler"
const ButtonCdkEventHandle = "button-cdk-event-handler"
const ButtonDrawHandle = "button-draw-handler"
const ButtonGainedFocusHandle = "button-gained-focus-handler"
const ButtonInvalidateHandle = "button-invalidate-handler"
const ButtonLostFocusHandle = "button-lost-focus-handler"
const ButtonResizeHandle = "button-resize-handler"
const ButtonSetPropertyHandle = "button-set-property-handler"
const ButtonSetSensitiveHandle = "button-set-sensitive-handler"
const ContainerChildHideHandle = "container-child-hide-handler"
const ContainerChildShowHandle = "container-child-show-handler"
const ContainerGainedFocusHandle = "container-gained-focus-handler"
const ContainerLostFocusHandle = "container-lost-focus-handler"
const CssPropertyBackgroundColor cdk.Property = "background-color"
const CssPropertyBlink cdk.Property = "blink"
const CssPropertyBold cdk.Property = "bold"
const CssPropertyBorder cdk.Property = "border"
const CssPropertyBorderBackgroundColor cdk.Property = "border-background-color"
const CssPropertyBorderColor cdk.Property = "border-color"
const CssPropertyClass cdk.Property = "class"
const CssPropertyColor cdk.Property = "color"
const CssPropertyDim cdk.Property = "dim"
const CssPropertyHeight cdk.Property = "height"
const CssPropertyItalic cdk.Property = "italic"
const CssPropertyReverse cdk.Property = "reverse"
const CssPropertyStrike cdk.Property = "strike"
const CssPropertyUnderline cdk.Property = "underline"
const CssPropertyWidth cdk.Property = "width"
const DialogActivateHandle = "dialog-activate-handler"
const DialogDrawHandle = "dialog-draw-handler"
const DialogEventHandle = "dialog-event-handler"
const DialogInvalidateHandle = "dialog-invalidate-handler"
const DialogResizeHandle = "dialog-resize-handler"
const DialogResponseHandle = "dialog-response-handler"
const FrameChildGainedFocusHandle = "frame-child-gained-focus-handler"
const FrameChildLostFocusHandle = "frame-child-lost-focus-handler"
const FrameDrawHandle = "frame-draw-handler"
const FrameInvalidateHandle = "frame-invalidate-handler"
const FrameResizeHandle = "frame-resize-handler"
const LabelDrawHandle = "label-draw-handler"
const LabelEnterHandle = "label-mouse-enter-handler"
const LabelInvalidateHandle = "label-invalidate-handler"
const LabelLeaveHandle = "label-mouse-leave-handler"
const LabelResizeHandle = "label-resize-handler"
const PropertyAboveChild cdk.Property = "above-child"
Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it. Flags: Read / Write Default value: FALSE
const PropertyAccelKey cdk.Property = "accel-key"
const PropertyAccelLocked cdk.Property = "accel-locked"
const PropertyAccelMods cdk.Property = "accel-mods"
const PropertyAccelPath cdk.Property = "accel-path"
const PropertyAcceptFocus cdk.Property = "accept-focus"
Whether the window should receive the input focus. Flags: Read / Write Default value: TRUE
const PropertyActionIcon cdk.Property = "action-icon"
The Icon displayed in the Action. Note that the stock icon is preferred, if the “stock-id” property holds the id of an existing stock icon. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write
const PropertyActionIconName cdk.Property = "icon-name"
The name of the icon from the icon theme. Note that the stock icon is preferred, if the “stock-id” property holds the id of an existing stock icon, and the GIcon is preferred if the “gicon” property is set. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write Default value: NULL
const PropertyActionLabel cdk.Property = "label"
The label used for menu items and buttons that activate this action. If the label is NULL, CTK uses the stock label specified via the stock-id property. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write Default value: NULL
const PropertyActionName cdk.Property = "name"
A unique name for the action. Flags: Read / Write / Construct Only Default value: NULL
const PropertyActionSensitive cdk.Property = "sensitive"
Whether the action is enabled. Flags: Read / Write Default value: TRUE
const PropertyActionVisible cdk.Property = "visible"
Whether the action is visible. Flags: Read / Write Default value: TRUE
const PropertyActive cdk.Property = "active"
If the toggle action should be active in or not. Flags: Read / Write Default value: FALSE
const PropertyAdjustment cdk.Property = "adjustment"
The Adjustment that contains the current value of this range object. Flags: Read / Write / Construct
const PropertyAlwaysShowImage cdk.Property = "always-show-image"
If TRUE, the action's menu item proxies will ignore the “gtk-menu-images” setting and always show their image, if available. Use this property if the menu item would be useless or hard to use without their image. Flags: Read / Write / Construct Default value: FALSE
const PropertyAppPaintable cdk.Property = "app-paintable"
Whether the application will paint directly on the widget. Flags: Read / Write Default value: FALSE
const PropertyArrowShadowType cdk.Property = "shadow-type"
Appearance of the shadow surrounding the arrow. Flags: Read / Write Default value: GTK_SHADOW_OUT
const PropertyArrowType cdk.Property = "arrow-type"
The direction the arrow should point. Flags: Read / Write Default value: GTK_ARROW_RIGHT
const PropertyAttributes cdk.Property = "attributes"
A list of style attributes to apply to the text of the label. Flags: Read / Write
const PropertyBorderWidth cdk.Property = "border-width"
The width of the empty border outside the containers children. Flags: Read / Write Allowed values: <= 65535 Default value: 0
const PropertyBottomPadding cdk.Property = "bottom-padding"
The padding to insert at the bottom of the widget. Flags: Read / Write Allowed values: <= G_MAXINT Default value: 0
const PropertyBoxChildExpand cdk.Property = "box-child--expand"
const PropertyBoxChildFill cdk.Property = "box-child--fill"
const PropertyBoxChildPackType cdk.Property = "box-child--pack-type"
const PropertyBoxChildPadding cdk.Property = "box-child--padding"
const PropertyButtonLabel cdk.Property = "label"
Text of the label widget inside the button, if the button contains a label widget. Flags: Read / Write / Construct Default value: NULL
const PropertyCanDefault cdk.Property = "can-default"
Whether the widget can be the default widget. Flags: Read / Write Default value: FALSE
const PropertyCanFocus cdk.Property = "can-focus"
Whether the widget can accept the input focus. Flags: Read / Write Default value: FALSE
const PropertyChild cdk.Property = "child"
Can be used to add a new child to the container. Flags: Write
const PropertyCompositeChild cdk.Property = "composite-child"
Whether the widget is part of a composite widget. Flags: Read Default value: FALSE
const PropertyCtkAlternativeButtonOrder cdk.Property = "ctk-alternative-button-order"
Whether buttons in dialogs should use the alternative button order. Flags: Read / Write Default value: FALSE
const PropertyCtkAlternativeSortArrows cdk.Property = "ctk-alternative-sort-arrows"
Controls the direction of the sort indicators in sorted list and tree views. By default an arrow pointing down means the column is sorted in ascending order. When set to TRUE, this order will be inverted. Flags: Read / Write Default value: FALSE
const PropertyCtkColorPalette cdk.Property = "ctk-color-palette"
Palette to use in the color selector. Flags: Read / Write Default value: "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"
const PropertyCtkColorScheme cdk.Property = "ctk-color-scheme"
A palette of named colors for use in themes. The format of the string is Color names must be acceptable as identifiers in the color specifications must be in the format accepted by ColorParse. Note that due to the way the color tables from different sources are merged, color specifications will be converted to hexadecimal form when getting this property. Starting with CTK 2.12, the entries can alternatively be separated by ';' instead of newlines: Flags: Read / Write Default value: ""
const PropertyCtkCursorBlink cdk.Property = "ctk-cursor-blink"
Whether the cursor should blink. Also see the “ctk-cursor-blink-timeout” setting, which allows more flexible control over cursor blinking. Flags: Read / Write Default value: TRUE
const PropertyCtkCursorBlinkTime cdk.Property = "ctk-cursor-blink-time"
Length of the cursor blink cycle, in milliseconds. Flags: Read / Write Allowed values: >= 100 Default value: 1200
const PropertyCtkCursorBlinkTimeout cdk.Property = "ctk-cursor-blink-timeout"
Time after which the cursor stops blinking, in seconds. The timer is reset after each user interaction. Setting this to zero has the same effect as setting “ctk-cursor-blink” to FALSE. Flags: Read / Write Allowed values: >= 1 Default value: 2147483647
const PropertyCtkCursorThemeName cdk.Property = "ctk-cursor-theme-name"
Name of the cursor theme to use, or NULL to use the default theme. Flags: Read / Write Default value: NULL
const PropertyCtkDndDragThreshold cdk.Property = "ctk-dnd-drag-threshold"
Number of pixels the cursor can move before dragging. Flags: Read / Write Allowed values: >= 1 Default value: 8
const PropertyCtkDoubleClickDistance cdk.Property = "ctk-double-click-distance"
Maximum distance allowed between two clicks for them to be considered a double click (in pixels). Flags: Read / Write Allowed values: >= 0 Default value: 5
const PropertyCtkDoubleClickTime cdk.Property = "ctk-double-click-time"
Maximum time allowed between two clicks for them to be considered a double click (in milliseconds). Flags: Read / Write Allowed values: >= 0 Default value: 250
const PropertyCtkEnableAccels cdk.Property = "ctk-enable-accels"
Whether menu items should have visible accelerators which can be activated. Flags: Read / Write Default value: TRUE
const PropertyCtkEnableMnemonics cdk.Property = "ctk-enable-mnemonics"
Whether labels and menu items should have visible mnemonics which can be activated. Flags: Read / Write Default value: TRUE
const PropertyCtkEnableTooltips cdk.Property = "ctk-enable-tooltips"
Whether tooltips should be shown on widgets. Flags: Read / Write Default value: TRUE
const PropertyCtkEntryPasswordHintTimeout cdk.Property = "ctk-entry-password-hint-timeout"
How long to show the last input character in hidden entries. This value is in milliseconds. 0 disables showing the last char. 600 is a good value for enabling it. Flags: Read / Write Default value: 0
const PropertyCtkEntrySelectOnFocus cdk.Property = "ctk-entry-select-on-focus"
Whether to select the contents of an entry when it is focused. Flags: Read / Write Default value: TRUE
const PropertyCtkErrorBell cdk.Property = "ctk-error-bell"
When TRUE, keyboard navigation and other input-related errors will cause a beep. Since the error bell is implemented using WindowBeep, the windowing system may offer ways to configure the error bell in many ways, such as flashing the window or similar visual effects. Flags: Read / Write Default value: TRUE
const PropertyCtkFallbackIconTheme cdk.Property = "ctk-fallback-icon-theme"
Name of a icon theme to fall back to. Flags: Read / Write Default value: NULL
const PropertyCtkFileChooserBackend cdk.Property = "ctk-file-chooser-backend"
Name of the FileChooser backend to use by default. Flags: Read / Write Default value: NULL
const PropertyCtkIconThemeName cdk.Property = "ctk-icon-theme-name"
Name of icon theme to use. Flags: Read / Write Default value: "hicolor"
const PropertyCtkImModule cdk.Property = "ctk-im-module"
Which IM (input method) module should be used by default. This is the input method that will be used if the user has not explicitly chosen another input method from the IM context menu. This also can be a colon-separated list of input methods, which CTK will try in turn until it finds one available on the system. See IMContext and see the “ctk-show-input-method-menu” property. Flags: Read / Write Default value: NULL
const PropertyCtkImPreeditStyle cdk.Property = "ctk-im-preedit-style"
How to draw the input method preedit string. Flags: Read / Write Default value: ctk_IM_PREEDIT_CALLBACK
const PropertyCtkImStatusStyle cdk.Property = "ctk-im-status-style"
How to draw the input method statusbar. Flags: Read / Write Default value: ctk_IM_STATUS_CALLBACK
const PropertyCtkKeyThemeName cdk.Property = "ctk-key-theme-name"
Name of key theme RC file to load. Flags: Read / Write Default value: NULL
When TRUE, keyboard navigation should be able to reach all widgets by using the cursor keys only. Tab, Shift etc. keys can't be expected to be present on the used input device. Flags: Read / Write Default value: FALSE
When TRUE, some widgets will wrap around when doing keyboard navigation, such as menus, menubars and notebooks. Flags: Read / Write Default value: TRUE
const PropertyCtkLabelSelectOnFocus cdk.Property = "ctk-label-select-on-focus"
Whether to select the contents of a selectable label when it is focused. Flags: Read / Write Default value: TRUE
const PropertyCtkMenuBarAccel cdk.Property = "ctk-menu-bar-accel"
Keybinding to activate the menu bar. Flags: Read / Write Default value: "F10"
const PropertyCtkMenuBarPopupDelay cdk.Property = "ctk-menu-bar-popup-delay"
Delay before the submenus of a menu bar appear. Flags: Read / Write Allowed values: >= 0 Default value: 0
const PropertyCtkMenuImages cdk.Property = "ctk-menu-images"
Whether images should be shown in menus. Flags: Read / Write Default value: TRUE
const PropertyCtkMenuPopdownDelay cdk.Property = "ctk-menu-popdown-delay"
The time before hiding a submenu when the pointer is moving towards the submenu. Flags: Read / Write Allowed values: >= 0 Default value: 1000
const PropertyCtkMenuPopupDelay cdk.Property = "ctk-menu-popup-delay"
Minimum time the pointer must stay over a menu item before the submenu appear. Flags: Read / Write Allowed values: >= 0 Default value: 225
const PropertyCtkModules cdk.Property = "ctk-modules"
List of currently active ctk modules. Flags: Read / Write Default value: NULL
const PropertyCtkPrimaryButtonWarpsSlider cdk.Property = "ctk-primary-button-warps-slider"
Whether a click in a Range trough should scroll to the click position or scroll by a single page in the respective direction. Flags: Read / Write Default value: FALSE
const PropertyCtkScrolledWindowPlacement cdk.Property = "ctk-scrolled-window-placement"
Where the contents of scrolled windows are located with respect to the scrollbars, if not overridden by the scrolled window's own placement. Flags: Read / Write Default value: ctk_CORNER_TOP_LEFT
const PropertyCtkShowInputMethodMenu cdk.Property = "ctk-show-input-method-menu"
Whether the context menus of entries and text views should offer to change the input method. Flags: Read / Write Default value: TRUE
const PropertyCtkShowUnicodeMenu cdk.Property = "ctk-show-unicode-menu"
Whether the context menus of entries and text views should offer to insert control characters. Flags: Read / Write Default value: TRUE
const PropertyCtkThemeName cdk.Property = "ctk-theme-name"
Name of theme RC file to load. Flags: Read / Write Default value: "Raleigh"
const PropertyCtkTimeoutExpand cdk.Property = "ctk-timeout-expand"
Expand value for timeouts, when a widget is expanding a new region. Flags: Read / Write Allowed values: >= 0 Default value: 500
const PropertyCtkTimeoutInitial cdk.Property = "ctk-timeout-initial"
Starting value for timeouts, when button is pressed. Flags: Read / Write Allowed values: >= 0 Default value: 200
const PropertyCtkTimeoutRepeat cdk.Property = "ctk-timeout-repeat"
Repeat value for timeouts, when button is pressed. Flags: Read / Write Allowed values: >= 0 Default value: 20
const PropertyCtkToolbarStyle cdk.Property = "ctk-toolbar-style"
Whether default toolbars have text only, text and icons, icons only, etc. Flags: Read / Write Default value: ctk_TOOLBAR_BOTH
const PropertyCtkTooltipBrowseModeTimeout cdk.Property = "ctk-tooltip-browse-mode-timeout"
Amount of time, in milliseconds, after which the browse mode will be disabled. See “ctk-tooltip-browse-timeout” for more information about browse mode. Flags: Read / Write Allowed values: >= 0 Default value: 500
const PropertyCtkTooltipBrowseTimeout cdk.Property = "ctk-tooltip-browse-timeout"
Controls the time after which tooltips will appear when browse mode is enabled, in milliseconds. Browse mode is enabled when the mouse pointer moves off an object where a tooltip was currently being displayed. If the mouse pointer hits another object before the browse mode timeout expires (see “ctk-tooltip-browse-mode-timeout”), it will take the amount of milliseconds specified by this setting to popup the tooltip for the new object. Flags: Read / Write Allowed values: >= 0 Default value: 60
const PropertyCtkTooltipTimeout cdk.Property = "ctk-tooltip-timeout"
Time, in milliseconds, after which a tooltip could appear if the cursor is hovering on top of a widget. Flags: Read / Write Allowed values: >= 0 Default value: 500
const PropertyCtkTouchscreenMode cdk.Property = "ctk-touchscreen-mode"
When TRUE, there are no motion notify events delivered on this screen, and widgets can't use the pointer hovering them for any essential functionality. Flags: Read / Write Default value: FALSE
const PropertyCurrentValue cdk.Property = "current-value"
The value property of the currently active member of the group to which this action belongs. Flags: Read / Write Default value: 0
const PropertyCursorPosition cdk.Property = "cursor-position"
The current position of the insertion cursor in chars. Flags: Read Allowed values: >= 0 Default value: 0
const PropertyDebug cdk.Property = cdk.PropertyDebug
const PropertyDebugChildren cdk.Property = "debug-children"
const PropertyDecorated cdk.Property = "decorated"
Whether the window should be decorated by the window manager. Flags: Read / Write Default value: TRUE
const PropertyDefaultHeight cdk.Property = "default-height"
The default height of the window, used when initially showing the window. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyDefaultWidth cdk.Property = "default-width"
The default width of the window, used when initially showing the window. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyDeletable cdk.Property = "deletable"
Whether the window frame should have a close button. Flags: Read / Write Default value: TRUE
const PropertyDestroyWithParent cdk.Property = "destroy-with-parent"
If this window should be destroyed when the parent is destroyed. Flags: Read / Write Default value: FALSE
const PropertyDoubleBuffered cdk.Property = "double-buffered"
Whether or not the widget is double buffered. Flags: Read / Write Default value: TRUE
const PropertyDrawAsRadio cdk.Property = "draw-as-radio"
Whether the proxies for this action look like radio action proxies. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write Default value: FALSE
const PropertyEditable cdk.Property = "editable"
const PropertyEllipsize cdk.Property = "ellipsize"
The preferred place to ellipsize the string, if the label does not have enough room to display the entire string, specified as a bool. Flags: Read / Write Default value: false
const PropertyEvents cdk.Property = "events"
The event mask that decides what kind of Events this widget gets. Flags: Read / Write Default value: GDK_STRUCTURE_MASK
const PropertyExtensionEvents cdk.Property = "extension-events"
The mask that decides what kind of extension events this widget gets. Flags: Read / Write Default value: GDK_EXTENSION_EVENTS_NONE
const PropertyFillLevel cdk.Property = "fill-level"
The fill level (e.g. prebuffering of a network stream). See SetFillLevel. Flags: Read / Write Default value: 1.79769e+308
const PropertyFocusOnClick cdk.Property = "focus-on-click"
Whether the button grabs focus when it is clicked with the mouse. Flags: Read / Write Default value: TRUE
const PropertyFocusOnMap cdk.Property = "focus-on-map"
Whether the window should receive the input focus when mapped. Flags: Read / Write Default value: TRUE
const PropertyFocusedWidget = "focused-widget"
const PropertyGravity cdk.Property = "gravity"
The window gravity of the window. See Move and Gravity for more details about window gravity. Flags: Read / Write Default value: GDK_GRAVITY_NORTH_WEST
const PropertyGroup cdk.Property = "group"
Sets a new group for a radio action. Flags: Write
const PropertyHAdjustment cdk.Property = "h-adjustment"
The Adjustment for the horizontal position. Flags: Read / Write / Construct
const PropertyHScrollbarPolicy cdk.Property = "h-scrollbar-policy"
When the horizontal scrollbar is displayed. Flags: Read / Write Default value: GTK_POLICY_ALWAYS
const PropertyHandler cdk.Property = "handler"
const PropertyHasDefault cdk.Property = "has-default"
Whether the widget is the default widget. Flags: Read / Write Default value: FALSE
const PropertyHasFocus cdk.Property = "has-focus"
Whether the widget has the input focus. Flags: Read / Write Default value: FALSE
const PropertyHasTooltip cdk.Property = "has-tooltip"
Enables or disables the emission of query-tooltip on widget . A value of TRUE indicates that widget can have a tooltip, in this case the widget will be queried using query-tooltip to determine whether it will provide a tooltip or not. Note that setting this property to TRUE for the first time will change the event masks of the Windows of this widget to include leave-notify and motion-notify events. This cannot and will not be undone when the property is set to FALSE again. Flags: Read / Write Default value: FALSE
const PropertyHasToplevelFocus cdk.Property = "has-toplevel-focus"
Whether the input focus is within this Window. Flags: Read Default value: FALSE
const PropertyHeightRequest cdk.Property = "height-request"
Override for height request of the widget, or -1 if natural request should be used. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyHideIfEmpty cdk.Property = "hide-if-empty"
When TRUE, empty menu proxies for this action are hidden. Flags: Read / Write Default value: TRUE
const PropertyHomogeneous cdk.Property = "homogeneous"
Whether the children should all be the same size. Flags: Read / Write Default value: FALSE
const PropertyID cdk.Property = "id"
const PropertyIcon cdk.Property = "icon"
Icon for this window. Flags: Read / Write
const PropertyIconName cdk.Property = "icon-name"
The :icon-name property specifies the name of the themed icon to use as the window icon. See IconTheme for more details. Flags: Read / Write Default value: NULL
const PropertyImage cdk.Property = "image"
Child widget to appear next to the button text. Flags: Read / Write
const PropertyImagePosition cdk.Property = "image-position"
The position of the image relative to the text inside the button. Flags: Read / Write Default value: GTK_POS_LEFT
const PropertyInverted cdk.Property = "inverted"
Invert direction slider moves to increase range value. Flags: Read / Write Default value: FALSE
const PropertyIsActive cdk.Property = "is-active"
Whether the toplevel is the current active window. Flags: Read Default value: FALSE
const PropertyIsFocus cdk.Property = "is-focus"
Whether the widget is the focus widget within the toplevel. Flags: Read / Write Default value: FALSE
const PropertyIsImportant cdk.Property = "is-important"
Whether the action is considered important. When TRUE, toolitem proxies for this action show text in GTK_TOOLBAR_BOTH_HORIZ mode. Flags: Read / Write Default value: FALSE
const PropertyIsLocked cdk.Property = "is-locked"
Is the accel group locked. Flags: Read Default value: FALSE
const PropertyJustify cdk.Property = "justify"
The alignment of the lines in the text of the label relative to each other. This does NOT affect the alignment of the label within its allocation. See Misc::xAlign for that. Flags: Read / Write Default value: cenums.JUSTIFY_LEFT
const PropertyLabel cdk.Property = "label"
The text of the label. Flags: Read / Write Default value: ""
const PropertyLabelUseUnderline cdk.Property = "use-underline"
If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key. Flags: Read / Write Default value: FALSE
const PropertyLabelWidget cdk.Property = "label-widget"
A widget to display in place of the usual frame label. Flags: Read / Write
const PropertyLabelXAlign cdk.Property = "label-x-align"
The horizontal alignment of the label. Flags: Read / Write Allowed values: [0,1] Default value: 0
const PropertyLabelYAlign cdk.Property = "label-y-align"
The vertical alignment of the label. Flags: Read / Write Allowed values: [0,1] Default value: 0.5
const PropertyLayoutStyle cdk.Property = "layout-style"
How to lay out the buttons in the box. Possible values are: default, spread, edge, start and end. Flags: Read / Write Default value: GTK_BUTTONBOX_DEFAULT_STYLE
const PropertyLeftPadding cdk.Property = "left-padding"
The padding to insert at the left of the widget. Flags: Read / Write Allowed values: <= G_MAXINT Default value: 0
const PropertyLower cdk.Property = "lower"
The minimum value of the adjustment. Flags: Read / Write Default value: 0
const PropertyLowerStepperSensitivity cdk.Property = "lower-stepper-sensitivity"
The sensitivity policy for the stepper that points to the adjustment's lower side. Flags: Read / Write Default value: GTK_SENSITIVITY_AUTO
const PropertyMaxWidthChars cdk.Property = "max-width-chars"
The desired maximum width of the label, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the label will request space for no more than the requested number of characters. If the “width-chars” property is set to a positive value, then the "max-width-chars" property is ignored. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyMnemonicKeyVal cdk.Property = "mnemonic-key-val"
The mnemonic accelerator key for this label. Flags: Read Default value: 16777215
const PropertyMnemonicWidget cdk.Property = "mnemonic-widget"
The widget to be activated when the label's mnemonic key is pressed. Flags: Read / Write
const PropertyMnemonicsVisible cdk.Property = "mnemonics-visible"
Whether mnemonics are currently visible in this window. Flags: Read / Write Default value: TRUE
const PropertyModal cdk.Property = "modal"
If TRUE, the window is modal (other windows are not usable while this one is up). Flags: Read / Write Default value: FALSE
const PropertyModifierMask cdk.Property = "modifier-mask"
Modifier Mask. Flags: Read Default value: GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_SUPER_MASK | GDK_HYPER_MASK | GDK_META_MASK
const PropertyName cdk.Property = "name"
The name of the widget. Flags: Read / Write Default value: NULL
const PropertyNoShowAll cdk.Property = "no-show-all"
Whether ShowAll should not affect this widget. Flags: Read / Write Default value: FALSE
const PropertyOpacity cdk.Property = "opacity"
The requested opacity of the window. See SetOpacity for more details about window opacity. Flags: Read / Write Allowed values: [0,1] Default value: 1
const PropertyOrientation cdk.Property = "orientation"
The orientation of the orientable. Flags: Read / Write Default value: ORIENTATION_HORIZONTAL
const PropertyPageIncrement cdk.Property = "page-increment"
The page increment of the adjustment. Flags: Read / Write Default value: 0
const PropertyPageSize cdk.Property = "page-size"
The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a SpinButton. Flags: Read / Write Default value: 0
const PropertyParent cdk.Property = "parent"
The parent widget of this widget. Must be a Container widget. Flags: Read / Write
const PropertyRadioActionValue cdk.Property = "value"
The value is an arbitrary integer which can be used as a convenient way to determine which action in the group is currently active in an ::activate or ::changed signal handler. See GetCurrentValue and RadioActionEntry for convenient ways to get and set this property. Flags: Read / Write Default value: 0
const PropertyReceivesDefault cdk.Property = "receives-default"
If TRUE, the widget will receive the default action when it is focused. Flags: Read / Write Default value: FALSE
const PropertyRelatedAction cdk.Property = "related-action"
The action that this activatable will activate and receive updates from for various states and possibly appearance. Flags: Read / Write
const PropertyRelief cdk.Property = "relief"
The border relief style. Flags: Read / Write Default value: GTK_RELIEF_NORMAL
const PropertyResizable cdk.Property = "resizable"
If TRUE, users can resize the window. Flags: Read / Write Default value: TRUE
const PropertyResizeMode cdk.Property = "resize-mode"
Specify how resize events are handled. Flags: Read / Write Default value: GTK_RESIZE_PARENT
const PropertyRestrictToFillLevel cdk.Property = "restrict-to-fill-level"
The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See SetRestrictToFillLevel. Flags: Read / Write Default value: TRUE
const PropertyRightPadding cdk.Property = "right-padding"
The padding to insert at the right of the widget. Flags: Read / Write Allowed values: <= G_MAXINT Default value: 0
const PropertyRole cdk.Property = "role"
Unique identifier for the window to be used when restoring a session. Flags: Read / Write Default value: NULL
const PropertyRoundDigits cdk.Property = "round-digits"
The number of digits to round the value to when it changes, or -1. See “change-value”. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyScreen cdk.Property = "screen"
The screen where this window will be displayed. Flags: Read / Write
const PropertyScrolledViewportShadowType cdk.Property = "viewport-shadow-type"
Style of bevel around the contents. Flags: Read / Write Default value: GTK_SHADOW_NONE
const PropertySelectable cdk.Property = "selectable"
Whether the label text can be selected with the mouse. Flags: Read / Write Default value: FALSE
const PropertySelectionBound cdk.Property = "selection-bound"
The position of the opposite end of the selection from the cursor in chars. Flags: Read Allowed values: >= 0 Default value: 0
const PropertySensitive cdk.Property = "sensitive"
Whether the widget responds to input. Flags: Read / Write Default value: TRUE
const PropertyShadow cdk.Property = "shadow"
Deprecated property, use shadow_type instead. Flags: Read / Write Default value: GTK_SHADOW_ETCHED_IN
const PropertyShadowType cdk.Property = "shadow-type"
Appearance of the frame border. Flags: Read / Write Default value: GTK_SHADOW_ETCHED_IN
const PropertyShortLabel cdk.Property = "short-label"
A shorter label that may be used on toolbar buttons. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write Default value: NULL
const PropertyShowFillLevel cdk.Property = "show-fill-level"
The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See SetShowFillLevel. Flags: Read / Write Default value: FALSE
const PropertySingleLineMode cdk.Property = "single-line-mode"
Whether the label is in single line mode. In single line mode, the height of the label does not depend on the actual text, it is always set to ascent + descent of the font. This can be an advantage in situations where resizing the label because of text changes would be distracting, e.g. in a statusbar. Flags: Read / Write Default value: FALSE
const PropertySkipPagerHint cdk.Property = "skip-pager-hint"
TRUE if the window should not be in the pager. Flags: Read / Write Default value: FALSE
const PropertySkipTaskbarHint cdk.Property = "skip-taskbar-hint"
TRUE if the window should not be in the task bar. Flags: Read / Write Default value: FALSE
const PropertySpacing cdk.Property = "spacing"
The amount of space between children. Flags: Read / Write Allowed values: >= 0 Default value: 0
const PropertyStartupId cdk.Property = "startup-id"
The :startup-id is a write-only property for setting window's startup notification identifier. See SetStartupId for more details. Flags: Write Default value: NULL
const PropertyStepIncrement cdk.Property = "step-increment"
The step increment of the adjustment. Flags: Read / Write Default value: 0
const PropertyStockId cdk.Property = "stock-id"
The stock icon displayed in widgets representing this action. This is an appearance property and thus only applies if “use-action-appearance” is TRUE. Flags: Read / Write Default value: NULL
const PropertyStyle cdk.Property = "style"
The style of the widget, which contains information about how it will look (colors etc). Flags: Read / Write
const PropertySwapped cdk.Property = "swapped"
const PropertyText cdk.Property = "text"
const PropertyTitle cdk.Property = "title"
The title of the window. Flags: Read / Write Default value: NULL
const PropertyTooltip cdk.Property = "tooltip"
A tooltip for this action. Flags: Read / Write Default value: NULL
const PropertyTooltipMarkup cdk.Property = "tooltip-markup"
Sets the text of tooltip to be the given string, which is marked up with the Tango text markup language. Also see TooltipSetMarkup. This is a convenience property which will take care of getting the tooltip shown if the given string is not NULL: has-tooltip will automatically be set to TRUE and there will be taken care of query-tooltip in the default signal handler. Flags: Read / Write Default value: NULL
const PropertyTooltipText cdk.Property = "tooltip-text"
Sets the text of tooltip to be the given string. Also see TooltipSetText. This is a convenience property which will take care of getting the tooltip shown if the given string is not NULL: has-tooltip will automatically be set to TRUE and there will be taken care of query-tooltip in the default signal handler. Flags: Read / Write Default value: NULL
const PropertyTopPadding cdk.Property = "top-padding"
The padding to insert at the top of the widget. Flags: Read / Write Allowed values: <= G_MAXINT Default value: 0
const PropertyTrackVisitedLinks cdk.Property = "track-visited-links"
Set this property to TRUE to make the label track which links have been clicked. It will then apply the ::visited-link-color color, instead of ::link-color. Flags: Read / Write Default value: TRUE
const PropertyTransientFor cdk.Property = "transient-for"
The transient parent of the window. See SetTransientFor for more details about transient windows. Flags: Read / Write / Construct
const PropertyTypeHint cdk.Property = "type-hint"
Hint to help the desktop environment understand what kind of window this is and how to treat it. Flags: Read / Write Default value: GDK_WINDOW_TYPE_HINT_NORMAL
const PropertyUpdatePolicy cdk.Property = "update-policy"
How the range should be updated on the screen. Flags: Read / Write Default value: GTK_UPDATE_CONTINUOUS
const PropertyUpper cdk.Property = "upper"
The maximum value of the adjustment. Note that values will be restricted by upper - page-size if the page-size property is nonzero. Flags: Read / Write Default value: 0
const PropertyUpperStepperSensitivity cdk.Property = "upper-stepper-sensitivity"
The sensitivity policy for the stepper that points to the adjustment's upper side. Flags: Read / Write Default value: GTK_SENSITIVITY_AUTO
const PropertyUrgencyHint cdk.Property = "urgency-hint"
TRUE if the window should be brought to the user's attention. Flags: Read / Write Default value: FALSE
const PropertyUseActionAppearance cdk.Property = "use-action-appearance"
Whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. See the Action documentation directly to find which properties should be ignored by the Activatable when this property is FALSE. Flags: Read / Write Default value: TRUE
const PropertyUseMarkup cdk.Property = "use-markup"
The text of the label includes XML markup. See pango_parse_markup. Flags: Read / Write Default value: FALSE
const PropertyUseStock cdk.Property = "use-stock"
If set, the label is used to pick a stock item instead of being displayed. Flags: Read / Write / Construct Default value: FALSE
const PropertyUseUnderline cdk.Property = "use-underline"
If set, an underline in the text indicates the next character should be used for the mnemonic accelerator key. Flags: Read / Write / Construct Default value: FALSE
const PropertyVAdjustment cdk.Property = "v-adjustment"
The Adjustment for the vertical position. Flags: Read / Write / Construct
const PropertyVScrollbarPolicy cdk.Property = "vscrollbar-policy"
When the vertical scrollbar is displayed. Flags: Read / Write Default value: GTK_POLICY_ALWAYS
const PropertyValue cdk.Property = "value"
The value of the adjustment. Flags: Read / Write Default value: 0
const PropertyViewportHAdjustment cdk.Property = "hadjustment"
The Adjustment that determines the values of the horizontal position for this viewport. Flags: Read / Write / Construct
const PropertyViewportShadowType cdk.Property = "shadow-type"
Determines how the shadowed box around the viewport is drawn. Flags: Read / Write Default value: GTK_SHADOW_IN
const PropertyViewportVAdjustment cdk.Property = "vadjustment"
The Adjustment that determines the values of the vertical position for this viewport. Flags: Read / Write / Construct
const PropertyVisible cdk.Property = "visible"
Whether the widget is visible. Flags: Read / Write Default value: FALSE
const PropertyVisibleHorizontal cdk.Property = "visible-horizontal"
Whether the toolbar item is visible when the toolbar is in a horizontal orientation. Flags: Read / Write Default value: TRUE
const PropertyVisibleOverflown cdk.Property = "visible-overflown"
When TRUE, toolitem proxies for this action are represented in the toolbar overflow menu. Flags: Read / Write Default value: TRUE
const PropertyVisibleVertical cdk.Property = "visible-vertical"
Whether the toolbar item is visible when the toolbar is in a vertical orientation. Flags: Read / Write Default value: TRUE
const PropertyVisibleWindow cdk.Property = "visible-window"
Whether the event box is visible, as opposed to invisible and only used to trap events. Flags: Read / Write Default value: TRUE
const PropertyWidthChars cdk.Property = "width-chars"
The desired width of the label, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the label will request either 3 characters or the property value, whichever is greater. If the "width-chars" property is set to a positive value, then the “max-width-chars” property is ignored. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyWidthRequest cdk.Property = "width-request"
Override for width request of the widget, or -1 if natural request should be used. Flags: Read / Write Allowed values: >= -1 Default value: -1
const PropertyWindow cdk.Property = "window"
The widget's window if it is realized, NULL otherwise. Flags: Read
const PropertyWindowPlacement cdk.Property = "window-placement"
Where the contents are located with respect to the scrollbars. This property only takes effect if "window-placement-set" is TRUE. Flags: Read / Write Default value: GTK_CORNER_TOP_LEFT
const PropertyWindowPlacementSet cdk.Property = "window-placement-set"
Whether "window-placement" should be used to determine the location of the contents with respect to the scrollbars. Otherwise, the "gtk-scrolled-window-placement" setting is used. Flags: Read / Write Default value: FALSE
const PropertyWindowPosition cdk.Property = "window-position"
The initial position of the window. Flags: Read / Write Default value: GTK_WIN_POS_NONE
const PropertyWindowType = cdk.PropertyWindowType
The type of the window. Flags: Read / Write / Construct Only Default value: GTK_WINDOW_TOPLEVEL
const PropertyWrap cdk.Property = "wrap"
If set, wrap lines if the text becomes too wide. Flags: Read / Write Default value: FALSE
const PropertyWrapMode cdk.Property = "wrap-mode"
If line wrapping is on (see the “wrap” property) this controls how the line wrapping is done. The default is PANGO_WRAP_WORD, which means wrap on word boundaries. Flags: Read / Write Default value: PANGO_WRAP_WORD
const PropertyXAlign cdk.Property = "x-align"
Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned. Flags: Read / Write Allowed values: [0,1] Default value: 0.5
const PropertyXPad cdk.Property = "x-pad"
The amount of space to add on the left and right of the widget, in pixels. Flags: Read / Write Allowed values: >= 0 Default value: 0
const PropertyXScale cdk.Property = "x-scale"
If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all. Flags: Read / Write Allowed values: [0,1] Default value: 1
const PropertyYAlign cdk.Property = "y-align"
Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned. Flags: Read / Write Allowed values: [0,1] Default value: 0.5
const PropertyYPad cdk.Property = "y-pad"
The amount of space to add on the top and bottom of the widget, in pixels. Flags: Read / Write Allowed values: >= 0 Default value: 0
const PropertyYScale cdk.Property = "y-scale"
If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all. Flags: Read / Write Allowed values: [0,1] Default value: 1
const ScrollbarDrawHandle = "scrollbar-draw-handler"
const ScrollbarEventHandle = "scrollbar-event-handler"
const ScrollbarResizeHandle = "scrollbar-resize-handler"
const ScrolledViewportDrawHandle = "scrolled-viewport-draw-handler"
const ScrolledViewportEventHandle = "scrolled-viewport-event-handler"
const ScrolledViewportGainedFocusHandle = "scrolled-viewport-gained-focus-handler"
const ScrolledViewportInvalidateHandle = "scrolled-viewport-invalidate-handler"
const ScrolledViewportLostFocusHandle = "scrolled-viewport-lost-focus-handler"
const ScrolledViewportResizeHandle = "scrolled-viewport-resize-handler"
const ScrolledViewportWindowFocusHandle = "scrolled-viewport-window-focus-handler"
const SeparatorDrawHandle = "separator-draw-handle"
const SignalAccelActivate cdk.Signal = "accel-activate"
The accel-activate signal is an implementation detail of AccelGroup and not meant to be used by applications.
const SignalAccelChanged cdk.Signal = "accel-changed"
The accel-changed signal is emitted when a CAccelGroupEntry is added to or removed from the accel group. Widgets like AccelLabel which display an associated accelerator should connect to this signal, and rebuild their visual representation if the accel_closure is theirs. Listener function arguments:
keyval int the accelerator keyval modifier cdk.ModMask the modifier combination of the accelerator accelClosure GClosure the GClosure of the accelerator
const SignalAccelClosuresChanged cdk.Signal = "accel-closures-changed"
const SignalActionActivate cdk.Signal = "activate"
The "activate" signal is emitted when the action is activated.
const SignalActivate cdk.Signal = "activate"
const SignalActivateCurrentLink cdk.Signal = "activate-current-link"
A keybinding signal which gets emitted when the user activates a link in the label. Applications may also emit the signal with g_signal_emit_by_name if they need to control activation of URIs programmatically. The default bindings for this signal are all forms of the Enter key.
const SignalActivateDefault cdk.Signal = "activate-default"
The ::activate-default signal is a which gets emitted when the user activates the default widget of window .
const SignalActivateFocus cdk.Signal = "activate-focus"
The ::activate-focus signal is a which gets emitted when the user activates the currently focused widget of window .
const SignalActivateLink cdk.Signal = "activate-link"
The signal which gets emitted to activate a URI. Applications may connect to it to override the default behaviour, which is to call ShowUri.
const SignalAdd cdk.Signal = "add"
Listener function arguments:
widget Widget
const SignalAdjustBounds cdk.Signal = "adjust-bounds"
Listener function arguments:
arg1 float64
const SignalButtonPressEvent cdk.Signal = "button-press-event"
The ::button-press-event signal will be emitted when a button (typically from a mouse) is pressed. To receive this signal, the Window associated to the widget needs to enable the GDK_BUTTON_PRESS_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalButtonReleaseEvent cdk.Signal = "button-release-event"
The ::button-release-event signal will be emitted when a button (typically from a mouse) is released. To receive this signal, the Window associated to the widget needs to enable the GDK_BUTTON_RELEASE_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalCanActivateAccel cdk.Signal = "can-activate-accel"
Determines whether an accelerator that activates the signal identified by signal_id can currently be activated. This signal is present to allow applications and derived widgets to override the default Widget handling for determining whether an accelerator can be activated.
const SignalChangeValue cdk.Signal = "change-value"
The ::change-value signal is emitted when a scroll action is performed on a range. It allows an application to determine the type of scroll event that occurred and the resultant new value. The application can handle the event itself and return TRUE to prevent further processing. Or, by returning FALSE, it can pass the event to other handlers until the default CTK handler is reached. The value parameter is unrounded. An application that overrides the ::change-value signal is responsible for clamping the value to the desired number of decimal digits; the default CTK handler clamps the value based on “round_digits”. It is not possible to use delayed update policies in an overridden ::change-value handler.
const SignalChanged cdk.Signal = "changed"
const SignalChangedText cdk.Signal = "changed"
The ::changed signal is emitted at the end of a single user-visible operation on the contents of the Editable. E.g., a paste operation that replaces the contents of the selection will cause only one signal emission (even though it is implemented by first deleting the selection, then inserting the new content, and may cause multiple ::notify::text signals to be emitted).
const SignalCheckResize cdk.Signal = "check-resize"
const SignalChildNotify cdk.Signal = "child-notify"
The ::child-notify signal is emitted for each changed on an object. The signal's detail holds the property name. Listener function arguments:
pspec GParamSpec the GParamSpec of the changed child property
const SignalClampPage cdk.Signal = "clamp-page"
const SignalClicked cdk.Signal = "clicked"
Emitted when the button has been activated (pressed and released).
const SignalClientEvent cdk.Signal = "client-event"
The ::client-event will be emitted when the widget 's window receives a message (via a ClientMessage event) from another application.
const SignalClose cdk.Signal = "close"
The ::close signal is a which gets emitted when the user uses a keybinding to close the dialog. The default binding for this signal is the Escape key.
const SignalCompositedChanged cdk.Signal = "composited-changed"
The ::composited-changed signal is emitted when the composited status of widget s screen changes. See ScreenIsComposited.
const SignalConfigure cdk.Signal = "configure"
const SignalConfigureEvent cdk.Signal = "configure-event"
The ::configure-event signal will be emitted when the size, position or stacking of the widget 's window has changed. To receive this signal, the Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.
const SignalConnectProxy cdk.Signal = "connect-proxy"
The ::connect-proxy signal is emitted after connecting a proxy to an action in the group. Note that the proxy may have been connected to a different action before. This is intended for simple customizations for which a custom action class would be too clumsy, e.g. showing tooltips for menuitems in the statusbar. UIManager proxies the signal and provides global notification just before any action is connected to a proxy, which is probably more convenient to use. Listener function arguments:
action Action the action proxy Widget the proxy
const SignalCopyClipboard cdk.Signal = "copy-clipboard"
The ::copy-clipboard signal is a which gets emitted to copy the selection to the clipboard. The default binding for this signal is Ctrl-c.
const SignalDamageEvent cdk.Signal = "damage-event"
Emitted when a redirected window belonging to widget gets drawn into. The region/area members of the event shows what area of the redirected drawable was drawn into.
const SignalDeleteEvent cdk.Signal = "delete-event"
The ::delete-event signal is emitted if a user requests that a toplevel window is closed. The default handler for this signal destroys the window. Connecting HideOnDelete to this signal will cause the window to be hidden instead, so that it can later be shown again without reconstructing it.
const SignalDeleteText cdk.Signal = "delete-text"
This signal is emitted when text is deleted from the widget by the user. The default handler for this signal will normally be responsible for deleting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission, it is possible to modify the range of deleted text, or prevent it from being deleted entirely. The start_pos and end_pos parameters are interpreted as for DeleteText. Listener function arguments:
startPos int the starting position endPos int the end position
const SignalDestroyEvent cdk.Signal = "destroy-event"
The ::destroy-event signal is emitted when a Window is destroyed. You rarely get this signal, because most widgets disconnect themselves from their window before they destroy it, so no widget owns the window at destroy time. To receive this signal, the Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.
const SignalDirectionChanged cdk.Signal = "direction-changed"
The ::direction-changed signal is emitted when the text direction of a widget changes. Listener function arguments:
previousDirection TextDirection the previous text direction of widget
const SignalDisconnectProxy cdk.Signal = "disconnect-proxy"
The ::disconnect-proxy signal is emitted after disconnecting a proxy from an action in the group. UIManager proxies the signal and provides global notification just before any action is connected to a proxy, which is probably more convenient to use. Listener function arguments:
action Action the action proxy Widget the proxy
const SignalDragBegin cdk.Signal = "drag-begin"
The ::drag-begin signal is emitted on the drag source when a drag is started. A typical reason to connect to this signal is to set up a custom drag icon with DragSourceSetIcon. Note that some widgets set up a drag icon in the default handler of this signal, so you may have to use g_signal_connect_after to override what the default handler did. Listener function arguments:
dragContext DragContext the drag context
const SignalDragDataDelete cdk.Signal = "drag-data-delete"
The ::drag-data-delete signal is emitted on the drag source when a drag with the action GDK_ACTION_MOVE is successfully completed. The signal handler is responsible for deleting the data that has been dropped. What "delete" means depends on the context of the drag operation. Listener function arguments:
dragContext DragContext the drag context
const SignalDragDataGet cdk.Signal = "drag-data-get"
The ::drag-data-get signal is emitted on the drag source when the drop site requests the data which is dragged. It is the responsibility of the signal handler to fill data with the data in the format which is indicated by info . See SelectionDataSet and SelectionDataSetText. Listener function arguments:
dragContext DragContext the drag context data SelectionData the GtkSelectionData to be filled with the dragged data info int the info that has been registered with the target in the GtkTargetList time int the timestamp at which the data was requested
const SignalDragDataReceived cdk.Signal = "drag-data-received"
The ::drag-data-received signal is emitted on the drop site when the dragged data has been received. If the data was received in order to determine whether the drop will be accepted, the handler is expected to call DragStatus and not finish the drag. If the data was received in response to a drag-drop signal (and this is the last target to be received), the handler for this signal is expected to process the received data and then call DragFinish, setting the success parameter depending on whether the data was processed successfully. The handler may inspect and modify drag_context->action before calling DragFinish, e.g. to implement GDK_ACTION_ASK as shown in the following example: Listener function arguments:
dragContext DragContext the drag context x int where the drop happened y int where the drop happened data SelectionData the received data info int the info that has been registered with the target in the GtkTargetList time int the timestamp at which the data was received
const SignalDragDrop cdk.Signal = "drag-drop"
The ::drag-drop signal is emitted on the drop site when the user drops the data onto the widget. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler must ensure that DragFinish is called to let the source know that the drop is done. The call to DragFinish can be done either directly or in a drag-data-received handler which gets triggered by calling DragGetData to receive the data for one or more of the supported targets.
const SignalDragEnd cdk.Signal = "drag-end"
The ::drag-end signal is emitted on the drag source when a drag is finished. A typical reason to connect to this signal is to undo things done in drag-begin. Listener function arguments:
dragContext DragContext the drag context
const SignalDragFailed cdk.Signal = "drag-failed"
The ::drag-failed signal is emitted on the drag source when a drag has failed. The signal handler may hook custom code to handle a failed DND operation based on the type of error, it returns TRUE is the failure has been already handled (not showing the default "drag operation failed" animation), otherwise it returns FALSE.
const SignalDragLeave cdk.Signal = "drag-leave"
The ::drag-leave signal is emitted on the drop site when the cursor leaves the widget. A typical reason to connect to this signal is to undo things done in drag-motion, e.g. undo highlighting with DragUnhighlight Listener function arguments:
dragContext DragContext the drag context time int the timestamp of the motion event
const SignalDragMotion cdk.Signal = "drag-motion"
The drag-motion signal is emitted on the drop site when the user moves the cursor over the widget during a drag. The signal handler must determine whether the cursor position is in a drop zone or not. If it is not in a drop zone, it returns FALSE and no further processing is necessary. Otherwise, the handler returns TRUE. In this case, the handler is responsible for providing the necessary information for displaying feedback to the user, by calling DragStatus. If the decision whether the drop will be accepted or rejected can't be made based solely on the cursor position and the type of the data, the handler may inspect the dragged data by calling DragGetData and defer the DragStatus call to the drag-data-received handler. Note that you cannot not pass GTK_DEST_DEFAULT_DROP, GTK_DEST_DEFAULT_MOTION or GTK_DEST_DEFAULT_ALL to DragDestSet when using the drag-motion signal that way. Also note that there is no drag-enter signal. The drag receiver has to keep track of whether he has received any drag-motion signals since the last drag-leave and if not, treat the drag-motion signal as an "enter" signal. Upon an "enter", the handler will typically highlight the drop site with DragHighlight.
const SignalEnter cdk.Signal = "enter"
Emitted when the pointer enters the button.
const SignalEnterNotifyEvent cdk.Signal = "enter-notify-event"
The ::enter-notify-event will be emitted when the pointer enters the widget 's window. To receive this signal, the Window associated to the widget needs to enable the GDK_ENTER_NOTIFY_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalEvent cdk.Signal = "event"
The CTK main loop will emit three signals for each GDK event delivered to a widget: one generic ::event signal, another, more specific, signal that matches the type of event delivered (e.g. key-press-event) and finally a generic event-after signal.
const SignalEventAfter cdk.Signal = "event-after"
After the emission of the event signal and (optionally) the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values. Listener function arguments:
event Event the GdkEvent which triggered this signal
const SignalExposeEvent cdk.Signal = "expose-event"
The ::expose-event signal is emitted when an area of a previously obscured Window is made visible and needs to be redrawn. GTK_NO_WINDOW widgets will get a synthesized event from their parent widget. To receive this signal, the Window associated to the widget needs to enable the GDK_EXPOSURE_MASK mask. Note that the ::expose-event signal has been replaced by a ::draw signal in CTK 3. The CTK 3 migration guide for hints on how to port from ::expose-event to ::draw.
const SignalFocus cdk.Signal = "focus"
const SignalFocusChanged cdk.Signal = "focus-changed"
Listener function arguments:
widget Widget
const SignalFocusInEvent cdk.Signal = "focus-in-event"
The ::focus-in-event signal will be emitted when the keyboard focus enters the widget 's window. To receive this signal, the Window associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask.
const SignalFocusOutEvent cdk.Signal = "focus-out-event"
The ::focus-out-event signal will be emitted when the keyboard focus leaves the widget 's window. To receive this signal, the Window associated to the widget needs to enable the GDK_FOCUS_CHANGE_MASK mask.
const SignalFrameEvent cdk.Signal = "frame-event"
const SignalGetThemeRequest = "get-theme-request"
const SignalGrabBrokenEvent cdk.Signal = "grab-broken-event"
Emitted when a pointer or keyboard grab on a window belonging to widget gets broken. On X11, this happens when the grab window becomes unviewable (i.e. it or one of its ancestors is unmapped), or if the same application grabs the pointer or keyboard again.
const SignalGrabFocus cdk.Signal = "grab-focus"
const SignalGrabNotify cdk.Signal = "grab-notify"
The ::grab-notify signal is emitted when a widget becomes shadowed by a CTK grab (not a pointer or keyboard grab) on another widget, or when it becomes unshadowed due to a grab being removed. A widget is shadowed by a GrabAdd when the topmost grab widget in the grab stack of its window group is not its ancestor. Listener function arguments:
wasGrabbed bool FALSE if the widget becomes shadowed, TRUE if it becomes unshadowed
const SignalHide cdk.Signal = "hide"
const SignalHierarchyChanged cdk.Signal = "hierarchy-changed"
The ::hierarchy-changed signal is emitted when the anchored state of a widget changes. A widget is anchored when its toplevel ancestor is a Window. This signal is emitted when a widget changes from un-anchored to anchored or vice-versa.
const SignalInsertText cdk.Signal = "insert-text"
This signal is emitted when text is inserted into the widget by the user. The default handler for this signal will normally be responsible for inserting the text, so by connecting to this signal and then stopping the signal with g_signal_stop_emission, it is possible to modify the inserted text, or prevent it from being inserted entirely. Listener function arguments:
newText string the new text to insert newTextLength int the length of the new text, in bytes, or -1 if new_text is nul-terminated position interface{} the position, in characters, at which to insert the new text. this is an in-out parameter. After the signal emission is finished, it should point after the newly inserted text.
const SignalKeyPressEvent cdk.Signal = "key-press-event"
The ::key-press-event signal is emitted when a key is pressed. To receive this signal, the Window associated to the widget needs to enable the GDK_KEY_PRESS_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalKeyReleaseEvent cdk.Signal = "key-release-event"
The ::key-release-event signal is emitted when a key is pressed. To receive this signal, the Window associated to the widget needs to enable the GDK_KEY_RELEASE_MASK mask. This signal will be sent to the grab widget if there is one.
Gets emitted if keyboard navigation fails. See KeynavFailed for details.
const SignalKeysChanged cdk.Signal = "keys-changed"
The ::keys-changed signal gets emitted when the set of accelerators or mnemonics that are associated with window changes.
const SignalLeave cdk.Signal = "leave"
Emitted when the pointer leaves the button.
const SignalLeaveNotifyEvent cdk.Signal = "leave-notify-event"
The ::leave-notify-event will be emitted when the pointer leaves the widget 's window. To receive this signal, the Window associated to the widget needs to enable the GDK_LEAVE_NOTIFY_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalMap cdk.Signal = "map"
const SignalMapEvent cdk.Signal = "map-event"
The ::map-event signal will be emitted when the widget 's window is mapped. A window is mapped when it becomes visible on the screen. To receive this signal, the Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.
const SignalMnemonicActivate cdk.Signal = "mnemonic-activate"
const SignalMotionNotifyEvent cdk.Signal = "motion-notify-event"
The ::motion-notify-event signal is emitted when the pointer moves over the widget's Window. To receive this signal, the Window associated to the widget needs to enable the GDK_POINTER_MOTION_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalMoveCursor cdk.Signal = "move-cursor"
The ::move-cursor signal is a which gets emitted when the user initiates a cursor movement. If the cursor is not visible in entry , this signal causes the viewport to be moved instead. Applications should not connect to it, but may emit it with g_signal_emit_by_name if they need to control the cursor programmatically. The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here. Listener function arguments:
step MovementStep the granularity of the move, as a GtkMovementStep count int the number of step units to move extendSelection bool TRUE if the move should extend the selection
const SignalMoveFocus cdk.Signal = "move-focus"
Listener function arguments:
direction DirectionType
const SignalMoveFocusOut cdk.Signal = "move-focus-out"
Listener function arguments:
arg1 DirectionType
const SignalMoveSlider cdk.Signal = "move-slider"
Virtual function that moves the slider. Used for keybindings. Listener function arguments:
step ScrollType how to move the slider
const SignalNoExposeEvent cdk.Signal = "no-expose-event"
The ::no-expose-event will be emitted when the widget 's window is drawn as a copy of another Drawable (with DrawDrawable or WindowCopyArea) which was completely unobscured. If the source window was partially obscured EventExpose events will be generated for those areas.
const SignalParentSet cdk.Signal = "parent-set"
The ::parent-set signal is emitted when a new parent has been set on a widget.
const SignalPopCompositeChild cdk.Signal = "pop-composite-child"
const SignalPopulatePopup cdk.Signal = "populate-popup"
The ::populate-popup signal gets emitted before showing the context menu of the label. Note that only selectable labels have context menus. If you need to add items to the context menu, connect to this signal and append your menuitems to the menu . Listener function arguments:
menu Menu the menu that is being populated
const SignalPopupMenu cdk.Signal = "popup-menu"
This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the Entry widget creates a menu with clipboard commands. See the section called Implement Widget::popup_menu for an example of how to use this signal.
const SignalPostActivate cdk.Signal = "post-activate"
The ::post-activate signal is emitted just after the action in the action_group is activated This is intended for UIManager to proxy the signal and provide global notification just after any action is activated. Listener function arguments:
action Action the action
const SignalPreActivate cdk.Signal = "pre-activate"
The ::pre-activate signal is emitted just before the action in the action_group is activated This is intended for UIManager to proxy the signal and provide global notification just before any action is activated. Listener function arguments:
action Action the action
const SignalPressed cdk.Signal = "pressed"
Emitted when the button is pressed.
const SignalPropertyNotifyEvent cdk.Signal = "property-notify-event"
The ::property-notify-event signal will be emitted when a property on the widget 's window has been changed or deleted. To receive this signal, the Window associated to the widget needs to enable the GDK_PROPERTY_CHANGE_MASK mask.
const SignalProximityInEvent cdk.Signal = "proximity-in-event"
To receive this signal the Window associated to the widget needs to enable the GDK_PROXIMITY_IN_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalProximityOutEvent cdk.Signal = "proximity-out-event"
To receive this signal the Window associated to the widget needs to enable the GDK_PROXIMITY_OUT_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalPushCompositeChild cdk.Signal = "push-composite-child"
const SignalQueryTooltip cdk.Signal = "query-tooltip"
Emitted when has-tooltip is TRUE and the gtk-tooltip-timeout has expired with the cursor hovering "above" widget ; or emitted when widget got focus in keyboard mode. Using the given coordinates, the signal handler should determine whether a tooltip should be shown for widget . If this is the case TRUE should be returned, FALSE otherwise. Note that if keyboard_mode is TRUE, the values of x and y are undefined and should not be used. The signal handler is free to manipulate tooltip with the therefore destined function calls.
const SignalRadioActionChanged cdk.Signal = "changed"
The ::changed signal is emitted on every member of a radio group when the active member is changed. The signal gets emitted after the ::activate signals for the previous and current active members.
const SignalRealize cdk.Signal = "realize"
const SignalReleased cdk.Signal = "released"
Emitted when the button is released.
const SignalRemove cdk.Signal = "remove"
Listener function arguments:
widget Widget
const SignalResponse cdk.Signal = "response"
Emitted when an action widget is clicked, the dialog receives a delete event, or the application programmer calls Response. On a delete event, the response ID is GTK_RESPONSE_DELETE_EVENT. Otherwise, it depends on which action widget was clicked. Listener function arguments:
responseId int the response ID
const SignalScreenChanged cdk.Signal = "screen-changed"
The ::screen-changed signal gets emitted when the screen of a widget has changed. Listener function arguments:
previousScreen Screen the previous screen, or NULL if the widget was not associated with a screen before.
const SignalScrollChild cdk.Signal = "scroll-child"
The ::scroll-child signal is a which gets emitted when a keybinding that scrolls is pressed. The horizontal or vertical adjustment is updated which triggers a signal that the scrolled windows child may listen to and scroll itself.
const SignalScrollEvent cdk.Signal = "scroll-event"
The ::scroll-event signal is emitted when a button in the 4 to 7 range is pressed. Wheel mice are usually configured to generate button press events for buttons 4 and 5 when the wheel is turned. To receive this signal, the Window associated to the widget needs to enable the GDK_BUTTON_PRESS_MASK mask. This signal will be sent to the grab widget if there is one.
const SignalSelectionClearEvent cdk.Signal = "selection-clear-event"
The ::selection-clear-event signal will be emitted when the the widget 's window has lost ownership of a selection.
const SignalSelectionGet cdk.Signal = "selection-get"
Listener function arguments:
data SelectionData info int time int
const SignalSelectionNotifyEvent cdk.Signal = "selection-notify-event"
const SignalSelectionReceived cdk.Signal = "selection-received"
Listener function arguments:
data SelectionData time int
const SignalSelectionRequestEvent cdk.Signal = "selection-request-event"
The ::selection-request-event signal will be emitted when another client requests ownership of the selection owned by the widget 's window.
const SignalSetCtkAlternativeButtonOrder cdk.Signal = "ctk-alternative-button-order"
const SignalSetCtkAlternativeSortArrows cdk.Signal = "ctk-alternative-sort-arrows"
const SignalSetCtkColorPalette cdk.Signal = "ctk-color-palette"
const SignalSetCtkColorScheme cdk.Signal = "ctk-color-scheme"
const SignalSetCtkCursorBlink cdk.Signal = "ctk-cursor-blink"
const SignalSetCtkCursorBlinkTime cdk.Signal = "ctk-cursor-blink-time"
const SignalSetCtkCursorBlinkTimeout cdk.Signal = "ctk-cursor-blink-timeout"
const SignalSetCtkCursorThemeName cdk.Signal = "ctk-cursor-theme-name"
const SignalSetCtkDndDragThreshold cdk.Signal = "ctk-dnd-drag-threshold"
const SignalSetCtkDoubleClickDistance cdk.Signal = "ctk-double-click-distance"
const SignalSetCtkDoubleClickTime cdk.Signal = "ctk-double-click-time"
const SignalSetCtkEnableAccels cdk.Signal = "ctk-enable-accels"
const SignalSetCtkEnableMnemonics cdk.Signal = "ctk-enable-mnemonics"
const SignalSetCtkEnableTooltips cdk.Signal = "ctk-enable-tooltips"
const SignalSetCtkEntryPasswordHintTimeout cdk.Signal = "ctk-entry-password-hint-timeout"
const SignalSetCtkEntrySelectOnFocus cdk.Signal = "ctk-entry-select-on-focus"
const SignalSetCtkErrorBell cdk.Signal = "ctk-error-bell"
const SignalSetCtkFallbackIconTheme cdk.Signal = "ctk-fallback-icon-theme"
const SignalSetCtkFileChooserBackend cdk.Signal = "ctk-file-chooser-backend"
const SignalSetCtkIconThemeName cdk.Signal = "ctk-icon-theme-name"
const SignalSetCtkImModule cdk.Signal = "ctk-im-module"
const SignalSetCtkImPreeditStyle cdk.Signal = "ctk-im-preedit-style"
const SignalSetCtkImStatusStyle cdk.Signal = "ctk-im-status-style"
const SignalSetCtkKeyThemeName cdk.Signal = "ctk-key-theme-name"
const SignalSetCtkLabelSelectOnFocus cdk.Signal = "ctk-label-select-on-focus"
const SignalSetCtkMenuBarAccel cdk.Signal = "ctk-menu-bar-accel"
const SignalSetCtkMenuBarPopupDelay cdk.Signal = "ctk-menu-bar-popup-delay"
const SignalSetCtkMenuImages cdk.Signal = "ctk-menu-images"
const SignalSetCtkMenuPopdownDelay cdk.Signal = "ctk-menu-popdown-delay"
const SignalSetCtkMenuPopupDelay cdk.Signal = "ctk-menu-popup-delay"
const SignalSetCtkModules cdk.Signal = "ctk-modules"
const SignalSetCtkPrimaryButtonWarpsSlider cdk.Signal = "ctk-primary-button-warps-slider"
const SignalSetCtkScrolledWindowPlacement cdk.Signal = "ctk-scrolled-window-placement"
const SignalSetCtkShowInputMethodMenu cdk.Signal = "ctk-show-input-method-menu"
const SignalSetCtkShowUnicodeMenu cdk.Signal = "ctk-show-unicode-menu"
const SignalSetCtkThemeName cdk.Signal = "ctk-theme-name"
const SignalSetCtkTimeoutExpand cdk.Signal = "ctk-timeout-expand"
const SignalSetCtkTimeoutInitial cdk.Signal = "ctk-timeout-initial"
const SignalSetCtkTimeoutRepeat cdk.Signal = "ctk-timeout-repeat"
const SignalSetCtkToolbarStyle cdk.Signal = "ctk-toolbar-style"
const SignalSetCtkTooltipBrowseModeTimeout cdk.Signal = "ctk-tooltip-browse-mode-timeout"
const SignalSetCtkTooltipBrowseTimeout cdk.Signal = "ctk-tooltip-browse-timeout"
const SignalSetCtkTooltipTimeout cdk.Signal = "ctk-tooltip-timeout"
const SignalSetCtkTouchscreenMode cdk.Signal = "ctk-touchscreen-mode"
const SignalSetFocusChild cdk.Signal = "set-focus-child"
Listener function arguments:
widget Widget
const SignalSetLower cdk.Signal = "set-lower"
const SignalSetPageIncrement cdk.Signal = "set-page-increment"
const SignalSetPageSize cdk.Signal = "set-page-size"
const SignalSetScrollAdjustments cdk.Signal = "set-scroll-adjustments"
Set the scroll adjustments for the viewport. Usually scrolled containers like ScrolledWindow will emit this signal to connect two instances of Scrollbar to the scroll directions of the Viewport. Listener function arguments:
vertical Adjustment the vertical GtkAdjustment arg2 Adjustment
const SignalSetStepIncrement cdk.Signal = "set-step-increment"
const SignalSetUpper cdk.Signal = "set-upper"
const SignalSetValue cdk.Signal = "set-value"
const SignalShow cdk.Signal = "show"
const SignalShowHelp cdk.Signal = "show-help"
const SignalSizeAllocate cdk.Signal = "size-allocate"
Listener function arguments:
allocation Rectangle
const SignalSizeRequest cdk.Signal = "size-request"
Listener function arguments:
requisition Requisition
const SignalStateChanged cdk.Signal = "state-changed"
The ::state-changed signal is emitted when the widget state changes. See GetState. Listener function arguments:
state StateType the previous state
const SignalStyleSet cdk.Signal = "style-set"
The ::style-set signal is emitted when a new style has been set on a widget. Note that style-modifying functions like ModifyBase also cause this signal to be emitted. Listener function arguments:
previousStyle Style the previous style, or NULL if the widget just got its initial style.
const SignalToggled cdk.Signal = "toggled"
const SignalUnmap cdk.Signal = "unmap"
const SignalUnmapEvent cdk.Signal = "unmap-event"
The ::unmap-event signal will be emitted when the widget 's window is unmapped. A window is unmapped when it becomes invisible on the screen. To receive this signal, the Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.
const SignalUnrealize cdk.Signal = "unrealize"
const SignalValueChanged cdk.Signal = "value-changed"
const SignalVisibilityNotifyEvent cdk.Signal = "visibility-notify-event"
The ::visibility-notify-event will be emitted when the widget 's window is obscured or unobscured. To receive this signal the Window associated to the widget needs to enable the GDK_VISIBILITY_NOTIFY_MASK mask.
const SignalWindowStateEvent cdk.Signal = "window-state-event"
The ::window-state-event will be emitted when the state of the toplevel window associated to the widget changes. To receive this signal the Window associated to the widget needs to enable the GDK_STRUCTURE_MASK mask. GDK will enable this mask automatically for all new windows.
const SpinnerDrawHandle = "spinner-draw-handler"
const SpinnerResizeHandle = "spinner-resize-handler"
const TextFieldDrawHandle = "text-field-draw-handler"
const TextFieldEventHandle = "text-field-event-handler"
const TextFieldGainedFocusHandle = "text-field-gained-focus-handler"
const TextFieldInvalidateHandle = "text-field-invalidate-handler"
const TextFieldLostFocusHandle = "text-field-lost-focus-handler"
const TextFieldResizeHandle = "text-field-resize-handler"
const TypeAccelGroup cdk.CTypeTag = "ctk-accel-group"
const TypeAccelMap cdk.CTypeTag = "ctk-accel-map"
const TypeAccelerator cdk.CTypeTag = "ctk-accelerator"
const TypeAction cdk.CTypeTag = "ctk-action"
const TypeActionGroup cdk.CTypeTag = "ctk-action-group"
CDK type-tag for ActionGroup objects
const TypeAdjustment cdk.CTypeTag = "ctk-adjustment"
const TypeAlignment cdk.CTypeTag = "ctk-alignment"
const TypeApplication cdk.CTypeTag = "ctk-application"
const TypeArrow cdk.CTypeTag = "ctk-arrow"
const TypeBin cdk.CTypeTag = "ctk-bin"
const TypeBox cdk.CTypeTag = "ctk-box"
const TypeBuilder cdk.CTypeTag = "ctk-builder"
const TypeButtonBox cdk.CTypeTag = "ctk-button-box"
const TypeContainer cdk.CTypeTag = "ctk-container"
const TypeDialog cdk.CTypeTag = "ctk-dialog"
const TypeEventBox cdk.CTypeTag = "ctk-event-box"
const TypeFakeWindow cdk.CTypeTag = "ctk-fake-window"
const TypeFrame cdk.CTypeTag = "ctk-frame"
const (
TypeHBox cdk.CTypeTag = "ctk-h-box"
)
const TypeHButtonBox cdk.CTypeTag = "ctk-h-button-box"
const (
TypeHScrollbar cdk.CTypeTag = "ctk-h-scrollbar"
)
const TypeMisc cdk.CTypeTag = "ctk-misc"
const TypeObject cdk.CTypeTag = "ctk-object"
const TypeRadioAction cdk.CTypeTag = "ctk-radio-action"
const TypeRange cdk.CTypeTag = "ctk-range"
const TypeScrollbar cdk.CTypeTag = "ctk-scrollbar"
const (
TypeScrolledViewport cdk.CTypeTag = "ctk-scrolled-viewport"
)
const TypeSeparator cdk.CTypeTag = "ctk-separator"
const TypeSettings cdk.CTypeTag = "ctk-settings"
const TypeSpinner cdk.CTypeTag = "ctk-spinner"
const TypeStyle cdk.CTypeTag = "ctk-style"
const TypeToggleAction cdk.CTypeTag = "ctk-toggle-action"
const (
TypeVBox cdk.CTypeTag = "ctk-v-box"
)
const TypeVButtonBox cdk.CTypeTag = "ctk-v-button-box"
const (
TypeVScrollbar cdk.CTypeTag = "ctk-v-scrollbar"
)
const TypeViewport cdk.CTypeTag = "ctk-viewport"
const TypeWindow cdk.CTypeTag = "ctk-window"
const ViewportDrawHandle = "viewport-draw-handler"
const ViewportInvalidateHandle = "viewport-invalidate-handler"
const ViewportResizeHandle = "viewport-resize-handler"
const WidgetActivateHandle = "widget-activate-handler"
const WidgetEnterHandle = "widget-enter-handler"
const WidgetGainedFocusHandle = "widget-gained-focus-handler"
const WidgetLeaveHandle = "widget-leave-handler"
const WidgetLostFocusHandle = "widget-lost-focus-handler"
const WidgetTooltipWindowEventHandle = "widget-tooltip-window-event-handler"
const WindowDisplayFocusHandle = "window-display-focus-handler"
const WindowDrawHandle = "window-draw-handler"
const WindowEventHandle = "window-event-handler"
const WindowInvalidateHandle = "window-invalidate-handler"
const WindowResizeHandle = "window-resize-handler"
Variables ¶
var ( ScrollbarMonoTheme paint.ThemeName = "scrollbar-mono" ScrollbarColorTheme paint.ThemeName = "scrollbar-color" )
var ApplicationPluginInitFnName = "CtkInit"
var ApplicationPluginShutdownFnName = "CtkShutdown"
var ApplicationPluginStartupFnName = "CtkStartup"
var DefaultStyles string
var ErrFallthrough = fmt.Errorf("fallthrough")
Functions ¶
func AddStockItems ¶
func AddStockItems(items ...*StockItem)
Registers each of the stock items in items. If an item already exists with the same stock ID as one of the items, the old item gets replaced.
func BuilderRegisterConstructor ¶
func BuilderRegisterConstructor(tag cdk.TypeTag, fn BuilderTranslationFn)
func ValidStockId ¶ added in v0.3.0
ValidStockId returns TRUE if the given StockID has been registered.
func WidgetDescend ¶ added in v0.4.7
func WidgetDescend(widget Widget, fn WidgetIteratorFn) (rv cenums.EventFlag)
func WidgetRecurseInvalidate ¶ added in v0.4.7
func WidgetRecurseInvalidate(widget Widget)
func WidgetRecurseSetWindow ¶ added in v0.4.7
func WithAppWindow ¶ added in v0.5.14
func WithArgvApplicationSignalStartup ¶ added in v0.4.0
func WithArgvApplicationSignalStartup(startupFn ApplicationStartupFn) cdk.SignalListenerFn
func WithArgvNoneSignal ¶ added in v0.4.0
func WithArgvNoneSignal(fn func(), eventFlag cenums.EventFlag) cdk.SignalListenerFn
func WithArgvNoneWithFlagsSignal ¶ added in v0.4.0
func WithArgvNoneWithFlagsSignal(fn func() cenums.EventFlag) cdk.SignalListenerFn
func WithArgvSignalEvent ¶ added in v0.4.2
func WithArgvSignalEvent(fn SignalEventFn) cdk.SignalListenerFn
func WithFakeWindow ¶
func WithFakeWindow(fn WithFakeWindowFn) func()
func WithFakeWindowOptions ¶
func WithFakeWindowOptions(w, h int, theme paint.Theme, fn WithFakeWindowFn) func()
Types ¶
type AccelGroup ¶
type AccelGroup interface { Object Init() (already bool) AccelConnect(accelKey cdk.Key, accelMods cdk.ModMask, accelFlags enums.AccelFlags, handle string, closure enums.GClosure) (id uuid.UUID) ConnectByPath(accelPath string, handle string, closure enums.GClosure) AccelGroupActivate(keyval cdk.Key, modifier cdk.ModMask) (activated bool) AccelDisconnect(id uuid.UUID) (removed bool) DisconnectKey(accelKey cdk.Key, accelMods cdk.ModMask) (removed bool) Query(accelKey cdk.Key, accelMods cdk.ModMask) (entries []*CAccelGroupEntry) Activate(accelKey cdk.Key, accelMods cdk.ModMask) (value bool) LockGroup() UnlockGroup() GetIsLocked() (locked bool) GetModifierMask() (value cdk.ModMask) Find(findFunc AccelGroupFindFunc, data interface{}) (key *AccelKey) AcceleratorValid(keyval cdk.Key, modifiers cdk.ModMask) (valid bool) AcceleratorParse(accelerator string) (acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) AcceleratorName(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string) AcceleratorGetLabel(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string) AcceleratorSetDefaultModMask(defaultModMask cdk.ModMask) AcceleratorGetDefaultModMask() (value int) }
AccelGroup Hierarchy:
Object +- AccelGroup
An AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Window (with Window.AddAccelGroup). Usually you won't need to create a AccelGroup directly; instead CTK automatically sets up the accelerators for your menus in the item factory's AccelGroup. Note that accelerators are different from mnemonics. Accelerators are shortcuts for activating a menu item; they appear alongside the menu item they're a shortcut for. For example "Ctrl+Q" might appear alongside the "Quit" menu item. Mnemonics are shortcuts for GUI elements such as text entries or buttons; they appear as underlined characters. Menu items can have both accelerators and mnemonics, of course. See: Label.NewWithMnemonic()
func MakeAccelGroup ¶
func MakeAccelGroup() AccelGroup
MakeAccelGroup is used by the Buildable system to construct a new AccelGroup.
func NewAccelGroup ¶
func NewAccelGroup() (value AccelGroup)
NewAccelGroup is the constructor for new AccelGroup instances.
type AccelGroupFindFunc ¶
type AccelGroups ¶ added in v0.3.0
type AccelGroups interface { Object AddAccelGroup(object Object, accelGroup AccelGroup) RemoveAccelGroup(object Object, accelGroup AccelGroup) Activate(object Object, accelKey cdk.Key, accelMods cdk.ModMask) (value bool) FromObject(object Object) (groups []AccelGroup) }
func NewAccelGroups ¶ added in v0.3.0
func NewAccelGroups() (groups AccelGroups)
type AccelKey ¶
type AccelKey interface { GetKey() cdk.Key GetMods() cdk.ModMask GetFlags() enums.AccelFlags Match(key cdk.Key, mods cdk.ModMask) (match bool) String() (key string) }
func NewAccelKey ¶ added in v0.3.2
type AccelMap ¶ added in v0.3.0
type AccelMap interface { Object Init() (already bool) AddEntry(accelPath string, accelKey cdk.Key, accelMods cdk.ModMask) LookupEntry(accelPath string) (accelerator Accelerator, ok bool) ChangeEntry(accelPath string, accelKey cdk.Key, accelMods cdk.ModMask, replace bool) (ok bool) Load(fileName string) LoadFromString(accelMap string) Save(fileName string) SaveToString() (accelMap string) LockPath(accelPath string) UnlockPath(accelPath string) }
AccelMap Hierarchy:
Object +- AccelMap
The AccelMap is the global accelerator mapping object. There is only one AccelMap instance for any given Display.
func GetAccelMap ¶ added in v0.3.0
func GetAccelMap() AccelMap
GetAccelMap is the getter for the current Application AccelMap singleton. Returns nil if there is no Application present for the current thread.
type Accelerator ¶ added in v0.3.0
type Accelerator interface { Object Init() (already bool) LockAccel() UnlockAccel() IsLocked() (locked bool) Path() (path string) Key() (key cdk.Key) Mods() (mods cdk.ModMask) Match(key cdk.Key, mods cdk.ModMask) (match bool) Settings() (path string, key cdk.Key, mods cdk.ModMask) Configure(key cdk.Key, mods cdk.ModMask) UnsetKeyMods() }
func NewAccelerator ¶ added in v0.3.0
func NewDefaultAccelerator ¶ added in v0.3.0
func NewDefaultAccelerator(path string) Accelerator
type Action ¶ added in v0.3.0
type Action interface { Object Init() (already bool) GetName() (value string) IsSensitive() (value bool) GetSensitive() (value bool) SetSensitive(sensitive bool) IsVisible() (value bool) GetVisible() (value bool) SetVisible(visible bool) Activate() CreateMenuItem() (value Widget) CreateToolItem() (value Widget) CreateMenu() (value Widget) GetProxies() (value []interface{}) ConnectAccelerator() DisconnectAccelerator() UnblockActivate() GetAlwaysShowImage() (value bool) SetAlwaysShowImage(alwaysShow bool) GetAccelPath() (value string) SetAccelPath(accelPath string) GetAccelClosure() (value enums.GClosure) SetAccelGroup(accelGroup AccelGroup) SetLabel(label string) GetLabel() (value string) SetShortLabel(shortLabel string) GetShortLabel() (value string) SetTooltip(tooltip string) GetTooltip() (value string) SetStockId(stockId StockID) GetStockId() (value StockID) SetIcon(icon rune) GetIcon() (value rune) SetIconName(iconName string) GetIconName() (value string) SetVisibleHorizontal(visibleHorizontal bool) GetVisibleHorizontal() (value bool) SetVisibleVertical(visibleVertical bool) GetVisibleVertical() (value bool) SetIsImportant(isImportant bool) GetIsImportant() (value bool) }
Action Hierarchy:
Object +- Action +- ToggleAction +- RecentAction
Actions represent operations that the user can perform, along with some information how it should be presented in the interface. Each action provides methods to create icons, menu items and toolbar items representing itself. As well as the callback that is called when the action gets activated, the following also gets associated with the action: a name (not translated, for path lookup) a label (translated, for display) an accelerator whether label indicates a stock id a tooltip (optional, translated) a toolbar label (optional, shorter than label) The action will also have some state information: visible (shown/hidden) sensitive (enabled/disabled) Apart from regular actions, there are toggle actions, which can be toggled between two states and radio actions, of which only one in a group can be in the "active" state. Other actions can be implemented as Action subclasses. Each action can have one or more proxy menu item, toolbar button or other proxy widgets. Proxies mirror the state of the action (text label, tooltip, icon, visible, sensitive, etc), and should change when the action's state changes. When the proxy is activated, it should activate its action.
type ActionEntry ¶ added in v0.3.0
type ActionGroup ¶ added in v0.3.0
type ActionGroup interface { Object Init() (already bool) GetName() (value string) GetSensitive() (value bool) SetSensitive(sensitive bool) GetVisible() (value bool) SetVisible(visible bool) GetAction(actionName string) (value Action) ListActions() (value []Action) AddAction(action Action) AddActionWithAccel(action Action, accelerator string) RemoveAction(action Action) AddActions(entries []ActionEntry, nEntries int, userData interface{}) AddActionsFull(entries []ActionEntry, nEntries int, userData interface{}, destroy GDestroyNotify) AddToggleActions(entries []ToggleActionEntry, nEntries int, userData interface{}) AddToggleActionsFull(entries []ToggleActionEntry, nEntries int, userData interface{}, destroy GDestroyNotify) AddRadioActions(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, userData interface{}) AddRadioActionsFull(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, userData interface{}, destroy GDestroyNotify) SetTranslateFunc(fn TranslateFunc, data interface{}, notify GDestroyNotify) SetTranslationDomain(domain string) TranslateString(string string) (value string) }
ActionGroup Hierarchy:
Object +- ActionGroup
func MakeActionGroup ¶ added in v0.3.0
func MakeActionGroup() ActionGroup
MakeActionGroup is used by the Buildable system to construct a new ActionGroup.
func NewActionGroup ¶ added in v0.3.0
func NewActionGroup(name string) (value ActionGroup)
NewActionGroup is the constructor for new ActionGroup instances.
type Adjustment ¶
type Adjustment interface { Object GetValue() (value int) SetValue(value int) ClampPage(upper, lower int) Changed() cenums.EventFlag ValueChanged() cenums.EventFlag Settings() (value, lower, upper, stepIncrement, pageIncrement, pageSize int) Configure(value, lower, upper, stepIncrement, pageIncrement, pageSize int) GetLower() (value int) SetLower(lower int) GetUpper() (upper int) SetUpper(upper int) GetStepIncrement() (stepIncrement int) SetStepIncrement(stepIncrement int) GetPageIncrement() (pageIncrement int) SetPageIncrement(pageIncrement int) GetPageSize() (pageSize int) SetPageSize(pageSize int) Moot() bool ShowByPolicy(policy enums.PolicyType) bool }
Adjustment Hierarchy:
Object +- Adjustment
The Adjustment CTK object is a means of managing the state of multiple widgets concurrently. By sharing the same Adjustment instance, one or more widgets can ensure that all related User Interface elements are reflecting the same values and constraints. The Adjustment consists of an integer value, with an upper and lower bounds, and pagination rendering features
func MakeAdjustment ¶
func MakeAdjustment() Adjustment
MakeAdjustment is used by the Buildable system to construct a new Adjustment.
func NewAdjustment ¶
func NewAdjustment(value, lower, upper, stepIncrement, pageIncrement, pageSize int) Adjustment
NewAdjustment is the constructor for new Adjustment instances.
type Alignable ¶
type Alignable interface { SetAlignment(xAlign float64, yAlign float64) GetAlignment() (xAlign float64, yAlign float64) }
An Alignable Widget is one that implements the SetAlignment and GetAlignment methods for adjusting the positioning of the Widget. The Misc and Alignment types are the primary ones implementing this interface.
type Alignment ¶
type Alignment interface { Bin Buildable Get() (xAlign, yAlign, xScale, yScale float64) Set(xAlign, yAlign, xScale, yScale float64) GetPadding() (paddingTop, paddingBottom, paddingLeft, paddingRight int) SetPadding(paddingTop, paddingBottom, paddingLeft, paddingRight int) }
Alignment Hierarchy:
Object +- Widget +- Container +- Bin +- Alignment
The Alignment widget controls the alignment and size of its child widget. It has four settings: xScale, yScale, xAlign, and yAlign. The scale settings are used to specify how much the child widget should expand to fill the space allocated to the Alignment. The values can range from 0 (meaning the child doesn't expand at all) to 1 (meaning the child expands to fill all of the available space). The alignment settings are used to place the child widget within the available area. The values range from 0 (top or left) to 1 (bottom or right). Of course, if the scale settings are both set to 1, the alignment settings have no effect. New Alignment instances can be created using NewAlignment.
func MakeAlignment ¶
func MakeAlignment() Alignment
MakeAlignment is used by the Buildable system to construct a new Alignment with default settings of: xAlign=0.5, yAlign=1.0, xScale=0.5, yScale=1.0
func NewAlignment ¶
NewAlignment is the constructor for new Alignment instances.
Parameters:
xAlign the horizontal alignment of the child widget, from 0 (left) to 1 (right) yAlign the vertical alignment of the child widget, from 0 (top) to 1 (bottom) xScale the amount that the child widget expands horizontally to fill up unused space, from 0 to 1. A value of 0 indicates that the child widget should never expand. A value of 1 indicates that the child widget will expand to fill all of the space allocated for the Alignment yScale the amount that the child widget expands vertically to fill up unused space, from 0 to 1. The values are similar to xScale
type AppFn ¶ added in v0.4.0
type AppFn func(app Application)
type Application ¶ added in v0.4.0
type Application interface { cdk.Application AccelMap() (accelMap AccelMap) AccelGroup() (accelGroup AccelGroup) }
Application Hierarchy:
Object +- Application
An Application is the CTK replacement for cdk.Application.
func ArgvApplicationSignalStartup ¶ added in v0.4.0
func ArgvApplicationSignalStartup(argv ...interface{}) (app Application, display cdk.Display, ctx context.Context, cancel context.CancelFunc, wg *sync.WaitGroup, ok bool)
func NewApplication ¶ added in v0.4.0
func NewApplication(name, usage, description, version, tag, title, ttyPath string) (app Application)
func NewApplicationFromPlugin ¶ added in v0.4.0
func NewApplicationFromPlugin(path string) (app Application, err error)
NewApplicationFromPlugin constructs an Application from a Go plugin shared object file. This file must export a number of variables and functions, as follows:
Variables --------- CtkName the name of the program binary CtkUsage brief summary of what the program is used for CtkDescription long description of the program CtkVersion the version number to report CtkTag a machine tag name, ie: "tld.domain.name" ([-.a-zA-Z]) CtkTitle the user-visible name of the program CtkTtyPath the unix tty device path for display capture Functions --------- // early initialization stage Init(Application) // UI initialization stage Startup(Application, cdk.Display, context.Context, context.CancelFunc, *sync.WaitGroup) cenums.EventFlag // Application shutdown stage (display destroyed, logging still works, stdin/stdout restored) Shutdown() cenums.EventFlag
Two things must happen in the Startup function for CTK to correctly start rendering the user-interface. The first is to ensure that the function returns EVENT_PASS for the SignalStartup to complete. Returning EVENT_STOP will abort the entire startup process and immediately result in system shutdown. The second thing that must happen for startup to complete is that Application.NotifyStartupComplete must be called before returning EVENT_PASS. This will notify the Application and enable the Display to begin rending to the Screen instance.
type ApplicationInitFn ¶ added in v0.4.0
type ApplicationInitFn = func(app Application)
type ApplicationShutdownFn ¶ added in v0.4.0
type ApplicationStartupFn ¶ added in v0.4.0
type Arrow ¶
type Arrow interface { Misc Buildable GetArrowType() (arrow enums.ArrowType) SetArrowType(arrow enums.ArrowType) GetArrowRune() (r rune, width int) GetArrowRuneSet() (ars paint.ArrowRuneSet) SetArrowRuneSet(ars paint.ArrowRuneSet) }
Arrow Hierarchy:
Object +- Widget +- Misc +- Arrow
The Arrow Widget should be used to draw simple arrows that need to point in one of the four cardinal directions (up, down, left, or right). The style of the arrow can be one of shadow in, shadow out, etched in, or etched out. Note that these directions and style types may be amended in versions of CTK to come. Arrow will fill any space allotted to it, but since it is inherited from Misc, it can be padded and/or aligned, to fill exactly the space the programmer desires. Arrows are created with a call to NewArrow. The direction or style of an arrow can be changed after creation by using Set.
type Bin ¶
Bin Hierarchy:
Object +- Widget +- Container +- Bin +- Window +- Alignment +- Frame +- Button +- Item +- ComboBox +- EventBox +- Expander +- HandleBox +- ToolItem +- ScrolledWindow +- Viewport
The Bin Widget is a Container with just one child. It is not very useful itself, but it is useful for deriving subclasses, since it provides common code needed for handling a single child widget. Many CTK widgets are subclasses of Bin, including Window, Button, Frame or ScrolledWindow.
type Box ¶
type Box interface { Container Buildable Orientable GetHomogeneous() (value bool) SetHomogeneous(homogeneous bool) GetSpacing() (value int) SetSpacing(spacing int) PackStart(child Widget, expand, fill bool, padding int) PackEnd(child Widget, expand, fill bool, padding int) ReorderChild(child Widget, position int) QueryChildPacking(child Widget) (expand bool, fill bool, padding int, packType enums.PackType) SetChildPacking(child Widget, expand bool, fill bool, padding int, packType enums.PackType) }
Box Hierarchy:
Object +- Widget +- Container +- Box +- ButtonBox +- VBox +- HBox
The Box Widget is a Container for organizing one or more child Widgets. A Box displays either a horizontal row or vertical column of the visible children contained within.
func MakeBox ¶
func MakeBox() (box Box)
MakeBox is used by the Buildable system to construct a new Box with default settings of: horizontal orientation, dynamically sized (not homogeneous) and no extra spacing.
func NewBox ¶
func NewBox(orientation cenums.Orientation, homogeneous bool, spacing int) Box
NewBox is the constructor for new Box instances.
Parameters:
orientation the orientation of the Box vertically or horizontally homogeneous whether each child receives an equal size allocation or not spacing extra spacing to include between children
type Buildable ¶
type Buildable interface { Widget ListProperties() (known []cdk.Property) InitWithProperties(properties map[cdk.Property]string) (already bool, err error) Build(builder Builder, element *CBuilderElement) error SetProperties(properties map[cdk.Property]string) (err error) SetPropertyFromString(property cdk.Property, value string) (err error) Connect(signal cdk.Signal, handle string, c cdk.SignalListenerFn, data ...interface{}) }
type Builder ¶
type Builder interface { cdk.Object Init() (already bool) BuildableTypeTags() map[string]cdk.TypeTag LookupNamedSignalHandler(name string) (fn cdk.SignalListenerFn) AddNamedSignalHandler(name string, fn cdk.SignalListenerFn) GetWidget(name string) (w interface{}) GetWidgetsBuiltByType(tag cdk.CTypeTag) (widgets []interface{}) ParsePacking(packing *CBuilderElement) (expand, fill bool, padding int, packType enums.PackType) LoadFromString(raw string) (topElement *CBuilderElement, err error) Build(element *CBuilderElement) (newObject interface{}) }
func NewBuilder ¶
func NewBuilder() (builder Builder)
type BuilderElement ¶
type BuilderNode ¶
type BuilderNode struct { XMLName xml.Name Attrs []xml.Attr `xml:"-"` Content []byte `xml:",innerxml"` Nodes []BuilderNode `xml:",any"` }
func (*BuilderNode) UnmarshalXML ¶
func (n *BuilderNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
type BuilderTranslationFn ¶
type Button ¶
type Button interface { Bin Activatable Alignable Buildable Sensitive Activate() (value bool) Clicked() cenums.EventFlag GetRelief() (value enums.ReliefStyle) SetRelief(newStyle enums.ReliefStyle) GetLabel() (value string) SetLabel(label string) GetUseStock() (value bool) SetUseStock(useStock bool) GetUseUnderline() (enabled bool) SetUseUnderline(enabled bool) GetUseMarkup() (enabled bool) SetUseMarkup(enabled bool) GetFocusOnClick() (value bool) SetFocusOnClick(focusOnClick bool) GetAlignment() (xAlign float64, yAlign float64) SetAlignment(xAlign float64, yAlign float64) GetImage() (value Widget, ok bool) SetImage(image Widget) GetImagePosition() (value enums.PositionType) SetImagePosition(position enums.PositionType) GetPressed() bool SetPressed(pressed bool) CancelEvent() }
Button Hierarchy:
Object +- Widget +- Container +- Bin +- Button +- ToggleButton +- ColorButton +- FontButton +- LinkButton +- OptionMenu +- ScaleButton
The Button Widget is a Bin Container that represents a focusable Drawable Widget that is Sensitive to event interactions.
func MakeButton ¶
func MakeButton() Button
MakeButton is used by the Buildable system to construct a new Button with a default label that is empty.
func NewButton ¶
func NewButton() Button
NewButton is a constructor for new Button instances without a label Widget.
func NewButtonFromStock ¶
NewButtonFromStock creates a NewButtonWithLabel containing the text from a stock item. If stock_id is unknown, it will be treated as a mnemonic label (as for NewWithMnemonic).
Parameters:
stockId the name of the stock item
func NewButtonWithLabel ¶
NewButtonWithLabel will construct a NewButton with a NewLabel, pre-configured for a centered placement within the new Button instance, taking care to avoid focus complications and default event handling.
Parameters:
label the text of the button
func NewButtonWithMnemonic ¶
NewButtonWithMnemonic creates a NewButtonWithLabel. If the characters in the label are preceded by an underscore, they are underlined. If you need a literal underscore character in a label, use '__' (two underscores). The first underlined character represents a keyboard accelerator called a mnemonic. Pressing Alt and that key activates the button.
Parameters:
label the text of the button
func NewButtonWithWidget ¶
NewButtonWithWidget creates a NewButton with the given Widget as the Button's child.
type ButtonBox ¶
type ButtonBox interface { Box Buildable Orientable GetLayout() (value enums.ButtonBoxStyle) SetLayout(layoutStyle enums.ButtonBoxStyle) GetChildPrimary(w Widget) (isPrimary bool) GetChildSecondary(w Widget) (isSecondary bool) SetChildSecondary(child Widget, isSecondary bool) SetChildPacking(child Widget, expand bool, fill bool, padding int, packType enums.PackType) }
ButtonBox Hierarchy:
Object +- Widget +- Container +- Box +- ButtonBox +- HButtonBox +- VButtonBox
The ButtonBox Widget is a Box Container that has a primary and a secondary grouping of its Widget children. These are typically used by the Dialog Widget to implement the action buttons.
func MakeButtonBox ¶
func MakeButtonBox() ButtonBox
MakeButtonBox is used by the Buildable system to construct a new horizontal homogeneous ButtonBox with no spacing between the Widget children.
func NewButtonBox ¶
func NewButtonBox(orientation cenums.Orientation, homogeneous bool, spacing int) ButtonBox
NewButtonBox is a constructor for new Box instances.
type CAccelGroup ¶
type CAccelGroup struct { CObject // contains filtered or unexported fields }
The CAccelGroup structure implements the AccelGroup interface and is exported to facilitate type embedding with custom implementations. No member variables are exported as the interface methods are the only intended means of interacting with AccelGroup objects.
func (*CAccelGroup) AccelConnect ¶
func (a *CAccelGroup) AccelConnect(accelKey cdk.Key, accelMods cdk.ModMask, accelFlags enums.AccelFlags, handle string, closure enums.GClosure) (id uuid.UUID)
AccelConnect installs an accelerator in this group. When accel_group is being activated in response to a call to AccelGroupsActivate, closure will be invoked if the accel_key and accel_mods from AccelGroupsActivate match those of this connection. The signature used for the closure is that of AccelGroupActivate. Note that, due to implementation details, a single closure can only be connected to one accelerator group.
Parameters:
accelKey key value of the accelerator accelMods modifier combination of the accelerator accelFlags a flag mask to configure this accelerator handle string to tag the closure for later use closure code to be executed upon accelerator activation
func (*CAccelGroup) AccelDisconnect ¶
func (a *CAccelGroup) AccelDisconnect(id uuid.UUID) (removed bool)
AccelDisconnect removes an accelerator previously installed through Connect.
Parameters:
accelGroup the accelerator group to remove an accelerator from closure handle for the closure code to remove
func (*CAccelGroup) AccelGroupActivate ¶
AccelGroupActivate queries for entries matching the given keyval and modifier, then calling Closure functions for each entry found until one of them returns TRUE or the list of entries is exhausted, returning FALSE.
Parameters:
accelKey key value of the accelerator accelMods modifier combination of the accelerator
func (*CAccelGroup) AcceleratorGetDefaultModMask ¶
func (a *CAccelGroup) AcceleratorGetDefaultModMask() (value int)
AcceleratorGetDefaultModMask returns the value set by AcceleratorSetDefaultModMask.
Parameters:
returns the default accelerator modifier mask
func (*CAccelGroup) AcceleratorGetLabel ¶
func (a *CAccelGroup) AcceleratorGetLabel(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string)
AcceleratorGetLable converts an accelerator keyval and modifier mask into a string which can be used to represent the accelerator to the user.
Parameters:
acceleratorKey accelerator keyval acceleratorMods accelerator modifier mask
func (*CAccelGroup) AcceleratorName ¶
func (a *CAccelGroup) AcceleratorName(acceleratorKey cdk.Key, acceleratorMods cdk.ModMask) (value string)
AcceleratorName converts an accelerator keyval and modifier mask into a string parseable by AcceleratorParse. For example, if you pass in cdk.KeySmallQ and CONTROL_MASK, this function returns "<Control>q". If you need to display accelerators in the user interface, see AcceleratorGetLabel.
Parameters:
acceleratorKey accelerator keyval acceleratorMods accelerator modifier mask
func (*CAccelGroup) AcceleratorParse ¶
func (a *CAccelGroup) AcceleratorParse(accelerator string) (acceleratorKey cdk.Key, acceleratorMods cdk.ModMask)
AcceleratorParse parses a string representing an accelerator. The format looks like "<Control>a" or "<Shift><Alt>F1". The parser is fairly liberal and allows lower or upper case, and also abbreviations such as "<Ctl>" and "<Ctrl>". Key names are parsed using KeyvalFromName. For character keys the name is not the symbol, but the lowercase name, e.g. one would use "<Ctrl>minus" instead of "<Ctrl>-". If the parse fails, accelerator_key and accelerator_mods will be set to 0 (zero).
Parameters:
accelerator string representing an accelerator
func (*CAccelGroup) AcceleratorSetDefaultModMask ¶
func (a *CAccelGroup) AcceleratorSetDefaultModMask(defaultModMask cdk.ModMask)
AcceleratorSetDefaultMask updates the modifiers that will be considered significant for keyboard accelerators. The default mod mask is CONTROL_MASK | SHIFT_MASK | MOD1_MASK | SUPER_MASK | HYPER_MASK | META_MASK, that is, Control, Shift, Alt, Super, Hyper and Meta. Other modifiers will by default be ignored by AccelGroup. You must include at least the three modifiers Control, Shift and Alt in any value you pass to this function. The default mod mask should be changed on application startup, before using any accelerator groups.
Parameters:
defaultModMask accelerator modifier mask
func (*CAccelGroup) AcceleratorValid ¶
AcceleratorValid determines whether a given keyval and modifier mask constitute a valid keyboard accelerator.
Parameters:
keyval a GDK keyval modifiers modifier mask
func (*CAccelGroup) Activate ¶
Activate finds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.
Parameters:
accelKey accelerator keyval from a key event accelMods keyboard state mask from a key event
func (*CAccelGroup) ConnectByPath ¶
func (a *CAccelGroup) ConnectByPath(accelPath string, handle string, closure enums.GClosure)
ConnectByPath installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see AccelMapAddEntry). When accel_group is being activated in response to a call to AccelGroupsActivate, closure will be invoked if the accel_key and accel_mods from AccelGroupsActivate match the key and modifiers for the path.
Parameters:
accelPath path used for determining key and modifiers. handle string to tag the closure for later use closure code to be executed upon accelerator activation
func (*CAccelGroup) DisconnectKey ¶
DisconnectKey removes an accelerator previously installed through Connect.
Parameters:
accelKey key value of the accelerator accelMods modifier combination of the accelerator
func (*CAccelGroup) Find ¶
func (a *CAccelGroup) Find(findFunc AccelGroupFindFunc, data interface{}) (key *AccelKey)
Find finds the first entry in an accelerator group for which find_func returns TRUE and returns its AccelKey.
Parameters:
findFunc a function to filter the entries of accel_group data arbitrary data to pass to find_func
func (*CAccelGroup) GetIsLocked ¶
func (a *CAccelGroup) GetIsLocked() (locked bool)
GetIsLocked checks if the group is locked or not. Locks are added and removed using LockGroup and UnlockGroup.
func (*CAccelGroup) GetModifierMask ¶
func (a *CAccelGroup) GetModifierMask() (value cdk.ModMask)
GetModifierMask returns a cdk.ModMask representing the mask for this accel_group. For example, CONTROL_MASK, SHIFT_MASK, etc.
func (*CAccelGroup) Init ¶
func (a *CAccelGroup) Init() (already bool)
Init initializes an AccelGroup object. This must be called at least once to set up the necessary defaults and allocate any memory structures. Calling this more than once is safe though unnecessary. Only the first call will result in any effect upon the AccelGroup instance. Init is used in the NewAccelGroup constructor and only necessary when implementing a derivative AccelGroup type.
func (*CAccelGroup) LockGroup ¶ added in v0.3.0
func (a *CAccelGroup) LockGroup()
LockGroup locks the given accelerator group. Locking an accelerator group prevents the accelerators contained within it to be changed during runtime. Refer o AccelMap.ChangeEntry() about runtime accelerator changes. If called more than once, accel_group remains locked until UnlockGroup has been called an equivalent number of times.
func (*CAccelGroup) Query ¶
func (a *CAccelGroup) Query(accelKey cdk.Key, accelMods cdk.ModMask) (entries []*CAccelGroupEntry)
Query searches an accelerator group for all entries matching accel_key and accel_mods.
Parameters:
accelGroup the accelerator group to query accelKey key value of the accelerator accelMods modifier combination of the accelerator
func (*CAccelGroup) UnlockGroup ¶ added in v0.3.0
func (a *CAccelGroup) UnlockGroup()
UnlockGroup releases the last call to LockGroup.
type CAccelGroupEntry ¶ added in v0.3.0
func NewCAccelGroupEntry ¶ added in v0.3.2
func NewCAccelGroupEntry(accelerator AccelKey, handle string, closure enums.GClosure) (age *CAccelGroupEntry)
type CAccelGroups ¶ added in v0.3.0
type CAccelGroups struct {
CObject
}
func (*CAccelGroups) AddAccelGroup ¶ added in v0.3.0
func (a *CAccelGroups) AddAccelGroup(object Object, accelGroup AccelGroup)
func (*CAccelGroups) FromObject ¶ added in v0.3.0
func (a *CAccelGroups) FromObject(object Object) (groups []AccelGroup)
func (*CAccelGroups) RemoveAccelGroup ¶ added in v0.3.0
func (a *CAccelGroups) RemoveAccelGroup(object Object, accelGroup AccelGroup)
type CAccelKey ¶ added in v0.3.0
func (*CAccelKey) GetFlags ¶ added in v0.3.0
func (a *CAccelKey) GetFlags() enums.AccelFlags
type CAccelMap ¶ added in v0.3.0
type CAccelMap struct { CObject // contains filtered or unexported fields }
The CAccelMap structure implements the AccelMap interface and is exported to facilitate type embedding with custom implementations. No member variables are exported as the interface methods are the only intended means of interacting with AccelMap objects.
func (*CAccelMap) AddEntry ¶ added in v0.3.0
AddEntry registers a new accelerator with the global accelerator map. This method should only be called once per accel_path with the canonical accel_key and accel_mods for this path. To change the accelerator during runtime programmatically, use AccelMap.ChangeEntry(). The accelerator path must consist of "<WINDOWTYPE>/Category1/Category2/.../Action", where <WINDOWTYPE> should be a unique application-specific identifier, that corresponds to the kind of window the accelerator is being used in, e.g. "Gimp-Image", "Abiword-Document" or "Gnumeric-Settings". The Category1/.../Action portion is most appropriately chosen by the action the accelerator triggers, i.e. for accelerators on menu items, choose the item's menu path, e.g. "File/Save As", "Image/View/Zoom" or "Edit/Select All". So a full valid accelerator path may look like: "<Gimp-Toolbox>/File/Dialogs/Tool Options...".
Parameters
accel_path valid accelerator path accel_key the accelerator key accel_mods the accelerator modifiers
func (*CAccelMap) ChangeEntry ¶ added in v0.3.0
func (a *CAccelMap) ChangeEntry(accelPath string, accelKey cdk.Key, accelMods cdk.ModMask, replace bool) (ok bool)
ChangeEntry updates the accel_key and accel_mods currently associated with accel_path. Due to conflicts with other accelerators, a change may not always be possible, replace indicates whether other accelerators may be deleted to resolve such conflicts. A change will only occur if all conflicts could be resolved (which might not be the case if conflicting accelerators are locked). Successful changes are indicated by a TRUE return value.
Parameters
accel_path a valid accelerator path accel_key the new accelerator key accel_mods the new accelerator modifiers replace TRUE if other accelerators may be deleted upon conflicts
func (*CAccelMap) Init ¶ added in v0.3.0
Init initializes an AccelMap object. This must be called at least once to set up the necessary defaults and allocate any memory structures. Calling this more than once is safe though unnecessary. Only the first call will result in any effect upon the AccelMap instance. Init is used in the NewAccelMap constructor and only necessary when implementing a derivative AccelMap type.
func (*CAccelMap) Load ¶ added in v0.3.0
Load parses a file previously saved with AccelMap.Save() for accelerator specifications, and propagates them accordingly.
Parameters
file_name a file containing accelerator specifications
func (*CAccelMap) LoadFromString ¶ added in v0.3.0
func (*CAccelMap) LockPath ¶ added in v0.3.0
LockPath locks the given accelerator path. If the accelerator map doesn't yet contain an entry for accel_path, a new one is created.
Locking an accelerator path prevents its accelerator from being changed during runtime. A locked accelerator path can be unlocked by AccelMap.UnlockPath(). Refer to AccelMap.ChangeEntry() for information about runtime accelerator changes.
If called more than once, accel_path remains locked until AccelMap.UnlockPath() has been called an equivalent number of times.
Note that locking of individual accelerator paths is independent of locking the AccelGroup containing them. For runtime accelerator changes to be possible both the accelerator path and its AccelGroup have to be unlocked.
Parameters
accel_path a valid accelerator path
func (*CAccelMap) LookupEntry ¶ added in v0.3.0
func (a *CAccelMap) LookupEntry(accelPath string) (accelerator Accelerator, ok bool)
LookupEntry returns the accelerator entry for accel_path.
Parameters
accel_path a valid accelerator path
func (*CAccelMap) Save ¶ added in v0.3.0
Save stores the current accelerator specifications (accelerator path, key and modifiers) to file_name. The file is written in a format suitable to be read back in by AccelMap.Load().
Parameters
file_name the name of the file to contain accelerator specifications
func (*CAccelMap) SaveToString ¶ added in v0.3.0
func (*CAccelMap) UnlockPath ¶ added in v0.3.0
UnlockPath undoes the last call to AccelMap.LockPath() on this accel_path. Refer to AccelMap.LockPath() for information about accelerator path locking.
Parameters
accel_path a valid accelerator path
type CAccelerator ¶ added in v0.3.0
type CAccelerator struct { CObject // contains filtered or unexported fields }
func (*CAccelerator) Configure ¶ added in v0.3.0
func (a *CAccelerator) Configure(key cdk.Key, mods cdk.ModMask)
func (*CAccelerator) Init ¶ added in v0.3.0
func (a *CAccelerator) Init() (already bool)
func (*CAccelerator) IsLocked ¶ added in v0.3.0
func (a *CAccelerator) IsLocked() (locked bool)
func (*CAccelerator) Key ¶ added in v0.3.0
func (a *CAccelerator) Key() (key cdk.Key)
func (*CAccelerator) LockAccel ¶ added in v0.3.0
func (a *CAccelerator) LockAccel()
func (*CAccelerator) Mods ¶ added in v0.3.0
func (a *CAccelerator) Mods() (mods cdk.ModMask)
func (*CAccelerator) Path ¶ added in v0.3.0
func (a *CAccelerator) Path() (path string)
func (*CAccelerator) UnlockAccel ¶ added in v0.3.0
func (a *CAccelerator) UnlockAccel()
func (*CAccelerator) UnsetKeyMods ¶ added in v0.3.0
func (a *CAccelerator) UnsetKeyMods()
type CAction ¶ added in v0.3.0
type CAction struct {
CObject
}
The CAction structure implements the Action interface and is exported to facilitate type embedding with custom implementations. No member variables are exported as the interface methods are the only intended means of interacting with Action objects
func (*CAction) Activate ¶ added in v0.3.0
func (a *CAction) Activate()
Emits the "activate" signal on the specified action, if it isn't insensitive. This gets called by the proxy widgets when they get activated. It can also be used to manually activate an action. Parameters:
action the action object
func (*CAction) ConnectAccelerator ¶ added in v0.3.0
func (a *CAction) ConnectAccelerator()
Installs the accelerator for action if action has an accel path and group. See SetAccelPath and SetAccelGroup Since multiple proxies may independently trigger the installation of the accelerator, the action counts the number of times this function has been called and doesn't remove the accelerator until DisconnectAccelerator has been called as many times.
func (*CAction) CreateMenu ¶ added in v0.3.0
If action provides a Menu widget as a submenu for the menu item or the toolbar item it creates, this function returns an instance of that menu. Returns:
the menu item provided by the action, or NULL. [transfer none]
func (*CAction) CreateMenuItem ¶ added in v0.3.0
Creates a menu item widget that proxies for the given action. Parameters:
action the action object
Returns:
a menu item connected to the action. [transfer none]
func (*CAction) CreateToolItem ¶ added in v0.3.0
Creates a toolbar item widget that proxies for the given action. Parameters:
action the action object
Returns:
a toolbar item connected to the action. [transfer none]
func (*CAction) DisconnectAccelerator ¶ added in v0.3.0
func (a *CAction) DisconnectAccelerator()
Undoes the effect of one call to ConnectAccelerator.
func (*CAction) GetAccelClosure ¶ added in v0.3.0
Returns the accel closure for this action. Parameters:
action the action object
Returns:
the accel closure for this action.
func (*CAction) GetAccelPath ¶ added in v0.3.0
Returns the accel path for this action. Parameters:
action the action object
Returns:
the accel path for this action, or NULL if none is set. The returned string is owned by CTK and must not be freed or modified.
func (*CAction) GetAlwaysShowImage ¶ added in v0.3.0
Returns whether action 's menu item proxies will ignore the “gtk-menu-images” setting and always show their image, if available. Returns:
TRUE if the menu item proxies will always show their image
func (*CAction) GetIconName ¶ added in v0.3.0
GetIconName returns the icon name of the action.
func (*CAction) GetIsImportant ¶ added in v0.3.0
GetIsImportant returns whether action is important or not.
func (*CAction) GetName ¶ added in v0.3.0
Returns the name of the action. Parameters:
action the action object
Returns:
the name of the action. The string belongs to CTK and should not be freed.
func (*CAction) GetProxies ¶ added in v0.3.0
func (a *CAction) GetProxies() (value []interface{})
Returns the proxy widgets for an action. See also WidgetGetAction. Parameters:
action the action object
Returns:
a GSList of proxy widgets. The list is owned by CTK and must not be modified. [element-type Widget][transfer none]
func (*CAction) GetSensitive ¶ added in v0.3.0
Returns whether the action itself is sensitive. Note that this doesn't necessarily mean effective sensitivity. See IsSensitive for that. Parameters:
action the action object
Returns:
TRUE if the action itself is sensitive.
func (*CAction) GetShortLabel ¶ added in v0.3.0
Gets the short label text of action . Returns:
the short label text.
func (*CAction) GetStockId ¶ added in v0.3.0
GetStockId returns the stock id of the action.
func (*CAction) GetTooltip ¶ added in v0.3.0
Gets the tooltip text of action . Returns:
the tooltip text
func (*CAction) GetVisible ¶ added in v0.3.0
Returns whether the action itself is visible. Note that this doesn't necessarily mean effective visibility. See IsSensitive for that. Parameters:
action the action object
Returns:
TRUE if the action itself is visible.
func (*CAction) GetVisibleHorizontal ¶ added in v0.3.0
GetVisibleHorizontal checks whether the action is visible when horizontal.
func (*CAction) GetVisibleVertical ¶ added in v0.3.0
GetVisibleVertical checks whether the action is visible when vertical.
func (*CAction) Init ¶ added in v0.3.0
Action object initialization. This must be called at least once to setup the necessary defaults and allocate any memory structures. Calling this more than once is safe though unnecessary. Only the first call will result in any effect upon the Action instance
func (*CAction) IsSensitive ¶ added in v0.3.0
Returns whether the action is effectively sensitive. Parameters:
action the action object
Returns:
TRUE if the action and its associated action group are both sensitive.
func (*CAction) IsVisible ¶ added in v0.3.0
Returns whether the action is effectively visible. Parameters:
action the action object
Returns:
TRUE if the action and its associated action group are both visible.
func (*CAction) SetAccelGroup ¶ added in v0.3.0
func (a *CAction) SetAccelGroup(accelGroup AccelGroup)
Sets the AccelGroup in which the accelerator for this action will be installed. Parameters:
action the action object accelGroup a AccelGroup or NULL.
func (*CAction) SetAccelPath ¶ added in v0.3.0
Sets the accel path for this action. All proxy widgets associated with the action will have this accel path, so that their accelerators are consistent. Parameters:
action the action object accelPath the accelerator path
func (*CAction) SetAlwaysShowImage ¶ added in v0.3.0
Sets whether action 's menu item proxies will ignore the “gtk-menu-images” setting and always show their image, if available. Use this if the menu item would be useless or hard to use without their image. Parameters:
alwaysShow TRUE if menuitem proxies should always show their image
func (*CAction) SetIcon ¶ added in v0.3.0
SetIcon updates the icon rune of the action.
Parameters:
icon the rune to set
func (*CAction) SetIconName ¶ added in v0.3.0
SetIconName updates the icon name on the action.
Parameters:
iconName the icon name to set
func (*CAction) SetIsImportant ¶ added in v0.3.0
SetIsImportant updates whether the action is important, this attribute is used primarily by toolbar items to decide whether to show a label or not.
Parameters:
isImportant TRUE to make the action important
func (*CAction) SetLabel ¶ added in v0.3.0
Sets the label of action . Parameters:
label the label text to set
func (*CAction) SetSensitive ¶ added in v0.3.0
Sets the ::sensitive property of the action to sensitive . Note that this doesn't necessarily mean effective sensitivity. See IsSensitive for that. Parameters:
action the action object sensitive TRUE to make the action sensitive
func (*CAction) SetShortLabel ¶ added in v0.3.0
Sets a shorter label text on action . Parameters:
shortLabel the label text to set
func (*CAction) SetStockId ¶ added in v0.3.0
SetStockId updates the stock id on the action.
Parameters:
stockId the stock id
func (*CAction) SetTooltip ¶ added in v0.3.0
Sets the tooltip text on action Parameters:
tooltip the tooltip text
func (*CAction) SetVisible ¶ added in v0.3.0
Sets the ::visible property of the action to visible . Note that this doesn't necessarily mean effective visibility. See IsVisible for that. Parameters:
action the action object visible TRUE to make the action visible
func (*CAction) SetVisibleHorizontal ¶ added in v0.3.0
SetVisibleHorizontal updates whether action is visible when horizontal.
Parameters:
visibleHorizontal whether the action is visible horizontally
func (*CAction) SetVisibleVertical ¶ added in v0.3.0
SetVisibleVertical updates whether action is visible when vertical.
Parameters:
visibleVertical whether the action is visible vertically
func (*CAction) UnblockActivate ¶ added in v0.3.0
func (a *CAction) UnblockActivate()
Reenable activation signals from the action
type CActionGroup ¶ added in v0.3.0
type CActionGroup struct {
CObject
}
The CActionGroup structure implements the ActionGroup interface and is exported to facilitate type embedding with custom implementations. No member variables are exported as the interface methods are the only intended means of interacting with ActionGroup objects.
func (*CActionGroup) AddAction ¶ added in v0.3.0
func (a *CActionGroup) AddAction(action Action)
Adds an action object to the action group. Note that this function does not set up the accel path of the action, which can lead to problems if a user tries to modify the accelerator of a menuitem associated with the action. Therefore you must either set the accel path yourself with ActionSetAccelPath, or use AddActionWithAccel (..., NULL). Parameters:
actionGroup the action group action an action
func (*CActionGroup) AddActionWithAccel ¶ added in v0.3.0
func (a *CActionGroup) AddActionWithAccel(action Action, accelerator string)
Adds an action object to the action group and sets up the accelerator. If accelerator is NULL, attempts to use the accelerator associated with the stock_id of the action. Accel paths are set to <Actions>/group-name/action-name. Parameters:
actionGroup the action group action the action to add accelerator the accelerator for the action, in
the format understood by AcceleratorParse, or "" for no accelerator, or NULL to use the stock accelerator.
func (*CActionGroup) AddActions ¶ added in v0.3.0
func (a *CActionGroup) AddActions(entries []ActionEntry, nEntries int, userData interface{})
This is a convenience function to create a number of actions and add them to the action group. The "activate" signals of the actions are connected to the callbacks and their accel paths are set to <Actions>/group-name/action-name. Parameters:
actionGroup the action group entries an array of action descriptions nEntries the number of entries userData data to pass to the action callbacks
func (*CActionGroup) AddActionsFull ¶ added in v0.3.0
func (a *CActionGroup) AddActionsFull(entries []ActionEntry, nEntries int, userData interface{}, destroy GDestroyNotify)
This variant of AddActions adds a GDestroyNotify callback for user_data . Parameters:
actionGroup the action group entries an array of action descriptions nEntries the number of entries userData data to pass to the action callbacks destroy destroy notification callback for user_data
func (*CActionGroup) AddRadioActions ¶ added in v0.3.0
func (a *CActionGroup) AddRadioActions(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, userData interface{})
This is a convenience routine to create a group of radio actions and add them to the action group. The "changed" signal of the first radio action is connected to the on_change callback and the accel paths of the actions are set to <Actions>/group-name/action-name. Parameters:
actionGroup the action group entries an array of radio action descriptions nEntries the number of entries value the value of the action to activate initially, or -1 if
no action should be activated
onChange the callback to connect to the changed signal userData data to pass to the action callbacks
func (*CActionGroup) AddRadioActionsFull ¶ added in v0.3.0
func (a *CActionGroup) AddRadioActionsFull(entries []RadioActionEntry, nEntries int, value int, onChange enums.GCallback, userData interface{}, destroy GDestroyNotify)
This variant of AddRadioActions adds a GDestroyNotify callback for user_data . Parameters:
actionGroup the action group entries an array of radio action descriptions nEntries the number of entries value the value of the action to activate initially, or -1 if
no action should be activated
onChange the callback to connect to the changed signal userData data to pass to the action callbacks destroy destroy notification callback for user_data
func (*CActionGroup) AddToggleActions ¶ added in v0.3.0
func (a *CActionGroup) AddToggleActions(entries []ToggleActionEntry, nEntries int, userData interface{})
This is a convenience function to create a number of toggle actions and add them to the action group. The "activate" signals of the actions are connected to the callbacks and their accel paths are set to <Actions>/group-name/action-name. Parameters:
actionGroup the action group entries an array of toggle action descriptions nEntries the number of entries userData data to pass to the action callbacks
func (*CActionGroup) AddToggleActionsFull ¶ added in v0.3.0
func (a *CActionGroup) AddToggleActionsFull(entries []ToggleActionEntry, nEntries int, userData interface{}, destroy GDestroyNotify)
This variant of AddToggleActions adds a GDestroyNotify callback for user_data . Parameters:
actionGroup the action group entries an array of toggle action descriptions nEntries the number of entries userData data to pass to the action callbacks destroy destroy notification callback for user_data
func (*CActionGroup) GetAction ¶ added in v0.3.0
func (a *CActionGroup) GetAction(actionName string) (value Action)
Looks up an action in the action group by name. Parameters:
actionGroup the action group actionName the name of the action
Returns:
the action, or NULL if no action by that name exists. [transfer none]
func (*CActionGroup) GetName ¶ added in v0.3.0
func (a *CActionGroup) GetName() (value string)
Gets the name of the action group. Parameters:
actionGroup the action group
Returns:
the name of the action group.
func (*CActionGroup) GetSensitive ¶ added in v0.3.0
func (a *CActionGroup) GetSensitive() (value bool)
Returns TRUE if the group is sensitive. The constituent actions can only be logically sensitive (see ActionIsSensitive) if they are sensitive (see ActionGetSensitive) and their group is sensitive. Parameters:
actionGroup the action group
Returns:
TRUE if the group is sensitive.
func (*CActionGroup) GetVisible ¶ added in v0.3.0
func (a *CActionGroup) GetVisible() (value bool)
Returns TRUE if the group is visible. The constituent actions can only be logically visible (see ActionIsVisible) if they are visible (see ActionGetVisible) and their group is visible. Parameters:
actionGroup the action group
Returns:
TRUE if the group is visible.
func (*CActionGroup) Init ¶ added in v0.3.0
func (a *CActionGroup) Init() (already bool)
Init initializes an ActionGroup object. This must be called at least once to set up the necessary defaults and allocate any memory structures. Calling this more than once is safe though unnecessary. Only the first call will result in any effect upon the ActionGroup instance. Init is used in the NewActionGroup constructor and only necessary when implementing a derivative ActionGroup type.
func (*CActionGroup) ListActions ¶ added in v0.3.0
func (a *CActionGroup) ListActions() (value []Action)
Lists the actions in the action group. Parameters:
actionGroup the action group
Returns:
an allocated list of the action objects in the action group. [element-type Action][transfer container]
func (*CActionGroup) RemoveAction ¶ added in v0.3.0
func (a *CActionGroup) RemoveAction(action Action)
Removes an action object from the action group. Parameters:
actionGroup the action group action an action
func (*CActionGroup) SetSensitive ¶ added in v0.3.0
func (a *CActionGroup) SetSensitive(sensitive bool)
Changes the sensitivity of action_group Parameters:
actionGroup the action group sensitive new sensitivity
func (*CActionGroup) SetTranslateFunc ¶ added in v0.3.0
func (a *CActionGroup) SetTranslateFunc(fn TranslateFunc, data interface{}, notify GDestroyNotify)
Sets a function to be used for translating the label and tooltip of ActionGroupEntrys added by AddActions. If you're using gettext, it is enough to set the translation domain with SetTranslationDomain. Parameters:
func a TranslateFunc data data to be passed to func
and notify
notify a GDestroyNotify function to be called when action_group
is destroyed and when the translation function is changed again
func (*CActionGroup) SetTranslationDomain ¶ added in v0.3.0
func (a *CActionGroup) SetTranslationDomain(domain string)
Sets the translation domain and uses g_dgettext for translating the label and tooltip of ActionEntrys added by AddActions. If you're not using gettext for localization, see SetTranslateFunc. Parameters:
domain the translation domain to use for g_dgettext calls
func (*CActionGroup) SetVisible ¶ added in v0.3.0
func (a *CActionGroup) SetVisible(visible bool)
Changes the visible of action_group . Parameters:
actionGroup the action group visible new visiblity
func (*CActionGroup) TranslateString ¶ added in v0.3.0
func (a *CActionGroup) TranslateString(string string) (value string)
Translates a string using the specified translate_func. This is mainly intended for language bindings. Parameters:
string a string
Returns:
the translation of string
type CAdjustment ¶
type CAdjustment struct {
CObject
}
The CAdjustment structure implements the Adjustment interface and is exported to facilitate type embedding with custom implementations. No member variables are exported as the interface methods are the only intended means of interacting with Adjustment objects.
func (*CAdjustment) Changed ¶
func (a *CAdjustment) Changed() cenums.EventFlag
Changed emits a changed signal. The changed signal reflects that one or more of the configurable aspects have changed, excluding the actual value of the Adjustment. See: ValueChanged()
func (*CAdjustment) ClampPage ¶
func (a *CAdjustment) ClampPage(upper, lower int)
ClampPage is a convenience method to set both the upper and lower bounds without emitting multiple changed signals. This method emits a clamp-page signal initially and if the listeners return an EVENT_PASS then the new upper and lower bounds are applied and a call to Changed() is made.
Locking: write