Component
Object Hierarchy:
Description:
[
CCode ( type_id =
"atspi_component_get_type ()" ) ]
public interface Component :
Object
An interface implemented by objects which have onscreen visual representations.
The Component interface is implemented by objects which occupy on-screen space, e.g. objects which have onscreen visual representations.
The methods in Component allow clients to identify where the objects lie in the onscreen coordinate system, their relative size, stacking
order, and position. It also provides a mechanism whereby keyboard focus may be transferred to specific user interface elements
programmatically. This is a 2D API. Coordinates of 3D objects are projected into the 2-dimensional screen view for purposes of this
interface.
All known implementing classes:
Content:
Methods:
- public bool contains (int x, int y, CoordType ctype) throws Error
Queries whether a given Component
contains a particular point.
- public Accessible? get_accessible_at_point (int x, int y, CoordType ctype) throws Error
Gets the accessible child at a given coordinate within an
Component.
- public double get_alpha () throws Error
Gets the opacity/alpha value of a component, if alpha blending is in
use.
- public Rect get_extents (CoordType ctype) throws Error
Gets the bounding box of the specified
Component.
- public ComponentLayer get_layer () throws Error
Queries which layer the component is painted into, to help determine
its visibility in terms of stacking order.
- public short get_mdi_z_order () throws Error
Queries the z stacking order of a component which is in the MDI or
window layer.
- public Point get_position (CoordType ctype) throws Error
Gets the minimum x and y coordinates of the specified
Component.
- public Point get_size () throws Error
Gets the size of the specified Component
.
- public bool grab_focus () throws Error
Attempts to set the keyboard input focus to the specified
Component.
- public bool scroll_to (ScrollType type) throws Error
Scrolls whatever container of the Component
object so it becomes visible on the screen.
- public bool scroll_to_point (CoordType coords, int x, int y) throws Error
Scrolls whatever container of the Component
object so it becomes visible on the screen at a given position.
- public bool set_extents (int x, int y, int width, int height, CoordType ctype) throws Error
Moves and resizes the specified component.
- public bool set_position (int x, int y, CoordType ctype) throws Error
Moves the component to the specified position.
- public bool set_size (int width, int height) throws Error
Resizes the specified component to the given pixel dimensions.
Inherited Members:
All known members inherited from class GLib.Object