Class Marker (version 0.18)Description: The floating-point coordinate marker object The marker is a visual object that "marks" (highlights) a certain area of the layout, given by a database object. This object accepts database objects with floating-point coordinates in micron values.
Method Overview
[const] unsigned int colorDescription: Get the color of the marker This value is valid only if has_color? is true.
color=( unsigned int color )Description: Set the color of the marker The color is a 32bit unsigned integer encoding the RGB values in the lower 3 bytes (blue in the lowest significant byte). The color can be reset with reset_color, in which case, the default foreground color is used.
destroyDescription: Explicitly destroy the object Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
[const] bool destroyedDescription: Tell, if the object was destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.
[const] int dither_patternDescription: Get the stipple pattern index See dither_pattern= for a description of the stipple pattern index.
dither_pattern=( int index )Description: Set the stipple pattern index A value of -1 or less than zero indicates that the marker is not filled. Otherwise, the value indicates which pattern to use for filling the marker.
[const] int haloDescription: Get the halo flag See halo= for a description of the halo flag.
halo=( int halo )Description: Set the halo flag The halo flag is either -1 (for taking the default), 0 to disable the halo or 1 to enable it. If the halo is enabled, a pixel border with the background color is drawn around the marker, the vertices and texts.
[const] bool has_color?Description: True, if the marker has a specific color
[const] int line_widthDescription: Get the line width of the marker See line_width= for a description of the line width.
line_width=( int width )Description: Set the line width of the marker This is the width of the line drawn for the outline of the marker.
[static] Marker new( ref LayoutView view )Description: The constructor for a marker A marker is always associated with a view, in which it is shown. The view this marker is associated with must be passed to the constructor.
reset_colorDescription: Reset the color of the marker See set_color for a description of the color property of the marker.
set_box( DBox box )Description: Set the box the marker is to display Makes the marker show a box. The box must be given in micron units. If the box is empty, no marker is drawn.
set_edge( DEdge edge )Description: Set the edge the marker is to display Makes the marker show a edge. The edge must be given in micron units.
set_path( DPath path )Description: Set the path the marker is to display Makes the marker show a path. The path must be given in micron units.
set_polygon( DPolygon polygon )Description: Set the polygon the marker is to display Makes the marker show a polygon. The polygon must be given in micron units.
set_text( DText text )Description: Set the text the marker is to display Makes the marker show a text. The text must be given in micron units.
[const] int vertex_sizeDescription: Get the vertex size of the marker See vertex_size= for a description.
vertex_size=( int size )Description: Set the vertex size of the marker This is the size of the rectangles drawn for the vertices object.
|