TextItem
Object Hierarchy:
Description:
Schematic text
Represents text or an attribute on a schematic
Content:
Constants:
Properties:
- public TextAlignment alignment { set; get; }
The alignment of the text
- public int angle { set; get; }
The angle of the text in degrees
- public int color { construct set; get; }
The color of the attribute
- public string? name { get; }
The name of the attribute
- public string text { set; owned get; }
The entire text for this item
- public TextPresentation presentation { set; get; }
The presentation of the text
- public int size { set; get; }
The size of the text
- public string? value { get; }
The attribute value
- public string visible_text { get; }
The visible text on the schematic
- public Visibility visibility { construct set; get; }
The visibility of the text
- public int x { set; get; }
The x coordinate of the insertion point
- public int y { set; get; }
The y coordinate of the insertion point
Creation methods:
Methods:
- public override Bounds calculate_bounds (SchematicPainter painter, bool reveal)
Calculate the bounds of this schematic item
- public override void invalidate_on (Invalidatable invalidatable)
Draw this item using the given painter
- public override void draw (SchematicPainter painter, bool reveal, bool selected)
Draw this item using the given painter
- public override bool intersects_box (SchematicPainter painter, Bounds box)
Check if this item intersects a box
- public override void mirror_x (int cx)
Mirror the item and child attributes along the x axis
- public override void mirror_y (int cy)
Mirror the item and child attributes along the y axis
- public override void read_with_params (string[] @params, DataInputStream stream) throws IOError, ParseError
Read this item from the input stream
- public override void rotate (int cx, int cy, int angle)
Rotate this item and its child attributes
- public void set_pair (string name, string value)
Set both the name and the value
- public void set_point (int index, int x, int y)
Change the insertion point of the text
- public override double shortest_distance (SchematicPainter painter, int x, int y)
Calculate the shortest distance from the point to the item
- public override void translate (int dx, int dy)
Translate this item and its child attributes
- public override void write (DataOutputStream stream) throws IOError
Write this item to the output stream
Inherited Members:
All known members inherited from class Geda3.SchematicItem
All known members inherited from class GLib.Object
- interface_find_property
- interface_install_property
- interface_list_properties
- @new
- new_valist
- newv
- new_with_properties
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- @get
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- is_floating
- notify_property
- @ref
- ref_sink
- replace_data
- replace_qdata
- remove_toggle_ref
- remove_weak_pointer
- @set
- 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
- notify
- ref_count
All known members inherited from interface Geda3.AttributeChild
All known members inherited from interface Geda3.Colorable