AtkText {RGtk2} | R Documentation |
The ATK interface implemented by components with text content.
atkTextGetText(object, start.offset, end.offset)
atkTextGetCharacterAtOffset(object, offset)
atkTextGetTextAfterOffset(object, offset, boundary.type)
atkTextGetTextAtOffset(object, offset, boundary.type)
atkTextGetTextBeforeOffset(object, offset, boundary.type)
atkTextGetCaretOffset(object)
atkTextGetCharacterExtents(object, offset, coords)
atkTextGetRunAttributes(object, offset)
atkTextGetDefaultAttributes(object)
atkTextGetCharacterCount(object)
atkTextGetOffsetAtPoint(object, x, y, coords)
atkTextGetBoundedRanges(object, rect, coord.type, x.clip.type, y.clip.type)
atkTextGetRangeExtents(object, start.offset, end.offset, coord.type)
atkTextGetNSelections(object)
atkTextGetSelection(object, selection.num)
atkTextAddSelection(object, start.offset, end.offset)
atkTextRemoveSelection(object, selection.num)
atkTextSetSelection(object, selection.num, start.offset, end.offset)
atkTextSetCaretOffset(object, offset)
atkTextAttributeRegister(name)
atkTextAttributeGetName(attr)
atkTextAttributeForName(name)
atkTextAttributeGetValue(attr, index)
GInterface +----AtkText
AtkText is implemented by
AtkNoOpObject
.
AtkText
should be implemented by AtkObjects
on behalf of widgets that
have text content which is either attributed or otherwise non-trivial.
AtkObjects
whose text content is simple, unattributed, and very brief
may expose that content via atkObjectGetName
instead; however if the
text is editable, multi-line, typically longer than three or four words,
attributed, selectable, or if the object already uses the 'name' ATK
property for other information, the AtkText
interface should be used
to expose the text content. In the case of editable text content,
AtkEditableText
(a subtype of the AtkText
interface) should be
implemented instead.
AtkText
provides not only traversal facilities and change notification
for text content, but also caret tracking and glyph bounding box
calculations. Note that the text strings are exposed as UTF-8, and are
therefore potentially multi-byte, and caret-to-byte offset mapping makes
no assumptions about the character length; also bounding box
glyph-to-offset mapping may be complex for languages which use ligatures.
AtkText
AtkTextRange
AtkTextRange
is a transparent-type.
bounds
AtkTextRectangle
] A rectangle giving the bounds of the text rangestart_offset
end_offset
content
AtkTextRectangle
AtkTextRectangle
is a transparent-type.
x
y
width
height
AtkAttribute
AtkAttribute
is a transparent-type.
name
atk\Text\Attr\Get\Name()
value
atk\Text\Attr\Get\Value()
for those which are strings.
For values which are numbers, the string representation of the number
is in value.
AtkTextBoundary
char
word-start
word-end
sentence-start
sentence-end
line-start
line-end
AtkTextClipType
none
min
max
both
AtkTextAttribute
invalid
left-margin
right-margin
indent
invisible
editable
pixels-above-lines
pixels-below-lines
pixels-inside-wrap
bg-full-height
rise
underline
strikethrough
size
scale
weight
language
family-name
bg-color
u
,u
,u
"fg-color
u
,u
,u
"bg-stipple
GdkBitmap
is set for stippling the background color.fg-stipple
GdkBitmap
is set for stippling the foreground color.wrap-mode
direction
justification
stretch
variant
style
last-defined
text-attributes-changed(atktext, user.data)
atktext
AtkText
] the object which received the signal.user.data
text-caret-moved(atktext, arg1, user.data)
atktext
AtkText
] the object which received the signal.arg1
user.data
text-changed(atktext, arg1, arg2, user.data)
atktext
AtkText
] the object which received the signal.arg1
arg2
user.data
text-selection-changed(atktext, user.data)
atktext
AtkText
] the object which received the signal.user.data
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/atk/AtkText.html