EntryAccessible

Constructors

this
this(GtkEntryAccessible* gtkEntryAccessible, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getEntryAccessibleStruct
GtkEntryAccessible* getEntryAccessibleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Mixins

__anonymous
mixin ActionT!(GtkEntryAccessible)
Undocumented in source.
__anonymous
mixin EditableTextT!(GtkEntryAccessible)
Undocumented in source.
__anonymous
mixin TextT!(GtkEntryAccessible)
Undocumented in source.

Static functions

getType
GType getType()

Variables

gtkEntryAccessible
GtkEntryAccessible* gtkEntryAccessible;

the main Gtk struct

Inherited Members

From WidgetAccessible

gtkWidgetAccessible
GtkWidgetAccessible* gtkWidgetAccessible;

the main Gtk struct

getWidgetAccessibleStruct
GtkWidgetAccessible* getWidgetAccessibleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

__anonymous
mixin ComponentT!(GtkWidgetAccessible)
Undocumented in source.
getType
GType getType()

From ActionIF

getActionStruct
AtkAction* getActionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
doAction
bool doAction(int i)

Perform the specified action on the object.

getDescription
string getDescription(int i)

Returns a description of the specified action of the object.

getKeybinding
string getKeybinding(int i)

Gets the keybinding which can be used to activate this action, if one exists. The string returned should contain localized, human-readable, key sequences as they would appear when displayed on screen. It must be in the format "mnemonic;sequence;shortcut".

getLocalizedName
string getLocalizedName(int i)

Returns the localized name of the specified action of the object.

getNActions
int getNActions()

Gets the number of accessible actions available on the object. If there are more than one, the first one is considered the "default" action of the object.

getName
string getName(int i)

Returns a non-localized string naming the specified action of the object. This name is generally not descriptive of the end result of the action, but instead names the 'interaction type' which the object supports. By convention, the above strings should be used to represent the actions which correspond to the common point-and-click interaction techniques of the same name: i.e. "click", "press", "release", "drag", "drop", "popup", etc. The "popup" action should be used to pop up a context menu for the object, if one exists.

setDescription
bool setDescription(int i, string desc)

Sets a description of the specified action of the object.

From EditableTextIF

getEditableTextStruct
AtkEditableText* getEditableTextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
copyText
void copyText(int startPos, int endPos)

Copy text from @start_pos up to, but not including @end_pos to the clipboard.

cutText
void cutText(int startPos, int endPos)

Copy text from @start_pos up to, but not including @end_pos to the clipboard and then delete from the widget.

deleteText
void deleteText(int startPos, int endPos)

Delete text @start_pos up to, but not including @end_pos.

insertText
void insertText(string str, int length, int* position)

Insert text at a given position.

pasteText
void pasteText(int position)

Paste text from clipboard to specified @position.

setRunAttributes
bool setRunAttributes(AtkAttributeSet* attribSet, int startOffset, int endOffset)

Sets the attributes for a specified range. See the ATK_ATTRIBUTE macros (such as #ATK_ATTRIBUTE_LEFT_MARGIN) for examples of attributes that can be set. Note that other attributes that do not have corresponding ATK_ATTRIBUTE macros may also be set for certain text widgets.

setTextContents
void setTextContents(string str)

Set text contents of @text.

From TextIF

getTextStruct
AtkText* getTextStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
freeRanges
void freeRanges(TextRange[] ranges)

Frees the memory associated with an array of AtkTextRange. It is assumed that the array was returned by the function atk_text_get_bounded_ranges and is NULL terminated.

addSelection
bool addSelection(int startOffset, int endOffset)

Adds a selection bounded by the specified offsets.

getBoundedRanges
TextRange[] getBoundedRanges(AtkTextRectangle* rect, AtkCoordType coordType, AtkTextClipType xClipType, AtkTextClipType yClipType)

Get the ranges of text in the specified bounding box.

getCaretOffset
int getCaretOffset()

Gets the offset position of the caret (cursor).

getCharacterAtOffset
dchar getCharacterAtOffset(int offset)

Gets the specified text.

getCharacterCount
int getCharacterCount()

Gets the character count.

getCharacterExtents
void getCharacterExtents(int offset, int x, int y, int width, int height, AtkCoordType coords)

Get the bounding box containing the glyph representing the character at a particular text offset.

getDefaultAttributes
AtkAttributeSet* getDefaultAttributes()

Creates an #AtkAttributeSet which consists of the default values of attributes for the text. See the enum AtkTextAttribute for types of text attributes that can be returned. Note that other attributes may also be returned.

getNSelections
int getNSelections()

Gets the number of selected regions.

getOffsetAtPoint
int getOffsetAtPoint(int x, int y, AtkCoordType coords)

Gets the offset of the character located at coordinates @x and @y. @x and @y are interpreted as being relative to the screen or this widget's window depending on @coords.

getRangeExtents
void getRangeExtents(int startOffset, int endOffset, AtkCoordType coordType, AtkTextRectangle rect)

Get the bounding box for text within the specified range.

getRunAttributes
AtkAttributeSet* getRunAttributes(int offset, int startOffset, int endOffset)

Creates an #AtkAttributeSet which consists of the attributes explicitly set at the position @offset in the text. @start_offset and @end_offset are set to the start and end of the range around @offset where the attributes are invariant. Note that @end_offset is the offset of the first character after the range. See the enum AtkTextAttribute for types of text attributes that can be returned. Note that other attributes may also be returned.

getSelection
string getSelection(int selectionNum, int startOffset, int endOffset)

Gets the text from the specified selection.

getStringAtOffset
string getStringAtOffset(int offset, AtkTextGranularity granularity, int startOffset, int endOffset)

Gets a portion of the text exposed through an #AtkText according to a given @offset and a specific @granularity, along with the start and end offsets defining the boundaries of such a portion of text.

getText
string getText(int startOffset, int endOffset)

Gets the specified text.

getTextAfterOffset
string getTextAfterOffset(int offset, AtkTextBoundary boundaryType, int startOffset, int endOffset)

Gets the specified text.

getTextAtOffset
string getTextAtOffset(int offset, AtkTextBoundary boundaryType, int startOffset, int endOffset)

Gets the specified text.

getTextBeforeOffset
string getTextBeforeOffset(int offset, AtkTextBoundary boundaryType, int startOffset, int endOffset)

Gets the specified text.

removeSelection
bool removeSelection(int selectionNum)

Removes the specified selection.

setCaretOffset
bool setCaretOffset(int offset)

Sets the caret (cursor) position to the specified @offset.

setSelection
bool setSelection(int selectionNum, int startOffset, int endOffset)

Changes the start and end offset of the specified selection.

addOnTextAttributesChanged
gulong addOnTextAttributesChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags)

The "text-attributes-changed" signal is emitted when the text attributes of the text of an object which implements AtkText changes.

addOnTextCaretMoved
gulong addOnTextCaretMoved(void delegate(int, TextIF) dlg, ConnectFlags connectFlags)

The "text-caret-moved" signal is emitted when the caret position of the text of an object which implements AtkText changes.

addOnTextChanged
gulong addOnTextChanged(void delegate(int, int, TextIF) dlg, ConnectFlags connectFlags)

The "text-changed" signal is emitted when the text of the object which implements the AtkText interface changes, This signal will have a detail which is either "insert" or "delete" which identifies whether the text change was an insertion or a deletion.

addOnTextInsert
gulong addOnTextInsert(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags)

The "text-insert" signal is emitted when a new text is inserted. If the signal was not triggered by the user (e.g. typing or pasting text), the "system" detail should be included.

addOnTextRemove
gulong addOnTextRemove(void delegate(int, int, string, TextIF) dlg, ConnectFlags connectFlags)

The "text-remove" signal is emitted when a new text is removed. If the signal was not triggered by the user (e.g. typing or pasting text), the "system" detail should be included.

addOnTextSelectionChanged
gulong addOnTextSelectionChanged(void delegate(TextIF) dlg, ConnectFlags connectFlags)

The "text-selection-changed" signal is emitted when the selected text of an object which implements AtkText changes.

attributeSetFree
void attributeSetFree(AtkAttributeSet* attribSet)

Frees the memory used by an #AtkAttributeSet, including all its #AtkAttributes.

attributeForName
AtkTextAttribute attributeForName(string name)

Get the #AtkTextAttribute type corresponding to a text attribute name.

attributeGetName
string attributeGetName(AtkTextAttribute attr)

Gets the name corresponding to the #AtkTextAttribute

attributeGetValue
string attributeGetValue(AtkTextAttribute attr, int index)

Gets the value for the index of the #AtkTextAttribute

attributeRegister
AtkTextAttribute attributeRegister(string name)

Associate @name with a new #AtkTextAttribute

Meta