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

Method configure

src/laybasic/laybasic/layLayoutViewBase.cc:783–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783bool
784LayoutViewBase::configure (const std::string &name, const std::string &value)
785{
786 lay::Dispatcher::configure (name, value);
787
788 if (name == cfg_default_lyp_file) {
789
790 m_def_lyp_file = value;
791 return false; // not taken - let others set it too.
792
793 } else if (name == cfg_default_add_other_layers) {
794
795 tl::from_string (value, m_add_other_layers);
796 return false; // not taken - let others set it too.
797
798 } else if (name == cfg_background_color) {
799
800 tl::Color color;
801 ColorConverter ().from_string (value, color);
802 background_color (color);
803 // do not take - let others receive the background color events as well
804 return false;
805
806 } else if (name == cfg_default_font_size) {
807
808 int df = 0;
809 tl::from_string (value, df);
810 if (m_default_font_size != df) {
811 // keep a shadow state to correctly issue the redraw call
812 m_default_font_size = df;
813 lay::FixedFont::set_default_font_size (df);
814 redraw_later ();
815 }
816 // do not take - let others have the event for the redraw call
817 return false;
818
819 } else if (name == cfg_bitmap_oversampling) {
820
821 int os = 1;
822 tl::from_string (value, os);
823 if (os != int (mp_canvas->oversampling ())) {
824 mp_canvas->set_oversampling (os);
825 resolution_changed_event ();
826 }
827 return true;
828
829 } else if (name == cfg_highres_mode) {
830
831 bool hrm = false;
832 tl::from_string (value, hrm);
833 if (hrm != mp_canvas->highres_mode ()) {
834 mp_canvas->set_highres_mode (hrm);
835 resolution_changed_event ();
836 }
837 return true;
838
839 } else if (name == cfg_subres_mode) {
840

Callers

nothing calls this directly

Calls 15

abstract_mode_widthFunction · 0.85
min_inst_label_sizeFunction · 0.85
empty_cell_dimensionFunction · 0.85
cell_box_text_fontFunction · 0.85
cell_box_text_transformFunction · 0.85
cell_box_visibleFunction · 0.85
ghost_cells_visibleFunction · 0.85
cell_box_colorFunction · 0.85
text_colorFunction · 0.85
text_visibleFunction · 0.85
bitmap_cachingFunction · 0.85
text_lazy_renderingFunction · 0.85

Tested by

no test coverage detected