![]() |
![]() |
This 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 Atk::Component implementations provided for their corresponding Atk::Object 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 Atk::Text.
Public Member Functions | |
guint | add_focus_handler (AtkFocusHandler handler) |
Add the specified handler to the set of functions to be called when this object receives focus events (in or out). | |
bool | contains (int x, int y, CoordType coord_type) const |
Checks whether the specified point is within the extent of the component . | |
Glib::RefPtr<Atk::Object> | get_accessible_at_point (int x, int y, CoordType coord_type) |
Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y . | |
void | get_extents (int& x, int& y, int& width, int& height, CoordType coord_type) const |
Gets the rectangle which gives the extent of the component . | |
Layer | get_layer () const |
Gets the layer of the component. | |
int | get_mdi_zorder () const |
Gets the zorder of the component. | |
void | get_position (int& x, int& y, CoordType coord_type) const |
Gets the position of component in the form of a point specifying component 's top-left corner. | |
void | get_size (int& width, int& height) const |
Gets the size of the component in terms of width and height. | |
const AtkComponent* | gobj () const |
Provides access to the underlying C GObject. | |
AtkComponent* | gobj () |
Provides access to the underlying C GObject. | |
bool | grab_focus () |
Grabs focus for this component . | |
void | remove_focus_handler (guint handler_id) |
Remove the handler specified by handler_id from the list of functions to be executed when this object receives focus events (in or out). | |
bool | set_extents (int x, int y, int width, int height, CoordType coord_type) |
Sets the extents of component . | |
bool | set_position (int x, int y, CoordType coord_type) |
Sets the postition of component . | |
bool | set_size (int width, int height) |
Set the size of the component in terms of width and height. | |
virtual | ~Component () |
Static Public Member Functions | |
static void | add_interface (GType gtype_implementer) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Atk::Component> | wrap (AtkComponent* object, bool take_copy=false) |
|
|
|
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
|
|
|
|
Checks whether the specified point is within the extent of the component .
|
|
Gets a reference to the accessible child, if one exists, at the coordinate point specified by x and y .
|
|
Gets the rectangle which gives the extent of the component .
|
|
Gets the layer of the component.
|
|
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.
|
|
Gets the position of component in the form of a point specifying component 's top-left corner.
|
|
Gets the size of the component in terms of width and height.
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Atk::NoOpObject. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface. Reimplemented in Atk::NoOpObject. |
|
Grabs focus for this component .
|
|
Remove the handler specified by handler_id from the list of functions to be executed when this object receives focus events (in or out).
|
|
Sets the extents of component .
|
|
Sets the postition of component .
|
|
Set the size of the component in terms of width and height.
|
|
|