|
enum class | SelectionMode { HOVER
, NORMAL
} |
|
enum class | SelectionTool { BOX
, LASSO
, PAINT
} |
|
enum class | SelectionQualifier { INCLUDE_ORIGIN
, INCLUDE_BOX
, TOUCH_BOX
, AUTO
} |
|
enum class | HighlightMode { HIGHLIGHT
, DIM
, SHADOW
} |
|
enum class | LayerMode { AS_IS
, WORK_ONLY
, SHADOW_OTHER
} |
|
typedef sigc::signal< void, SelectionMode > | type_signal_selection_mode_changed |
|
typedef sigc::signal< void > | type_signal_selection_changed |
|
typedef sigc::signal< void, const Coordi & > | type_signal_cursor_moved |
|
typedef sigc::signal< void, unsigned int > | type_signal_grid_mul_changed |
|
typedef sigc::signal< std::string, const SelectableRef & > | type_signal_request_display_name |
|
typedef sigc::signal< void, bool & > | type_signal_can_steal_focus |
|
typedef sigc::signal< void > | type_signal_scale_changed |
|
enum class | PanelMode { INCLUDE
, SKIP
} |
|
|
void | set_selection_mode (SelectionMode mode) |
|
SelectionMode | get_selection_mode () const |
|
type_signal_selection_mode_changed | signal_selection_mode_changed () |
|
void | set_highlight_mode (HighlightMode mode) |
|
HighlightMode | get_highlight_mode () const |
|
void | set_highlight_enabled (bool x) |
|
void | set_highlight_on_top (bool on_top) |
|
void | set_layer_mode (LayerMode mode) |
|
std::set< SelectableRef > | get_selection () |
|
void | set_selection (const std::set< SelectableRef > &sel, bool emit=true) |
|
void | select_all () |
|
void | set_cursor_pos (const Coordi &c) |
|
void | set_cursor_external (bool v) |
|
Coordi | get_cursor_pos () |
|
Coordf | get_cursor_pos_win () |
|
Target | get_current_target () |
|
void | set_selection_allowed (bool a) |
|
std::pair< float, Coordf > | get_scale_and_offset () |
|
void | set_scale_and_offset (float sc, Coordf ofs) |
|
Coordi | snap_to_grid (const Coordi &c, unsigned int div=1) const |
|
void | set_flip_view (bool fl) |
|
bool | get_flip_view () const override |
|
void | set_view_angle (float a) |
|
float | get_view_angle () const override |
|
void | set_cursor_size (float size) |
|
void | set_cursor_size (Appearance::CursorSize) |
|
void | clear () override |
|
type_signal_selection_changed | signal_selection_changed () |
|
type_signal_selection_changed | signal_hover_selection_changed () |
|
type_signal_cursor_moved | signal_cursor_moved () |
|
type_signal_grid_mul_changed | signal_grid_mul_changed () |
|
unsigned int | get_grid_mul () const |
|
type_signal_request_display_name | signal_request_display_name () |
|
type_signal_can_steal_focus | signal_can_steal_focus () |
|
type_signal_scale_changed | signal_scale_changed () |
|
void | center_and_zoom (const Coordf ¢er, float scale=-1) |
|
void | zoom_to_bbox (const Coordf &a, const Coordf &b) |
|
void | zoom_to_bbox (const std::pair< Coordf, Coordf > &bb) |
|
void | ensure_min_size (float w, float h) |
|
void | zoom_to_center (float factor) |
|
Glib::PropertyProxy< int > | property_work_layer () |
|
Glib::PropertyProxy< float > | property_layer_opacity () |
|
Glib::PropertyProxy_ReadOnly< float > | property_layer_opacity () const |
|
void | update_markers () override |
|
std::set< SelectableRef > | get_selection_at (const Coordi &c) |
|
Coordf | screen2canvas (const Coordf &p) const |
|
void | update_cursor_pos (double x, double y) |
|
const Appearance & | get_appearance () const |
|
void | set_appearance (const Appearance &a) |
|
const Color & | get_color (ColorP colorp) const |
|
void | inhibit_drag_selection () |
|
int | _animate_step (GdkFrameClock *frame_clock) |
|
float | get_width () const |
|
float | get_height () const |
|
CanvasAnnotation * | create_annotation () |
|
void | remove_annotation (CanvasAnnotation *a) |
|
bool | layer_is_annotation (int l) const |
|
void | set_grid_spacing (uint64_t x, uint64_t y) |
|
void | set_grid_spacing (uint64_t s) |
|
Coordi | get_grid_spacing () const |
|
void | set_grid_origin (const Coordi &c) |
|
bool | layer_is_visible (int layer) const |
|
bool | layer_is_visible (LayerRange layer) const |
|
void | set_colors2 (const std::vector< ColorI > &c) |
|
int | get_last_grid_div () const |
|
void | update (const class Symbol &sym, const Placement &transform=Placement(), bool edit=true) |
|
void | update (const class Sheet &sheet) |
|
void | update (const class Padstack &padstack, bool edit=true) |
|
void | update (const class Package &pkg, bool edit=true) |
|
void | update (const class Board &brd, PanelMode mode=PanelMode::INCLUDE) |
|
void | update (const class Frame &fr, bool edit=true) |
|
void | update (const class Decal &dec, bool edit=true) |
|
ObjectRef | add_line (const std::deque< Coordi > &pts, int64_t width, ColorP color, int layer) |
|
void | remove_obj (const ObjectRef &r) |
|
void | hide_obj (const ObjectRef &r) |
|
void | show_obj (const ObjectRef &r) |
|
void | set_flags (const ObjectRef &r, uint8_t mask_set, uint8_t mask_clear) |
|
void | set_flags_all (uint8_t mask_set, uint8_t mask_clear) |
|
void | reset_color2 () |
|
void | set_color2 (const ObjectRef &r, uint8_t color) |
|
void | show_all_obj () |
|
const LayerDisplay & | get_layer_display (int index) const |
|
void | set_layer_display (int index, const LayerDisplay &ld) |
|
void | set_layer_color (int layer, const Color &color) |
|
bool | layer_is_visible (int layer) const |
|
bool | layer_is_visible (LayerRange layer) const |
|
std::pair< Coordf, Coordf > | get_bbox (bool visible_only=true) const |
|
|
void | push () override |
|
void | request_push () override |
|
void | on_size_allocate (Gtk::Allocation &alloc) override |
|
void | on_realize () override |
|
bool | on_render (const Glib::RefPtr< Gdk::GLContext > &context) override |
|
bool | on_button_press_event (GdkEventButton *button_event) override |
|
bool | on_button_release_event (GdkEventButton *button_event) override |
|
bool | on_motion_notify_event (GdkEventMotion *motion_event) override |
|
bool | on_scroll_event (GdkEventScroll *scroll_event) override |
|
Glib::RefPtr< Gdk::GLContext > | on_create_context () override |
|
void | add_triangle (int layer, const Coordf &p0, const Coordf &p1, const Coordf &p2, ColorP co, uint8_t flg=0, uint8_t color2=0) |
|
void | begin_group (int layer) |
|
void | end_group () |
|
void | object_ref_push (const ObjectRef &ref) |
|
template<typename... Args> |
void | object_ref_push (Args... args) |
|
void | object_ref_pop () |
|
void | render (const class Symbol &sym, bool on_sheet=false, bool smashed=false, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class Junction &junc, bool interactive=true, ObjectType mode=ObjectType::INVALID) |
|
void | render (const class SchematicJunction &junc) |
|
void | render (const class Line &line, bool interactive=true, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class SymbolPin &pin, bool interactive=true, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class Arc &arc, bool interactive=true, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class Sheet &sheet) |
|
void | render (const class SchematicSymbol &sym) |
|
void | render (const class LineNet &line) |
|
void | render (const class NetLabel &label) |
|
void | render (const class BusLabel &label) |
|
void | render (const class Warning &warn) |
|
void | render (const class PowerSymbol &sym) |
|
void | render (const class BusRipper &ripper) |
|
void | render (const class Text &text, bool interactive=true, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class Padstack &padstack, bool interactive=true) |
|
void | render (const class Polygon &polygon, bool interactive=true, ColorP co=ColorP::FROM_LAYER) |
|
void | render (const class Shape &shape, bool interactive=true) |
|
void | render (const class Hole &hole, bool interactive=true) |
|
void | render (const class Package &package, bool interactive=true, bool smashed=false, bool omit_silkscreen=false, bool omit_outline=false) |
|
void | render_pad_overlay (const class Pad &pad) |
|
void | render (const class Pad &pad) |
|
void | render (const class Board &brd, bool interactive=true, PanelMode mode=PanelMode::INCLUDE, OutlineMode outline_mode=OutlineMode::INCLUDE) |
|
void | render (const class BoardPackage &pkg, bool interactive=true) |
|
void | render (const class BoardHole &hole, bool interactive=true) |
|
void | render (const class Track &track, bool interactive=true) |
|
void | render (const class Via &via, bool interactive=true) |
|
void | render (const class Dimension &dim) |
|
void | render (const class Frame &frame, bool on_sheet=false) |
|
void | render (const class ConnectionLine &line) |
|
void | render (const class BoardPanel &panel) |
|
void | render (const class Picture &pic) |
|
void | render (const class Decal &decal, bool interactive=true) |
|
void | render (const class BoardDecal &decal) |
|
void | set_lod_size (float size) |
|
void | draw_line (const Coord< float > &a, const Coord< float > &b, ColorP color=ColorP::FROM_LAYER, int layer=10000, bool tr=true, uint64_t width=0) |
|
void | draw_cross (const Coord< float > &o, float size, ColorP color=ColorP::FROM_LAYER, int layer=10000, bool tr=true, uint64_t width=0) |
|
void | draw_plus (const Coord< float > &o, float size, ColorP color=ColorP::FROM_LAYER, int layer=10000, bool tr=true, uint64_t width=0) |
|
void | draw_box (const Coord< float > &o, float size, ColorP color=ColorP::FROM_LAYER, int layer=10000, bool tr=true, uint64_t width=0) |
|
void | draw_arc (const Coord< float > ¢er, float radius, float a0, float a1, ColorP color=ColorP::FROM_LAYER, int layer=10000) |
|
void | draw_circle (const Coord< float > ¢er, float radius, ColorP color=ColorP::FROM_LAYER, int layer=10000) |
|
std::pair< Coordf, Coordf > | draw_arc2 (const Coord< float > ¢er, float radius0, float a0, float a1, ColorP color, int layer, uint64_t width) |
|
void | draw_arc0 (const Coord< float > ¢er, float radius0, float a0, float a1, ColorP color, int layer, uint64_t width) |
|
std::pair< Coordf, Coordf > | draw_text0 (const Coordf &p, float size, const std::string &rtext, int angle, bool flip, TextOrigin origin, ColorP color, int layer=10000, uint64_t width=0, bool draw=true, TextData::Font font=TextData::Font::SIMPLEX, bool center=false, bool mirror=false) |
|
void | draw_error (const Coordf ¢er, float scale, const std::string &text, bool tr=true) |
|
std::tuple< Coordf, Coordf, Coordi > | draw_flag (const Coordf &position, const std::string &txt, int64_t size, Orientation orientation, ColorP color=ColorP::FROM_LAYER) |
|
void | draw_lock (const Coordf ¢er, float size, ColorP color=ColorP::FROM_LAYER, int layer=10000, bool tr=true) |
|
virtual bool | img_layer_is_visible (int layer) const |
|
virtual void | img_net (const class Net *net) |
|
virtual void | img_polygon (const Polygon &poly, bool tr=true) |
|
virtual void | img_padstack (const Padstack &ps) |
|
virtual void | img_set_padstack (bool v) |
|
virtual void | img_line (const Coordi &p0, const Coordi &p1, const uint64_t width, int layer=10000, bool tr=true) |
|
virtual void | img_hole (const Hole &hole) |
|
virtual void | img_patch_type (PatchType type) |
|
virtual void | img_draw_text (const Coordf &p, float size, const std::string &rtext, int angle, bool flip, TextOrigin origin, int layer=10000, uint64_t width=0, TextData::Font font=TextData::Font::SIMPLEX, bool center=false, bool mirror=false) |
|
void | transform_save () |
|
void | transform_restore () |
|
Color | get_layer_color (int layer) const |
|
int | get_overlay_layer (const LayerRange &layer, bool ignore_flip=false) |
|
bool | is_overlay_layer (int overlay_layer, int layer) const |
|