KiCad PCB EDA Suite
PART_DRAW_OPTIONS Struct Reference

#include <class_libentry.h>

Public Member Functions

bool PinIsDangling (size_t aPin) const
 

Static Public Member Functions

static PART_DRAW_OPTIONS Default ()
 

Public Attributes

GR_DRAWMODE draw_mode
 Device context drawing mode, see wxDC. More...
 
COLOR4D color
 Color to draw part in. More...
 
TRANSFORM transform
 Coordinate adjustment settings. More...
 
bool show_pin_text
 Whether to show pin texts. More...
 
bool draw_visible_fields
 Whether to draw "visible" fields. More...
 
bool draw_hidden_fields
 Whether to draw "hidden" fields. More...
 
bool only_selected
 Draws only the body items that are selected, for block moves. More...
 
std::vector< bool > dangling
 which pins should display as dangling, or empty for All More...
 
bool show_elec_type
 Whether to show the pin electrical type. More...
 

Detailed Description

Definition at line 178 of file class_libentry.h.

Member Function Documentation

static PART_DRAW_OPTIONS PART_DRAW_OPTIONS::Default ( )
inlinestatic

Definition at line 190 of file class_libentry.h.

References color, DefaultTransform, draw_hidden_fields, draw_mode, draw_visible_fields, GR_DEFAULT_DRAWMODE, only_selected, show_elec_type, show_pin_text, and transform.

Referenced by SCH_COMPONENT::Draw(), DrawMovingBlockOutlines(), LIB_EDIT_FRAME::PrintPage(), LIB_VIEW_FRAME::RedrawActiveWindow(), LIB_EDIT_FRAME::RedrawComponent(), DIALOG_RESCUE_EACH::renderPreview(), and DIALOG_CHOOSE_COMPONENT::RenderPreview().

191  {
192  PART_DRAW_OPTIONS def;
194  def.color = COLOR4D::UNSPECIFIED;
196  def.show_pin_text = true;
197  def.draw_visible_fields = true;
198  def.draw_hidden_fields = true;
199  def.only_selected = false;
200  def.show_elec_type = false;
201  return def;
202  }
bool draw_hidden_fields
Whether to draw "hidden" fields.
#define GR_DEFAULT_DRAWMODE
Definition: general.h:69
TRANSFORM DefaultTransform
Definition: eeschema.cpp:57
GR_DRAWMODE draw_mode
Device context drawing mode, see wxDC.
COLOR4D color
Color to draw part in.
bool show_pin_text
Whether to show pin texts.
bool only_selected
Draws only the body items that are selected, for block moves.
bool show_elec_type
Whether to show the pin electrical type.
bool draw_visible_fields
Whether to draw "visible" fields.
TRANSFORM transform
Coordinate adjustment settings.
bool PART_DRAW_OPTIONS::PinIsDangling ( size_t  aPin) const
inline

Definition at line 204 of file class_libentry.h.

Referenced by LIB_PART::Draw().

205  {
206  if( aPin < dangling.size() )
207  return dangling[aPin];
208  else
209  return true;
210  }
std::vector< bool > dangling
which pins should display as dangling, or empty for All

Member Data Documentation

COLOR4D PART_DRAW_OPTIONS::color

Color to draw part in.

Definition at line 181 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

std::vector<bool> PART_DRAW_OPTIONS::dangling

which pins should display as dangling, or empty for All

Definition at line 187 of file class_libentry.h.

bool PART_DRAW_OPTIONS::draw_hidden_fields

Whether to draw "hidden" fields.

Definition at line 185 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

GR_DRAWMODE PART_DRAW_OPTIONS::draw_mode

Device context drawing mode, see wxDC.

Definition at line 180 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

bool PART_DRAW_OPTIONS::draw_visible_fields

Whether to draw "visible" fields.

Definition at line 184 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

bool PART_DRAW_OPTIONS::only_selected

Draws only the body items that are selected, for block moves.

Definition at line 186 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

bool PART_DRAW_OPTIONS::show_elec_type

Whether to show the pin electrical type.

Definition at line 188 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

bool PART_DRAW_OPTIONS::show_pin_text

Whether to show pin texts.

Definition at line 183 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().

TRANSFORM PART_DRAW_OPTIONS::transform

Coordinate adjustment settings.

Definition at line 182 of file class_libentry.h.

Referenced by Default(), and LIB_PART::Draw().


The documentation for this struct was generated from the following file: