PathLayer
Object Hierarchy:
Shumate.PathLayer
Shumate.PathLayer
Shumate.PathLayer
Shumate.Layer
Shumate.Layer
Shumate.Layer->Shumate.PathLayer
Gtk.Widget
Gtk.Widget
Gtk.Widget->Shumate.Layer
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Shumate.PathLayer
Gtk.Accessible->Shumate.Layer
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Shumate.PathLayer
Gtk.Buildable->Shumate.Layer
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Shumate.PathLayer
Gtk.ConstraintTarget->Shumate.Layer
Gtk.ConstraintTarget->Gtk.Widget
Description:
[
CCode ( type_id =
"shumate_path_layer_get_type ()" ) ]
public sealed class PathLayer :
Layer ,
Accessible ,
Buildable ,
ConstraintTarget
A layer displaying line path between inserted [iface@Location] objects
This layer shows a connection between inserted objects implementing the [iface@Location] interface. This means that both [class@Marker]
objects and [class@Coordinate] objects can be inserted into the layer. Of course, custom objects implementing the [iface@Location]
interface can be used as well.
Content:
Properties:
public bool closed { get ; set ; }
The shape is a closed path
public bool fill { get ; set ; }
The shape should be filled
public RGBA fill_color { owned get ; set ; }
The path's fill color
public RGBA outline_color { owned get ; set ; }
The path's outline color
public double outline_width { get ; set ; }
The path's outline width (in pixels)
public bool stroke { get ; set ; }
The shape should be stroked
public RGBA stroke_color { owned get ; set ; }
The path's stroke color
public double stroke_width { get ; set ; }
The path's stroke width (in pixels)
Creation methods:
Methods:
public void add_node (Location location)
Adds a [iface@Location] object to the layer.
public bool get_closed ()
Gets information whether the path is closed.
public List <uint > get_dash ()
Returns the list of dash segment lengths.
public bool get_fill ()
Checks whether the path is filled.
public RGBA ? get_fill_color ()
Gets the path's fill color.
public List <unowned Location > get_nodes ()
Gets a copy of the list of all [iface@Location] objects inserted into
the layer.
public RGBA ? get_outline_color ()
Gets the path's outline color.
public double get_outline_width ()
Gets the width of the outline.
public bool get_stroke ()
Checks whether the path is stroked.
public RGBA ? get_stroke_color ()
Gets the path's stroke color.
public double get_stroke_width ()
Gets the width of the stroke.
public void insert_node (Location location, uint position)
Inserts a [iface@Location] object to the specified position.
public void remove_all ()
Removes all [iface@Location] objects from the layer.
public void remove_node (Location location)
Removes the [iface@Location] object from the layer.
public void set_closed (bool value)
Makes the path closed.
public void set_dash (List <uint > dash_pattern)
Sets dashed line pattern in a way similar to
set_dash of cairo.
public void set_fill (bool value)
Sets the path to be filled
public void set_fill_color (RGBA ? color)
Set the path's fill color.
public void set_outline_color (RGBA ? color)
Set the path's outline color.
public void set_outline_width (double value)
Sets the width of the outline
public void set_stroke (bool value)
Sets the path to be stroked
public void set_stroke_color (RGBA ? color)
Set the path's stroke color.
public void set_stroke_width (double value)
Sets the width of the stroke
Inherited Members:
All known members inherited from class Shumate.Layer
All known members inherited from class Gtk.Widget
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 Gtk.Accessible
accessible_role
announce
get_accessible_parent
get_accessible_role
get_at_context
get_bounds
get_first_accessible_child
get_next_accessible_sibling
get_platform_state
reset_property
reset_relation
reset_state
set_accessible_parent
update_next_accessible_sibling
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id