atk

package
v0.0.0-...-f05e200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2013 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package atk provides API definitions for accessing libatk-1.0-0.dll.

Index

Constants

This section is empty.

Variables

View Source
var (
	UtilGetType func() O.Type

	FocusTrackerInit func(init EventListenerInit)

	FocusTrackerNotify func(object *Object)

	NoOpObjectNew func(obj *O.Object) *Object

	NoOpObjectFactoryGetType func() O.Type

	NoOpObjectFactoryNew func() *ObjectFactory

	LayerGetType func() O.Type

	NoOpObjectGetType func() O.Type
)
View Source
var (
	MiscGetType func() O.Type

	MiscGetInstance func() *Misc

	MiscThreadsEnter func(m *Misc)
	MiscThreadsLeave func(m *Misc)
)
View Source
var (
	ActionGetType func() O.Type

	ActionDoAction         func(a *Action, i int) bool
	ActionGetDescription   func(a *Action, i int) string
	ActionGetKeybinding    func(a *Action, i int) string
	ActionGetLocalizedName func(a *Action, i int) string
	ActionGetNActions      func(a *Action) int
	ActionGetName          func(a *Action, i int) string
	ActionSetDescription   func(a *Action, i int, desc string) bool
)
View Source
var (
	AddFocusTracker func(focusTracker EventListener) uint

	AddGlobalEventListener func(listener O.SignalEmissionHook, eventType string) uint

	AddKeyEventListener func(listener KeySnoopFunc, data T.Gpointer) uint

	AttributeSetFree func(attribSet *AttributeSet)
)
View Source
var (
	ComponentGetType func() O.Type

	ComponentAddFocusHandler      func(c *Component, handler FocusHandler) uint
	ComponentContains             func(c *Component, x, y int, coordType CoordType) bool
	ComponentGetAlpha             func(c *Component) float64
	ComponentGetExtents           func(c *Component, x, y, width, height *int, coordType CoordType)
	ComponentGetLayer             func(c *Component) Layer
	ComponentGetMdiZorder         func(c *Component) int
	ComponentGetPosition          func(c *Component, x, y *int, coordType CoordType)
	ComponentGetSize              func(c *Component, width, height *int)
	ComponentGrabFocus            func(c *Component) bool
	ComponentRefAccessibleAtPoint func(c *Component, x, y int, coordType CoordType) *Object
	ComponentRemoveFocusHandler   func(c *Component, handlerId uint)
	ComponentSetExtents           func(c *Component, x, y, width, height int, coordType CoordType) bool
	ComponentSetPosition          func(c *Component, x, y int, coordType CoordType) bool
	ComponentSetSize              func(c *Component, width, height int) bool
)
View Source
var (
	DocumentGetType func() O.Type

	DocumentGetAttributes     func(d *Document) *AttributeSet
	DocumentGetAttributeValue func(d *Document, attributeName string) string
	DocumentGetDocument       func(d *Document) T.Gpointer
	DocumentGetDocumentType   func(d *Document) string
	DocumentGetLocale         func(d *Document) string
	DocumentSetAttributeValue func(d *Document, attributeName, attributeValue string) bool
)
View Source
var (
	EditableTextGetType func() O.Type

	EditableTextCopyText         func(e *EditableText, startPos, endPos int)
	EditableTextCutText          func(e *EditableText, startPos, endPos int)
	EditableTextDeleteText       func(e *EditableText, startPos, endPos int)
	EditableTextInsertText       func(e *EditableText, str string, length int, position *int)
	EditableTextPasteText        func(e *EditableText, position int)
	EditableTextSetRunAttributes func(e *EditableText, attribSet *AttributeSet, startOffset, endOffset int) bool
	EditableTextSetTextContents  func(e *EditableText, str string)
)
View Source
var (
	GetRoot func() *Object

	GetFocusObject func() *Object

	GetToolkitName func() string

	GetToolkitVersion func() string

	GobjectAccessibleForObject func(obj *O.Object) *Object
)
View Source
var (
	GetDefaultRegistry func() *Registry

	GobjectAccessibleGetType func() O.Type
)
View Source
var (
	HyperlinkGetType func() O.Type

	HyperlinkGetEndIndex    func(h *Hyperlink) int
	HyperlinkGetNAnchors    func(h *Hyperlink) int
	HyperlinkGetObject      func(h *Hyperlink, i int) *Object
	HyperlinkGetStartIndex  func(h *Hyperlink) int
	HyperlinkGetUri         func(h *Hyperlink, i int) string
	HyperlinkIsInline       func(h *Hyperlink) bool
	HyperlinkIsSelectedLink func(h *Hyperlink) bool
	HyperlinkIsValid        func(h *Hyperlink) bool
)
View Source
var (
	HyperlinkImplGetType func() O.Type

	HyperlinkImplGetHyperlink func(h *HyperlinkImpl) *Hyperlink
)
View Source
var (
	HypertextGetType func() O.Type

	HypertextGetLink      func(h *Hypertext, linkIndex int) *Hyperlink
	HypertextGetLinkIndex func(h *Hypertext, charIndex int) int
	HypertextGetNLinks    func(h *Hypertext) int
)
View Source
var (
	ImageGetType func() O.Type

	ImageGetImageDescription func(i *Image) string
	ImageGetImageLocale      func(i *Image) string
	ImageGetImagePosition    func(i *Image, x, y *int, coordType CoordType)
	ImageGetImageSize        func(i *Image, width, height *int)
	ImageSetImageDescription func(i *Image, description string) bool
)
View Source
var (
	ImplementorGetType func() O.Type

	ImplementorRefAccessible func(i *Implementor) *Object
)
View Source
var (
	ObjectGetType func() O.Type

	ObjectAddRelationship              func(o *Object, relationship RelationType, target *Object) bool
	ObjectConnectPropertyChangeHandler func(o *Object, handler *PropertyChangeHandler) uint
	ObjectGetAttributes                func(o *Object) *AttributeSet
	ObjectGetDescription               func(o *Object) string
	ObjectGetIndexInParent             func(o *Object) int
	ObjectGetLayer                     func(o *Object) Layer
	ObjectGetMdiZorder                 func(o *Object) int
	ObjectGetNAccessibleChildren       func(o *Object) int
	ObjectGetName                      func(o *Object) string
	ObjectGetParent                    func(o *Object) *Object
	ObjectGetRole                      func(o *Object) Role
	ObjectInitialize                   func(o *Object, data T.Gpointer)
	ObjectNotifyStateChange            func(o *Object, state State, value bool)
	ObjectRefAccessibleChild           func(o *Object, i int) *Object
	ObjectRefRelationSet               func(o *Object) *RelationSet
	ObjectRefStateSet                  func(o *Object) *StateSet
	ObjectRemovePropertyChangeHandler  func(o *Object, handlerId uint)
	ObjectRemoveRelationship           func(o *Object, relationship RelationType, target *Object) bool
	ObjectSetDescription               func(o *Object, description string)
	ObjectSetName                      func(o *Object, name string)
	ObjectSetParent                    func(o *Object, parent *Object)
	ObjectSetRole                      func(o *Object, role Role)
)
View Source
var (
	ObjectFactoryGetType func() O.Type

	ObjectFactoryCreateAccessible  func(o *ObjectFactory, obj *O.Object) *Object
	ObjectFactoryGetAccessibleType func(o *ObjectFactory) O.Type
	ObjectFactoryInvalidate        func(o *ObjectFactory)
)
View Source
var (
	RegistryGetType func() O.Type

	RegistryGetFactory     func(r *Registry, t O.Type) *ObjectFactory
	RegistrySetFactoryType func(r *Registry, t O.Type, factoryType O.Type)
	RegistryGetFactoryType func(r *Registry, t O.Type) O.Type
)
View Source
var (
	RelationGetType func() O.Type
	RelationNew     func(targets **Object, nTargets int, relationship RelationType) *Relation

	RelationAddTarget       func(r *Relation, target *Object)
	RelationGetRelationType func(r *Relation) RelationType
	RelationGetTarget       func(r *Relation) *L.PtrArray
	RelationRemoveTarget    func(r *Relation, target *Object) bool
)
View Source
var (
	RelationSetGetType func() O.Type
	RelationSetNew     func() *RelationSet

	RelationSetAdd               func(r *RelationSet, relation *Relation)
	RelationSetAddRelationByType func(r *RelationSet, relationship RelationType, target *Object)
	RelationSetContains          func(r *RelationSet, relationship RelationType) bool
	RelationSetGetNRelations     func(r *RelationSet) int
	RelationSetGetRelation       func(r *RelationSet, i int) *Relation
	RelationSetGetRelationByType func(r *RelationSet, relationship RelationType) *Relation
	RelationSetRemove            func(r *RelationSet, relation *Relation)
)
View Source
var (
	RelationTypeGetType func() O.Type

	RelationTypeRegister func(name string) RelationType
	RelationTypeForName  func(name string) RelationType

	RelationTypeGetName func(r RelationType) string
)
View Source
var (
	RemoveFocusTracker        func(trackerId uint)
	RemoveGlobalEventListener func(listenerId uint)
	RemoveKeyEventListener    func(listenerId uint)
)
View Source
var (
	RoleGetType func() O.Type

	RoleForName  func(name string) Role
	RoleRegister func(name string) Role

	RoleGetLocalizedName func(r Role) string
	RoleGetName          func(r Role) string
)
View Source
var (
	StateTypeRegister func(name string) StateType
	StateTypeForName  func(name string) StateType

	StateTypeGetName func(s StateType) string
)
View Source
var (
	SelectionGetType func() O.Type

	SelectionAddSelection       func(s *Selection, i int) bool
	SelectionClearSelection     func(s *Selection) bool
	SelectionGetSelectionCount  func(s *Selection) int
	SelectionIsChildSelected    func(s *Selection, i int) bool
	SelectionRefSelection       func(s *Selection, i int) *Object
	SelectionRemoveSelection    func(s *Selection, i int) bool
	SelectionSelectAllSelection func(s *Selection) bool
)
View Source
var (
	SocketNew func() *Object

	SocketEmbed      func(obj *Socket, plugId string)
	SocketIsOccupied func(obj *Socket) bool
)
View Source
var (
	StateSetGetType func() O.Type
	StateSetNew     func() *StateSet

	StateSetAddState       func(s *StateSet, t StateType) bool
	StateSetAddStates      func(s *StateSet, types *StateType, nTypes int)
	StateSetAndSets        func(s *StateSet, compareSet *StateSet) *StateSet
	StateSetClearStates    func(s *StateSet)
	StateSetContainsState  func(s *StateSet, t StateType) bool
	StateSetContainsStates func(s *StateSet, types *StateType, nTypes int) bool
	StateSetIsEmpty        func(s *StateSet) bool
	StateSetOrSets         func(s *StateSet, compareSet *StateSet) *StateSet
	StateSetRemoveState    func(s *StateSet, t StateType) bool
	StateSetXorSets        func(s *StateSet, compareSet *StateSet) *StateSet
)
View Source
var (
	StreamableContentGetType func() O.Type

	StreamableContentGetMimeType   func(s *StreamableContent, i int) string
	StreamableContentGetNMimeTypes func(s *StreamableContent) int
	StreamableContentGetStream     func(s *StreamableContent, mimeType string) *L.IOChannel
	StreamableContentGetUri        func(s *StreamableContent, mimeType string) string
)
View Source
var (
	TableGetType func() O.Type

	TableAddColumnSelection    func(t *Table, column int) bool
	TableAddRowSelection       func(t *Table, row int) bool
	TableGetCaption            func(t *Table) *Object
	TableGetColumnAtIndex      func(t *Table, index int) int
	TableGetColumnDescription  func(t *Table, column int) string
	TableGetColumnExtentAt     func(t *Table, row, column int) int
	TableGetColumnHeader       func(t *Table, column int) *Object
	TableGetIndexAt            func(t *Table, row, column int) int
	TableGetNColumns           func(t *Table) int
	TableGetNRows              func(t *Table) int
	TableGetRowAtIndex         func(t *Table, index int) int
	TableGetRowDescription     func(t *Table, row int) string
	TableGetRowExtentAt        func(t *Table, row, column int) int
	TableGetRowHeader          func(t *Table, row int) *Object
	TableGetSelectedColumns    func(t *Table, selected **int) int
	TableGetSelectedRows       func(t *Table, selected **int) int
	TableGetSummary            func(t *Table) *Object
	TableIsColumnSelected      func(t *Table, column int) bool
	TableIsRowSelected         func(t *Table, row int) bool
	TableIsSelected            func(t *Table, row, column int) bool
	TableRefAt                 func(t *Table, row, column int) *Object
	TableRemoveColumnSelection func(t *Table, column int) bool
	TableRemoveRowSelection    func(t *Table, row int) bool
	TableSetCaption            func(t *Table, caption *Object)
	TableSetColumnDescription  func(t *Table, column int, description string)
	TableSetColumnHeader       func(t *Table, column int, header *Object)
	TableSetRowDescription     func(t *Table, row int, description string)
	TableSetRowHeader          func(t *Table, row int, header *Object)
	TableSetSummary            func(t *Table, accessible *Object)
)
View Source
var (
	TextGetType func() O.Type

	TextAttributeRegister func(name string) TextAttribute
	TextFreeRanges        func(ranges **TextRange)

	TextAddSelection         func(t *Text, startOffset, endOffset int) bool
	TextGetBoundedRanges     func(t *Text, rect *TextRectangle, coordType CoordType, xClipType, yClipType TextClipType) **TextRange
	TextGetCaretOffset       func(t *Text) int
	TextGetCharacterAtOffset func(t *Text, offset int) L.Unichar
	TextGetCharacterCount    func(t *Text) int
	TextGetCharacterExtents  func(t *Text, offset int, x, y, width, height *int, coords CoordType)
	TextGetDefaultAttributes func(t *Text) *AttributeSet
	TextGetNSelections       func(t *Text) int
	TextGetOffsetAtPoint     func(t *Text, x, y int, coords CoordType) int
	TextGetRangeExtents      func(t *Text, startOffset, endOffset int, coordType CoordType, rect *TextRectangle)
	TextGetRunAttributes     func(t *Text, offset int, startOffset, endOffset *int) *AttributeSet
	TextGetSelection         func(t *Text, selectionNum int, startOffset, endOffset *int) string
	TextGetText              func(t *Text, startOffset, endOffset int) string
	TextGetTextAfterOffset   func(t *Text, offset int, boundaryType TextBoundary, startOffset, endOffset *int) string
	TextGetTextAtOffset      func(t *Text, offset int, boundaryType TextBoundary, startOffset, endOffset *int) string
	TextGetTextBeforeOffset  func(t *Text, offset int, boundaryType TextBoundary, startOffset, endOffset *int) string
	TextRemoveSelection      func(t *Text, selectionNum int) bool
	TextSetCaretOffset       func(t *Text, offset int) bool
	TextSetSelection         func(t *Text, selectionNum, startOffset, endOffset int) bool
)
View Source
var (
	TextAttributeGetType func() O.Type
	TextAttributeForName func(name string) TextAttribute

	TextAttributeGetName  func(t TextAttribute) string
	TextAttributeGetValue func(t TextAttribute, index int) string
)
View Source
var (
	ValueGetType func() O.Type

	ValueGetCurrentValue     func(v *Value, value *O.Value)
	ValueGetMaximumValue     func(v *Value, value *O.Value)
	ValueGetMinimumValue     func(v *Value, value *O.Value)
	ValueSetCurrentValue     func(v *Value, value *O.Value) bool
	ValueGetMinimumIncrement func(v *Value, value *O.Value)
)
View Source
var CoordTypeGetType func() O.Type
View Source
var GobjectAccessibleGetObject func(obj *GObjectAccessible) *O.Object
View Source
var HyperlinkStateFlagsGetType func() O.Type
View Source
var KeyEventTypeGetType func() O.Type
View Source
var RectangleGetType func() O.Type //TODO(t):Use?
View Source
var StateTypeGetType func() O.Type
View Source
var TextBoundaryGetType func() O.Type
View Source
var TextClipTypeGetType func() O.Type

Functions

This section is empty.

Types

type Action

type Action struct{}

func (*Action) DoAction

func (a *Action) DoAction(i int) bool

func (*Action) GetDescription

func (a *Action) GetDescription(i int) string

func (*Action) GetKeybinding

func (a *Action) GetKeybinding(i int) string

func (*Action) GetLocalizedName

func (a *Action) GetLocalizedName(i int) string

func (*Action) GetNActions

func (a *Action) GetNActions() int

func (*Action) GetName

func (a *Action) GetName(i int) string

func (*Action) SetDescription

func (a *Action) SetDescription(i int, desc string) bool

type AttributeSet

type AttributeSet L.SList

type Component

type Component struct{}

func (*Component) AddFocusHandler

func (c *Component) AddFocusHandler(handler FocusHandler) uint

func (*Component) Contains

func (c *Component) Contains(x, y int, coordType CoordType) bool

func (*Component) GetAlpha

func (c *Component) GetAlpha() float64

func (*Component) GetExtents

func (c *Component) GetExtents(x, y, width, height *int, coordType CoordType)

func (*Component) GetLayer

func (c *Component) GetLayer() Layer

func (*Component) GetMdiZorder

func (c *Component) GetMdiZorder() int

func (*Component) GetPosition

func (c *Component) GetPosition(x, y *int, coordType CoordType)

func (*Component) GetSize

func (c *Component) GetSize(width, height *int)

func (*Component) GrabFocus

func (c *Component) GrabFocus() bool

func (*Component) RefAccessibleAtPoint

func (c *Component) RefAccessibleAtPoint(x, y int, coordType CoordType) *Object

func (*Component) RemoveFocusHandler

func (c *Component) RemoveFocusHandler(handlerId uint)

func (*Component) SetExtents

func (c *Component) SetExtents(x, y, width, height int, coordType CoordType) bool

func (*Component) SetPosition

func (c *Component) SetPosition(x, y int, coordType CoordType) bool

func (*Component) SetSize

func (c *Component) SetSize(width, height int) bool

type CoordType

type CoordType Enum
const (
	XY_SCREEN CoordType = iota
	XY_WINDOW
)

type Document

type Document struct{}

func (*Document) GetAttributeValue

func (d *Document) GetAttributeValue(attributeName string) string

func (*Document) GetAttributes

func (d *Document) GetAttributes() *AttributeSet

func (*Document) GetDocument

func (d *Document) GetDocument() T.Gpointer

func (*Document) GetDocumentType

func (d *Document) GetDocumentType() string

func (*Document) GetLocale

func (d *Document) GetLocale() string

func (*Document) SetAttributeValue

func (d *Document) SetAttributeValue(attributeName, attributeValue string) bool

type EditableText

type EditableText struct{}

func (*EditableText) CopyText

func (e *EditableText) CopyText(startPos, endPos int)

func (*EditableText) CutText

func (e *EditableText) CutText(startPos, endPos int)

func (*EditableText) DeleteText

func (e *EditableText) DeleteText(startPos, endPos int)

func (*EditableText) InsertText

func (e *EditableText) InsertText(str string, length int, position *int)

func (*EditableText) PasteText

func (e *EditableText) PasteText(position int)

func (*EditableText) SetRunAttributes

func (e *EditableText) SetRunAttributes(attribSet *AttributeSet, startOffset, endOffset int) bool

func (*EditableText) SetTextContents

func (e *EditableText) SetTextContents(str string)

type Enum

type Enum int

type EventListener

type EventListener func(obj *Object)

type EventListenerInit

type EventListenerInit func()

type FocusHandler

type FocusHandler func(*Object, bool)

type GObjectAccessible

type GObjectAccessible struct {
	Parent Object
}

func (*GObjectAccessible) GetObject

func (o *GObjectAccessible) GetObject() *O.Object
type Hyperlink struct {
	// contains filtered or unexported fields
}

func (*Hyperlink) GetEndIndex

func (h *Hyperlink) GetEndIndex() int

func (*Hyperlink) GetNAnchors

func (h *Hyperlink) GetNAnchors() int

func (*Hyperlink) GetObject

func (h *Hyperlink) GetObject(i int) *Object

func (*Hyperlink) GetStartIndex

func (h *Hyperlink) GetStartIndex() int

func (*Hyperlink) GetUri

func (h *Hyperlink) GetUri(i int) string

func (*Hyperlink) IsInline

func (h *Hyperlink) IsInline() bool
func (h *Hyperlink) IsSelectedLink() bool

func (*Hyperlink) IsValid

func (h *Hyperlink) IsValid() bool

type HyperlinkImpl

type HyperlinkImpl struct{}
func (h *HyperlinkImpl) GetHyperlink() *Hyperlink

type HyperlinkStateFlags

type HyperlinkStateFlags Enum

NOTE(t): Unreferenced

const HYPERLINK_IS_INLINE HyperlinkStateFlags = 1 << 0

type Hypertext

type Hypertext struct{}
func (h *Hypertext) GetLink(linkIndex int) *Hyperlink

func (*Hypertext) GetLinkIndex

func (h *Hypertext) GetLinkIndex(charIndex int) int
func (h *Hypertext) GetNLinks() int

type Image

type Image struct{}

func (*Image) GetImageDescription

func (i *Image) GetImageDescription() string

func (*Image) GetImageLocale

func (i *Image) GetImageLocale() string

func (*Image) GetImagePosition

func (i *Image) GetImagePosition(x, y *int, coordType CoordType)

func (*Image) GetImageSize

func (i *Image) GetImageSize(width, height *int)

func (*Image) SetImageDescription

func (i *Image) SetImageDescription(description string) bool

type Implementor

type Implementor struct{}

func (*Implementor) RefAccessible

func (i *Implementor) RefAccessible() *Object

type KeyEventStruct

type KeyEventStruct struct {
	Type      int
	State     uint
	Keyval    uint
	Length    int
	String    *T.Gchar
	Keycode   uint16
	Timestamp T.GUint32
}

type KeyEventType

type KeyEventType Enum

NOTE(t): Unreferenced

const (
	KEY_EVENT_PRESS KeyEventType = iota
	KEY_EVENT_RELEASE
	KEY_EVENT_LAST_DEFINED
)

type KeySnoopFunc

type KeySnoopFunc func(
	event *KeyEventStruct, funcData T.Gpointer) int

type Layer

type Layer Enum
const (
	LAYER_INVALID Layer = iota
	LAYER_BACKGROUND
	LAYER_CANVAS
	LAYER_WIDGET
	LAYER_MDI
	LAYER_POPUP
	LAYER_OVERLAY
	LAYER_WINDOW
)

type Misc

type Misc struct {
	// contains filtered or unexported fields
}

func (*Misc) ThreadsEnter

func (m *Misc) ThreadsEnter()

func (*Misc) ThreadsLeave

func (m *Misc) ThreadsLeave()

type Object

type Object struct {
	Parent           O.Object
	Description      *T.Gchar
	Name             *T.Gchar
	AccessibleParent *Object
	Role             Role
	RelationSet      *RelationSet
	Layer            Layer
}

func (*Object) AddRelationship

func (o *Object) AddRelationship(relationship RelationType, target *Object) bool

func (*Object) ConnectPropertyChangeHandler

func (o *Object) ConnectPropertyChangeHandler(handler *PropertyChangeHandler) uint

func (*Object) GetAttributes

func (o *Object) GetAttributes() *AttributeSet

func (*Object) GetDescription

func (o *Object) GetDescription() string

func (*Object) GetIndexInParent

func (o *Object) GetIndexInParent() int

func (*Object) GetLayer

func (o *Object) GetLayer() Layer

func (*Object) GetMdiZorder

func (o *Object) GetMdiZorder() int

func (*Object) GetNAccessibleChildren

func (o *Object) GetNAccessibleChildren() int

func (*Object) GetName

func (o *Object) GetName() string

func (*Object) GetParent

func (o *Object) GetParent() *Object

func (*Object) GetRole

func (o *Object) GetRole() Role

func (*Object) Initialize

func (o *Object) Initialize(data T.Gpointer)

func (*Object) NotifyStateChange

func (o *Object) NotifyStateChange(state State, value bool)

func (*Object) RefAccessibleChild

func (o *Object) RefAccessibleChild(i int) *Object

func (*Object) RefRelationSet

func (o *Object) RefRelationSet() *RelationSet

func (*Object) RefStateSet

func (o *Object) RefStateSet() *StateSet

func (*Object) RemovePropertyChangeHandler

func (o *Object) RemovePropertyChangeHandler(handlerId uint)

func (*Object) RemoveRelationship

func (o *Object) RemoveRelationship(relationship RelationType, target *Object) bool

func (*Object) SetDescription

func (o *Object) SetDescription(description string)

func (*Object) SetName

func (o *Object) SetName(name string)

func (*Object) SetParent

func (o *Object) SetParent(parent *Object)

func (*Object) SetRole

func (o *Object) SetRole(role Role)

type ObjectFactory

type ObjectFactory struct {
	// contains filtered or unexported fields
}

func (*ObjectFactory) CreateAccessible

func (o *ObjectFactory) CreateAccessible(obj *O.Object) *Object

func (*ObjectFactory) GetAccessibleType

func (o *ObjectFactory) GetAccessibleType() O.Type

func (*ObjectFactory) Invalidate

func (o *ObjectFactory) Invalidate()

type PropertyChangeHandler

type PropertyChangeHandler func(*Object, *PropertyValues)

type PropertyValues

type PropertyValues struct {
	PropertyName *T.Gchar
	OldValue     O.Value
	NewValue     O.Value
}

type Registry

type Registry struct {
	Parent                O.Object
	FactoryTypeRegistry   *L.HashTable
	FactorySingletonCache *L.HashTable
}

func (*Registry) GetFactory

func (r *Registry) GetFactory(t O.Type) *ObjectFactory

func (*Registry) GetFactoryType

func (r *Registry) GetFactoryType(t O.Type) O.Type

func (*Registry) SetFactoryType

func (r *Registry) SetFactoryType(t O.Type, factoryType O.Type)

type Relation

type Relation struct {
	Parent       O.Object
	Target       *L.PtrArray
	Relationship RelationType
}

func (*Relation) AddTarget

func (r *Relation) AddTarget(target *Object)

func (*Relation) GetRelationType

func (r *Relation) GetRelationType() RelationType

func (*Relation) GetTarget

func (r *Relation) GetTarget() *L.PtrArray

func (*Relation) RemoveTarget

func (r *Relation) RemoveTarget(target *Object) bool

type RelationSet

type RelationSet struct {
	Parent    O.Object
	Relations *L.PtrArray
}

func (*RelationSet) Add

func (r *RelationSet) Add(relation *Relation)

func (*RelationSet) AddRelationByType

func (r *RelationSet) AddRelationByType(relationship RelationType, target *Object)

func (*RelationSet) Contains

func (r *RelationSet) Contains(relationship RelationType) bool

func (*RelationSet) GetNRelations

func (r *RelationSet) GetNRelations() int

func (*RelationSet) GetRelation

func (r *RelationSet) GetRelation(i int) *Relation

func (*RelationSet) GetRelationByType

func (r *RelationSet) GetRelationByType(relationship RelationType) *Relation

func (*RelationSet) Remove

func (r *RelationSet) Remove(relation *Relation)

type RelationType

type RelationType Enum
const (
	RELATION_NULL RelationType = iota
	RELATION_CONTROLLED_BY
	RELATION_CONTROLLER_FOR
	RELATION_LABEL_FOR
	RELATION_LABELLED_BY
	RELATION_MEMBER_OF
	RELATION_NODE_CHILD_OF
	RELATION_FLOWS_TO
	RELATION_FLOWS_FROM
	RELATION_SUBWINDOW_OF
	RELATION_EMBEDS
	RELATION_EMBEDDED_BY
	RELATION_POPUP_FOR
	RELATION_PARENT_WINDOW_OF
	RELATION_DESCRIBED_BY
	RELATION_DESCRIPTION_FOR
	RELATION_NODE_PARENT_OF
	RELATION_LAST_DEFINED
)

func (RelationType) GetName

func (r RelationType) GetName() string

type Role

type Role Enum
const (
	ROLE_INVALID Role = iota
	ROLE_ACCEL_LABEL
	ROLE_ALERT
	ROLE_ANIMATION
	ROLE_ARROW
	ROLE_CALENDAR
	ROLE_CANVAS
	ROLE_CHECK_BOX
	ROLE_CHECK_MENU_ITEM
	ROLE_COLOR_CHOOSER
	ROLE_COLUMN_HEADER
	ROLE_COMBO_BOX
	ROLE_DATE_EDITOR
	ROLE_DESKTOP_ICON
	ROLE_DESKTOP_FRAME
	ROLE_DIAL
	ROLE_DIALOG
	ROLE_DIRECTORY_PANE
	ROLE_DRAWING_AREA
	ROLE_FILE_CHOOSER
	ROLE_FILLER
	ROLE_FONT_CHOOSER
	ROLE_FRAME
	ROLE_GLASS_PANE
	ROLE_HTML_CONTAINER
	ROLE_ICON
	ROLE_IMAGE
	ROLE_INTERNAL_FRAME
	ROLE_LABEL
	ROLE_LAYERED_PANE
	ROLE_LIST
	ROLE_LIST_ITEM
	ROLE_MENU
	ROLE_MENU_BAR
	ROLE_MENU_ITEM
	ROLE_OPTION_PANE
	ROLE_PAGE_TAB
	ROLE_PAGE_TAB_LIST
	ROLE_PANEL
	ROLE_PASSWORD_TEXT
	ROLE_POPUP_MENU
	ROLE_PROGRESS_BAR
	ROLE_PUSH_BUTTON
	ROLE_RADIO_BUTTON
	ROLE_RADIO_MENU_ITEM
	ROLE_ROOT_PANE
	ROLE_ROW_HEADER
	ROLE_SCROLL_BAR
	ROLE_SCROLL_PANE
	ROLE_SEPARATOR
	ROLE_SLIDER
	ROLE_SPLIT_PANE
	ROLE_SPIN_BUTTON
	ROLE_STATUSBAR
	ROLE_TABLE
	ROLE_TABLE_CELL
	ROLE_TABLE_COLUMN_HEADER
	ROLE_TABLE_ROW_HEADER
	ROLE_TEAR_OFF_MENU_ITEM
	ROLE_TERMINAL
	ROLE_TEXT
	ROLE_TOGGLE_BUTTON
	ROLE_TOOL_BAR
	ROLE_TOOL_TIP
	ROLE_TREE
	ROLE_TREE_TABLE
	ROLE_UNKNOWN
	ROLE_VIEWPORT
	ROLE_WINDOW
	ROLE_HEADER
	ROLE_FOOTER
	ROLE_PARAGRAPH
	ROLE_RULER
	ROLE_APPLICATION
	ROLE_AUTOCOMPLETE
	ROLE_EDITBAR
	ROLE_EMBEDDED
	ROLE_ENTRY
	ROLE_CHART
	ROLE_CAPTION
	ROLE_DOCUMENT_FRAME
	ROLE_HEADING
	ROLE_PAGE
	ROLE_SECTION
	ROLE_REDUNDANT_OBJECT
	ROLE_FORM
	ROLE_LINK
	ROLE_INPUT_METHOD_WINDOW
	ROLE_LAST_DEFINED
)

func (Role) GetLocalizedName

func (r Role) GetLocalizedName() string

func (Role) GetName

func (r Role) GetName() string

type Selection

type Selection struct{}

func (*Selection) AddSelection

func (s *Selection) AddSelection(i int) bool

func (*Selection) ClearSelection

func (s *Selection) ClearSelection() bool

func (*Selection) GetSelectionCount

func (s *Selection) GetSelectionCount() int

func (*Selection) IsChildSelected

func (s *Selection) IsChildSelected(i int) bool

func (*Selection) RefSelection

func (s *Selection) RefSelection(i int) *Object

func (*Selection) RemoveSelection

func (s *Selection) RemoveSelection(i int) bool

func (*Selection) SelectAllSelection

func (s *Selection) SelectAllSelection() bool

type Socket

type Socket struct{}

func (*Socket) Embed

func (s *Socket) Embed(plugId string)

func (*Socket) IsOccupied

func (s *Socket) IsOccupied() bool

type State

type State struct{}

type StateSet

type StateSet struct {
	// contains filtered or unexported fields
}

func (*StateSet) AddState

func (s *StateSet) AddState(t StateType) bool

func (*StateSet) AddStates

func (s *StateSet) AddStates(types *StateType, nTypes int)

func (*StateSet) AndSets

func (s *StateSet) AndSets(compareSet *StateSet) *StateSet

func (*StateSet) ClearStates

func (s *StateSet) ClearStates()

func (*StateSet) ContainsState

func (s *StateSet) ContainsState(t StateType) bool

func (*StateSet) ContainsStates

func (s *StateSet) ContainsStates(types *StateType, nTypes int) bool

func (*StateSet) IsEmpty

func (s *StateSet) IsEmpty() bool

func (*StateSet) OrSets

func (s *StateSet) OrSets(compareSet *StateSet) *StateSet

func (*StateSet) RemoveState

func (s *StateSet) RemoveState(t StateType) bool

func (*StateSet) XorSets

func (s *StateSet) XorSets(compareSet *StateSet) *StateSet

type StateType

type StateType Enum
const (
	STATE_INVALID StateType = iota
	STATE_ACTIVE
	STATE_ARMED
	STATE_BUSY
	STATE_CHECKED
	STATE_DEFUNCT
	STATE_EDITABLE
	STATE_ENABLED
	STATE_EXPANDABLE
	STATE_EXPANDED
	STATE_FOCUSABLE
	STATE_FOCUSED
	STATE_HORIZONTAL
	STATE_ICONIFIED
	STATE_MODAL
	STATE_MULTI_LINE
	STATE_MULTISELECTABLE
	STATE_OPAQUE
	STATE_PRESSED
	STATE_RESIZABLE
	STATE_SELECTABLE
	STATE_SELECTED
	STATE_SENSITIVE
	STATE_SHOWING
	STATE_SINGLE_LINE
	STATE_STALE
	STATE_TRANSIENT
	STATE_VERTICAL
	STATE_VISIBLE
	STATE_MANAGES_DESCENDANTS
	STATE_INDETERMINATE
	STATE_TRUNCATED
	STATE_REQUIRED
	STATE_INVALID_ENTRY
	STATE_SUPPORTS_AUTOCOMPLETION
	STATE_SELECTABLE_TEXT
	STATE_DEFAULT
	STATE_ANIMATED
	STATE_VISITED
	STATE_LAST_DEFINED
)

func (StateType) GetName

func (s StateType) GetName() string

type StreamableContent

type StreamableContent struct{}

func (*StreamableContent) GetMimeType

func (s *StreamableContent) GetMimeType(i int) string

func (*StreamableContent) GetNMimeTypes

func (s *StreamableContent) GetNMimeTypes() int

func (*StreamableContent) GetStream

func (s *StreamableContent) GetStream(mimeType string) *L.IOChannel

func (*StreamableContent) GetUri

func (s *StreamableContent) GetUri(mimeType string) string

type Table

type Table struct{}

func (*Table) AddColumnSelection

func (t *Table) AddColumnSelection(column int) bool

func (*Table) AddRowSelection

func (t *Table) AddRowSelection(row int) bool

func (*Table) GetCaption

func (t *Table) GetCaption() *Object

func (*Table) GetColumnAtIndex

func (t *Table) GetColumnAtIndex(index int) int

func (*Table) GetColumnDescription

func (t *Table) GetColumnDescription(column int) string

func (*Table) GetColumnExtentAt

func (t *Table) GetColumnExtentAt(row, column int) int

func (*Table) GetColumnHeader

func (t *Table) GetColumnHeader(column int) *Object

func (*Table) GetIndexAt

func (t *Table) GetIndexAt(row, column int) int

func (*Table) GetNColumns

func (t *Table) GetNColumns() int

func (*Table) GetNRows

func (t *Table) GetNRows() int

func (*Table) GetRowAtIndex

func (t *Table) GetRowAtIndex(index int) int

func (*Table) GetRowDescription

func (t *Table) GetRowDescription(row int) string

func (*Table) GetRowExtentAt

func (t *Table) GetRowExtentAt(row, column int) int

func (*Table) GetRowHeader

func (t *Table) GetRowHeader(row int) *Object

func (*Table) GetSelectedColumns

func (t *Table) GetSelectedColumns(selected **int) int

func (*Table) GetSelectedRows

func (t *Table) GetSelectedRows(selected **int) int

func (*Table) GetSummary

func (t *Table) GetSummary() *Object

func (*Table) IsColumnSelected

func (t *Table) IsColumnSelected(column int) bool

func (*Table) IsRowSelected

func (t *Table) IsRowSelected(row int) bool

func (*Table) IsSelected

func (t *Table) IsSelected(row, column int) bool

func (*Table) RefAt

func (t *Table) RefAt(row, column int) *Object

func (*Table) RemoveColumnSelection

func (t *Table) RemoveColumnSelection(column int) bool

func (*Table) RemoveRowSelection

func (t *Table) RemoveRowSelection(row int) bool

func (*Table) SetCaption

func (t *Table) SetCaption(caption *Object)

func (*Table) SetColumnDescription

func (t *Table) SetColumnDescription(column int, description string)

func (*Table) SetColumnHeader

func (t *Table) SetColumnHeader(column int, header *Object)

func (*Table) SetRowDescription

func (t *Table) SetRowDescription(row int, description string)

func (*Table) SetRowHeader

func (t *Table) SetRowHeader(row int, header *Object)

func (*Table) SetSummary

func (t *Table) SetSummary(accessible *Object)

type Text

type Text struct{}

func (*Text) AddSelection

func (t *Text) AddSelection(startOffset, endOffset int) bool

func (*Text) GetBoundedRanges

func (t *Text) GetBoundedRanges(rect *TextRectangle, coordType CoordType, xClipType, yClipType TextClipType) **TextRange

func (*Text) GetCaretOffset

func (t *Text) GetCaretOffset() int

func (*Text) GetCharacterAtOffset

func (t *Text) GetCharacterAtOffset(offset int) L.Unichar

func (*Text) GetCharacterCount

func (t *Text) GetCharacterCount() int

func (*Text) GetCharacterExtents

func (t *Text) GetCharacterExtents(offset int, x, y, width, height *int, coords CoordType)

func (*Text) GetDefaultAttributes

func (t *Text) GetDefaultAttributes() *AttributeSet

func (*Text) GetNSelections

func (t *Text) GetNSelections() int

func (*Text) GetOffsetAtPoint

func (t *Text) GetOffsetAtPoint(x, y int, coords CoordType) int

func (*Text) GetRangeExtents

func (t *Text) GetRangeExtents(startOffset, endOffset int, coordType CoordType, rect *TextRectangle)

func (*Text) GetRunAttributes

func (t *Text) GetRunAttributes(offset int, startOffset, endOffset *int) *AttributeSet

func (*Text) GetSelection

func (t *Text) GetSelection(selectionNum int, startOffset, endOffset *int) string

func (*Text) GetText

func (t *Text) GetText(startOffset, endOffset int) string

func (*Text) GetTextAfterOffset

func (t *Text) GetTextAfterOffset(offset int, boundaryType TextBoundary, startOffset, endOffset *int) string

func (*Text) GetTextAtOffset

func (t *Text) GetTextAtOffset(offset int, boundaryType TextBoundary, startOffset, endOffset *int) string

func (*Text) GetTextBeforeOffset

func (t *Text) GetTextBeforeOffset(offset int, boundaryType TextBoundary, startOffset, endOffset *int) string

func (*Text) RemoveSelection

func (t *Text) RemoveSelection(selectionNum int) bool

func (*Text) SetCaretOffset

func (t *Text) SetCaretOffset(offset int) bool

func (*Text) SetSelection

func (t *Text) SetSelection(selectionNum, startOffset, endOffset int) bool

type TextAttribute

type TextAttribute Enum
const (
	TEXT_ATTR_INVALID TextAttribute = iota
	TEXT_ATTR_LEFT_MARGIN
	TEXT_ATTR_RIGHT_MARGIN
	TEXT_ATTR_INDENT
	TEXT_ATTR_INVISIBLE
	TEXT_ATTR_EDITABLE
	TEXT_ATTR_PIXELS_ABOVE_LINES
	TEXT_ATTR_PIXELS_BELOW_LINES
	TEXT_ATTR_PIXELS_INSIDE_WRAP
	TEXT_ATTR_BG_FULL_HEIGHT
	TEXT_ATTR_RISE
	TEXT_ATTR_UNDERLINE
	TEXT_ATTR_STRIKETHROUGH
	TEXT_ATTR_SIZE
	TEXT_ATTR_SCALE
	TEXT_ATTR_WEIGHT
	TEXT_ATTR_LANGUAGE
	TEXT_ATTR_FAMILY_NAME
	TEXT_ATTR_BG_COLOR
	TEXT_ATTR_FG_COLOR
	TEXT_ATTR_BG_STIPPLE
	TEXT_ATTR_FG_STIPPLE
	TEXT_ATTR_WRAP_MODE
	TEXT_ATTR_DIRECTION
	TEXT_ATTR_JUSTIFICATION
	TEXT_ATTR_STRETCH
	TEXT_ATTR_VARIANT
	TEXT_ATTR_STYLE
	TEXT_ATTR_LAST_DEFINED
)

func (TextAttribute) GetName

func (t TextAttribute) GetName() string

func (TextAttribute) GetValue

func (t TextAttribute) GetValue(index int) string

type TextBoundary

type TextBoundary Enum
const (
	TEXT_BOUNDARY_CHAR TextBoundary = iota
	TEXT_BOUNDARY_WORD_START
	TEXT_BOUNDARY_WORD_END
	TEXT_BOUNDARY_SENTENCE_START
	TEXT_BOUNDARY_SENTENCE_END
	TEXT_BOUNDARY_LINE_START
	TEXT_BOUNDARY_LINE_END
)

type TextClipType

type TextClipType Enum
const (
	TEXT_CLIP_NONE TextClipType = iota
	TEXT_CLIP_MIN
	TEXT_CLIP_MAX
	TEXT_CLIP_BOTH
)

type TextRange

type TextRange struct {
	Bounds      TextRectangle
	StartOffset int
	EndOffset   int
	Content     *T.Gchar
}

type TextRectangle

type TextRectangle struct {
	X      int
	Y      int
	Width  int
	Height int
}

type Value

type Value struct{}

func (*Value) GetCurrentValue

func (v *Value) GetCurrentValue(value *O.Value)

func (*Value) GetMaximumValue

func (v *Value) GetMaximumValue(value *O.Value)

func (*Value) GetMinimumIncrement

func (v *Value) GetMinimumIncrement(value *O.Value)

func (*Value) GetMinimumValue

func (v *Value) GetMinimumValue(value *O.Value)

func (*Value) SetCurrentValue

func (v *Value) SetCurrentValue(value *O.Value) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL