MCPcopy Create free account
hub / github.com/KLayout/klayout / draw_cell_properties

Method draw_cell_properties

src/laybasic/laybasic/layRedrawThreadWorker.cc:807–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807void
808RedrawThreadWorker::draw_cell_properties (bool drawing_context, int level, const db::CplxTrans &trans, const db::Box &box, db::properties_id_type prop_id)
809{
810 lay::Renderer &r = *mp_renderer;
811
812 unsigned int plane_group = 2;
813 if (drawing_context) {
814 plane_group = 0;
815 } else if (m_child_context_enabled && level > 0) {
816 plane_group = 1;
817 }
818
819 lay::CanvasPlane *texts = m_planes[2 + plane_group * (planes_per_layer / 3)];
820
821 if (prop_id != 0 && m_show_properties) {
822 r.draw_propstring (prop_id, (trans * box).p1 (), texts, trans);
823 }
824}
825
826static bool
827cells_in (const db::Layout *layout, const db::Cell &cell,

Callers

nothing calls this directly

Calls 2

draw_propstringMethod · 0.80
p1Method · 0.45

Tested by

no test coverage detected