## BtWireCanvasItem

BtWireCanvasItem — class for the editor wire views wire canvas item

## Synopsis

    #include "bt-edit.h"

                        BtWireCanvasItem;
    BtWireCanvasItem *  bt_wire_canvas_item_new             (const BtMainPageMachines *main_page_machines,
                                                             BtWire *wire,
                                                             gdouble pos_xs,
                                                             gdouble pos_ys,
                                                             gdouble pos_xe,
                                                             gdouble pos_ye,
                                                             BtMachineCanvasItem *src_machine_item,
                                                             BtMachineCanvasItem *dst_machine_item);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GnomeCanvasItem
                         +----GnomeCanvasGroup
                               +----BtWireCanvasItem

## Properties

      "app"                      BtEditApplication*    : Read / Write
      "dst"                      BtMachineCanvasItem*  : Read / Write
      "h"                        gdouble               : Read / Write
      "machines-page"            BtMainPageMachines*   : Read / Write
      "src"                      BtMachineCanvasItem*  : Read / Write
      "w"                        gdouble               : Read / Write
      "wire"                     BtWire*               : Read / Write

## Description

Provides volume control on the wires, as well as a menu to disconnect wires and to launch the analyzer screen.

## Details

### BtWireCanvasItem

    typedef struct _BtWireCanvasItem BtWireCanvasItem;

the root window for the editor application

### bt_wire_canvas_item_new ()

    BtWireCanvasItem *  bt_wire_canvas_item_new             (const BtMainPageMachines *main_page_machines,
                                                             BtWire *wire,
                                                             gdouble pos_xs,
                                                             gdouble pos_ys,
                                                             gdouble pos_xe,
                                                             gdouble pos_ye,
                                                             BtMachineCanvasItem *src_machine_item,
                                                             BtMachineCanvasItem *dst_machine_item);

Create a new instance

`main_page_machines` : | the machine page the new item belongs to
`wire` : | the wire for which a canvas item should be created
`pos_xs` : | the horizontal start location
`pos_ys` : | the vertical start location
`pos_xe` : | the horizontal end location
`pos_ye` : | the vertical end location
`src_machine_item` : | the machine item at start
`dst_machine_item` : | the machine item at end
Returns : | the new instance or `NULL` in case of an error

## Property Details

### The `"app"` property

      "app"                      BtEditApplication*    : Read / Write

Set application object, the window belongs to.

### The `"dst"` property

      "dst"                      BtMachineCanvasItem*  : Read / Write

Set wire dst machine canvas item.

### The `"h"` property

      "h"                        gdouble               : Read / Write

height of the wire.

Allowed values: [-100000,100000]

Default value: 1

### The `"machines-page"` property

      "machines-page"            BtMainPageMachines*   : Read / Write

Set application object, the window belongs to.

### The `"src"` property

      "src"                      BtMachineCanvasItem*  : Read / Write

Set wire src machine canvas item.

### The `"w"` property

      "w"                        gdouble               : Read / Write

width of the wire.

Allowed values: [-100000,100000]

Default value: 1

### The `"wire"` property

      "wire"                     BtWire*               : Read / Write

Set wire object, the item belongs to.

## See Also

btwireanalysisdialog