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

Method getEntryThemeInfo

src/ui/entry.cpp:171–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void Entry::getEntryThemeInfo(int* scroll, int* caret, int* state,
172 int* selbeg, int* selend)
173{
174 if (scroll) *scroll = m_scroll;
175 if (caret) *caret = m_caret;
176 if (state) *state = !m_hidden && m_state;
177
178 if ((m_select >= 0) &&
179 (m_caret != m_select)) {
180 *selbeg = MIN(m_caret, m_select);
181 *selend = MAX(m_caret, m_select)-1;
182 }
183 else {
184 *selbeg = -1;
185 *selend = -1;
186 }
187}
188
189gfx::Rect Entry::getEntryTextBounds() const
190{

Callers 2

paintEntryMethod · 0.80
paintComboBoxEntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected