Icon
Object Hierarchy:
Description:
public class Icon :
Widget
Widget to display text.
The text will be automatically wrapped if the parent Container is not wide enough to fit the entire text value.
Content:
Static methods:
Creation methods:
- public Icon.from_context (Context context)
Creates a new instance of a Icon widget using the provided Context.
- public Icon.from_stock (StockIcon stock_icon) throws IOError
Creates a new instance of a Icon widget using a stock icon.
- public Icon.from_png (string file) throws IOError
Creates a new instance of a Icon widget from a PNG file.
- public Icon ()
Methods:
- protected override int get_preferred_width ()
Gets the preferred width of the widget.
- protected override int get_preferred_height ()
Gets the preferred height of the widget.
- protected override void draw_content ()
Implementations should override this method.
Inherited Members:
All known members inherited from class EV3devKit.UI.Widget
All known members inherited from class GLib.Object
- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer
- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata
- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count