MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / IntEntry

Method IntEntry

src/ui/int_entry.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace gfx;
30
31IntEntry::IntEntry(int min, int max, SliderDelegate* sliderDelegate)
32 : Entry(int(std::ceil(std::log10((double)max)))+1, "")
33 , m_min(min)
34 , m_max(max)
35 , m_slider(m_min, m_max, m_min, sliderDelegate)
36 , m_popupWindow(NULL)
37 , m_changeFromSlider(false)
38{
39 m_slider.setFocusStop(false); // In this way the IntEntry doesn't lost the focus
40 m_slider.setTransparent(true);
41 m_slider.Change.connect(&IntEntry::onChangeSlider, this);
42}
43
44IntEntry::~IntEntry()
45{

Callers

nothing calls this directly

Calls 2

setFocusStopMethod · 0.80
setTransparentMethod · 0.80

Tested by

no test coverage detected