Component

AtkComponent should be implemented by most if not all UI elements with an actual on-screen presence, i.e. components which can be said to have a screen-coordinate bounding box. Virtually all widgets will need to have AtkComponent implementations provided for their corresponding AtkObject class. In short, only UI elements which are *not* GUI elements will omit this ATK interface.

A possible exception might be textual information with a transparent background, in which case text glyph bounding box information is provided by AtkText.

Constructors

this
this(AtkComponent* atkComponent)

Sets our main struct and passes it to the parent class

Members

Functions

addFocusHandler
uint addFocusHandler(AtkFocusHandler handler)

Warning atk_component_add_focus_handler is deprecated and should not be used in newly-written code. This method is deprecated since ATK version 2.9.4. If you need to track when an object gains or lose the focus, use state-changed:focused notification instead. Add the specified handler to the set of functions to be called when this object receives focus events (in or out). If the handler is already added it is not added again

addOnBoundsChanged
void addOnBoundsChanged(void delegate(AtkRectangle*, Component) dlg, ConnectFlags connectFlags)

The 'bounds-changed" signal is emitted when the bposition or size of the component changes.

contains
int contains(int x, int y, AtkCoordType coordType)

Checks whether the specified point is within the extent of the component.

getAlpha
double getAlpha()

Returns the alpha value (i.e. the opacity) for this component, on a scale from 0 (fully transparent) to 1.0 (fully opaque). Since 1.12 Signal Details The "bounds-changed" signal void user_function (AtkComponent *atkcomponent, AtkRectangle *arg1, gpointer user_data) : Run Last The 'bounds-changed" signal is emitted when the bposition or size of the component changes.

getComponentStruct
AtkComponent* getComponentStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getExtents
void getExtents(int x, int y, int width, int height, AtkCoordType coordType)

Gets the rectangle which gives the extent of the component.

getLayer
AtkLayer getLayer()

Gets the layer of the component.

getMdiZorder
int getMdiZorder()

Gets the zorder of the component. The value G_MININT will be returned if the layer of the component is not ATK_LAYER_MDI or ATK_LAYER_WINDOW.

getPosition
void getPosition(int x, int y, AtkCoordType coordType)

Gets the position of component in the form of a point specifying component's top-left corner.

getSize
void getSize(int width, int height)

Gets the size of the component in terms of width and height.

getStruct
void* getStruct()

the main Gtk struct as a void*

grabFocus
int grabFocus()

Grabs focus for this component.

refAccessibleAtPoint
ObjectAtk refAccessibleAtPoint(int x, int y, AtkCoordType coordType)

Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y.

removeFocusHandler
void removeFocusHandler(uint handlerId)

Warning atk_component_remove_focus_handler is deprecated and should not be used in newly-written code. This method is deprecated since ATK version 2.9.4. If you need to track when an object gains or lose the focus, use state-changed:focused notification instead. Remove the handler specified by handler_id from the list of functions to be executed when this object receives focus events (in or out).

setExtents
int setExtents(int x, int y, int width, int height, AtkCoordType coordType)

Sets the extents of component.

setPosition
int setPosition(int x, int y, AtkCoordType coordType)

Sets the postition of component.

setSize
int setSize(int width, int height)

Set the size of the component in terms of width and height.

Static functions

callBackBoundsChanged
void callBackBoundsChanged(AtkComponent* atkcomponentStruct, AtkRectangle* arg1, Component _component)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

atkComponent
AtkComponent* atkComponent;

the main Gtk struct

connectedSignals
int[string] connectedSignals;
onBoundsChangedListeners
void delegate(AtkRectangle*, Component)[] onBoundsChangedListeners;
Undocumented in source.

Meta