Component
Object Hierarchy:
Atk.Component
Atk.Component
Atk.Component
GLib.Object
GLib.Object
GLib.Object->Atk.Component
Description:
[
CCode ( type_id =
"atk_component_get_type ()" ) ]
public interface Component :
Object
Component 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 Component implementations provided for their corresponding
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 Text .
All known implementing classes:
Content:
Methods:
public abstract uint add_focus_handler (FocusHandler handler)
Add the specified handler to the set of functions to be called when this
object receives focus events (in or out).
public abstract bool contains (int x, int y, CoordType coord_type)
Checks whether the specified point is within the extent of the
this .
public abstract double get_alpha ()
Returns the alpha value (i.e. the opacity) for this
this , on a scale from 0 (fully transparent) to 1.0 (fully opaque).
public abstract void get_extents (out int x, out int y, out int width, out int height, CoordType coord_type)
Gets the rectangle which gives the extent of the
this .
public abstract Layer get_layer ()
Gets the layer of the component.
public abstract int get_mdi_zorder ()
Gets the zorder of the component.
public abstract void get_position (out int x, out int y, CoordType coord_type)
Gets the position of this in the form of a
point specifying this 's top-left corner.
public abstract void get_size (out int width, out int height)
Gets the size of the this in terms of
width and height.
public abstract bool grab_focus ()
Grabs focus for this this .
public abstract Object ? ref_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
.
public abstract void remove_focus_handler (uint 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).
public abstract bool scroll_to (ScrollType type)
Makes this visible on the screen by
scrolling all necessary parents.
public abstract bool scroll_to_point (CoordType coords, int x, int y)
Move the top-left of this to a given
position of the screen by scrolling all necessary parents.
public abstract bool set_extents (int x, int y, int width, int height, CoordType coord_type)
Sets the extents of this .
public abstract bool set_position (int x, int y, CoordType coord_type)
Sets the position of this .
public abstract bool set_size (int width, int height)
Set the size of the this in terms of width
and height.
Signals:
Inherited Members:
All known members inherited from class GLib.Object