Widget
Object Hierarchy:
Description:
[
CCode ( type_id =
"mx_widget_get_type ()" ) ]
public abstract class Widget :
Actor,
Implementor,
Animatable,
Container,
Scriptable,
Stylable
Base class for stylable actors.
The contents of the Widget structure are private and should only be accessed through the public API.
Content:
Properties:
Creation methods:
Methods:
- public void apply_style (Style style)
Used to implement how a new style instance should be applied in the
widget.
- public void get_available_area (ActorBox allocation, ActorBox area)
Copies allocation
into area
and accounts for
the padding values.
- public Color get_background_color ()
Get the color used as the background.
- public unowned Handle get_background_texture ()
Get the texture used as the background image.
- public bool get_disabled ()
Get the value of the "disabled" property.
- public unowned Menu get_menu ()
Get the object in the
menu property.
- public void get_padding (out unowned Padding padding)
Gets the padding of the widget, set using the "padding" CSS property.
- public uint get_tooltip_delay ()
Get the value of the "tooltip-delay" property.
- public unowned string get_tooltip_text ()
Get the current tooltip string
- public void hide_tooltip ()
Hide the tooltip for this
- public void long_press_cancel ()
Cancel a long-press timeout if one is running and emit the signal to
notify that the long-press has been cancelled.
- public void long_press_query (Event event)
Emit the long-press query signal and start a long-press timeout if
required.
- public void set_disabled (bool disabled)
Set the disabled property.
- public void set_menu (Menu menu)
Set the value of the
menu property.
- public void set_tooltip_delay (uint delay)
Set the value, in milliseconds, of the "tooltip-delay" property.
- public void set_tooltip_text (string text)
Set the tooltip text of the widget.
- public void show_tooltip ()
Show the tooltip for this
Signals:
Inherited Members:
All known members inherited from class Clutter.Actor
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Atk.Implementor
All known members inherited from interface Clutter.Animatable
- animate_property
- find_property
- get_initial_state
- interpolate_value
All known members inherited from interface Clutter.Container
- @foreach
- actor_added
- actor_removed
- add
- add_actor
- add_valist
- child_get
- child_get_property
- child_notify
- child_set
- child_set_property
- class_find_child_property
- class_list_child_properties
- create_child_meta
- destroy_child_meta
- find_child_by_name
- find_child_property
- foreach_with_internals
- get_child_meta
- get_children
- list_child_properties
- lower_child
- raise_child
- remove
- remove_actor
- remove_valist
- sort_depth_order
All known members inherited from interface Clutter.Scriptable
All known members inherited from interface Mx.Stylable