Module: Atk::Component
- Defined in:
- (unknown)
Overview
Atk::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 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.
Instance Method Summary collapse
-
#add_focus_handler(component, handler) ⇒ Integer
or zero if the handler was already added.
-
#alpha ⇒ Float
Returns the alpha value (i.e. the opacity) for this component, on a scale from 0 (fully transparent) to 1.0 (fully opaque).
- #bounds_changed(component, bounds) ⇒ nil
-
#contains(component, x, y, coord_type) ⇒ TrueClass
or to the components top level window the extent of the component or not.
-
#get_alpha(component) ⇒ Float
An alpha value from 0 to 1.0, inclusive.
-
#get_extents(component, x, y, width, height, coord_type) ⇒ nil
or to the components top level window.
-
#get_layer(component) ⇒ Atk::Layer
An Atk::Layer which is the layer of the component.
-
#get_mdi_zorder(component) ⇒ Integer
which the component is shown in relation to other components in the same container.
-
#get_position(component, x, y, coord_type) ⇒ nil
or to the components top level window.
- #get_size(component, width, height) ⇒ nil
-
#grab_focus(component) ⇒ TrueClass
True if successful, false otherwise.
-
#layer ⇒ Atk::Layer
Gets the layer of the component.
-
#mdi_zorder ⇒ Integer
Gets the zorder of the component.
-
#ref_accessible_at_point(component, x, y, coord_type) ⇒ Atk::Object
or to the components top level window child, if one exists.
-
#remove_focus_handler(component, handler_id) ⇒ nil
from component.
-
#scroll_to(component, type) ⇒ TrueClass
Whether scrolling was successful.
-
#scroll_to_point(component, coords, x, y) ⇒ TrueClass
parent object.
-
#set_extents(component, x, y, width, height, coord_type) ⇒ TrueClass
or to the components top level window.
-
#set_position(component, x, y, coord_type) ⇒ TrueClass
or to the component’s top level window.
-
#set_size(component, width, height) ⇒ TrueClass
True or false whether the size was set or not.
Instance Method Details
#add_focus_handler(component, handler) ⇒ Integer
or zero if the handler was already added.
#alpha ⇒ Float
Returns the alpha value (i.e. the opacity) for this component, on a scale from 0 (fully transparent) to 1.0 (fully opaque).
#bounds_changed(component, bounds) ⇒ nil
#contains(component, x, y, coord_type) ⇒ TrueClass
or to the components top level window the extent of the component or not
#get_alpha(component) ⇒ Float
Returns An alpha value from 0 to 1.0, inclusive.
#get_extents(component, x, y, width, height, coord_type) ⇒ nil
or to the components top level window
#get_layer(component) ⇒ Atk::Layer
Returns an Atk::Layer which is the layer of the component.
#get_mdi_zorder(component) ⇒ Integer
which the component is shown in relation to other components in the same container.
#get_position(component, x, y, coord_type) ⇒ nil
or to the components top level window
#get_size(component, width, height) ⇒ nil
#grab_focus(component) ⇒ TrueClass
Returns true if successful, false otherwise.
#layer ⇒ Atk::Layer
Gets the layer of the component.
#mdi_zorder ⇒ Integer
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. which the component is shown in relation to other components in the same container.
#ref_accessible_at_point(component, x, y, coord_type) ⇒ Atk::Object
or to the components top level window child, if one exists
#remove_focus_handler(component, handler_id) ⇒ nil
from component
#scroll_to(component, type) ⇒ TrueClass
Returns whether scrolling was successful.
#scroll_to_point(component, coords, x, y) ⇒ TrueClass
parent object.
#set_extents(component, x, y, width, height, coord_type) ⇒ TrueClass
or to the components top level window
#set_position(component, x, y, coord_type) ⇒ TrueClass
or to the component’s top level window
#set_size(component, width, height) ⇒ TrueClass
Returns true or false whether the size was set or not.