void ComboBox::ItemWindow::onKeyReleased(const KeyEvent &e) { uchar keycode = e.getKeyCode(); UIElement::onKeyReleased(e); if(keycode == VK_ESC || keycode == VK_ENTER || keycode == VK_SPACE) { if(keycode != VK_ESC) _cb->setSelectedIndex(_highlighted); closeImpl(); } }
void SerialPort::close() { if (isOpenImpl()) { if (_logger.debug()) { _logger.debug("Closing serial port"); } closeImpl(); _cur = _end = _buffer.begin(); } }
MojErr MojDbSandwichDatabase::close() { LOG_TRACE("Entering function %s", __FUNCTION__); MojErr err = MojErrNone; if (m_db.Valid()) { err = closeImpl(); if (engine()->lazySync()) engine()->getUpdater()->close( getDb() ); } return err; }
MojErr MojDbLevelDatabase::close() { LOG_TRACE("Entering function %s", __FUNCTION__); MojErr err = MojErrNone; if (m_db) { err = closeImpl(); m_primaryProps.clear(); engine()->removeDatabase(this); } return err; }
void IOServiceLibEvent::closeChannel(const ChannelId& id, bool dontCallOnClose, bool closeSock) { ChannelMap::iterator it = channelMap_.find(id); if (it != channelMap_.end()) { ChannelContext* ctx = it->second; channelMap_.erase(it); closeImpl(ctx, dontCallOnClose, closeSock); } }
void ComboBox::ItemWindow::close(const Pos &pos) { // just do this here if we will not receive a mouse-click for the combobox-button // anyway Pos cb = _cb->getPos(); Pos w = _cb->getWindow()->getPos(); Size cbs = _cb->getSize(); gsize_t tbh = _cb->getWindow()->getTitleBarHeight(); if(!(pos.x >= (gpos_t)(w.x + cb.x + cbs.width - cbs.height) && pos.x < (gpos_t)(w.x + cb.x + cbs.width) && pos.y >= (gpos_t)(w.y + cb.y + tbh) && pos.y < (gpos_t)(w.y + cb.y + tbh + cbs.height))) { closeImpl(); } }
void IOServiceLibEvent::close(bool dontCallOnClose) { if (NULL != evbase_) { wakeuper_.close(); while (!channelMap_.empty()) { ChannelMap::iterator it = channelMap_.begin(); ChannelContext* ctx = it->second; channelMap_.erase(it); closeImpl(ctx, dontCallOnClose); } ::event_base_free(evbase_); evbase_ = NULL; } }
bool PlainFile::close() { invokeFiltersOnClose(); return closeImpl(); }
bool OutputFile::close() { return closeImpl(); }
void ZipFile::sweep() { closeImpl(); File::closeImpl(); }
bool Pipe::close() { return closeImpl(); }
MemFile::~MemFile() { closeImpl(); }
bool SSLSocket::close() { return closeImpl(); }
bool PlainFile::close() { return closeImpl(); }
PlainFile::~PlainFile() { closeImpl(); }
void ComboBox::ItemWindow::onMouseReleased(A_UNUSED const MouseEvent &e) { _cb->setSelectedIndex(_highlighted); closeImpl(); }
Socket::~Socket() { closeImpl(); }
File::~File() { closeImpl(); }
void PlainFile::sweep() { closeImpl(); File::sweep(); }
void MemFile::sweep() { closeImpl(); File::sweep(); }
SSLSocket::~SSLSocket() { m_context.reset(); // for sweeping closeImpl(); }
bool MemFile::close() { invokeFiltersOnClose(); return closeImpl(); }
void ZipFile::sweep() { closeImpl(); m_innerFile = nullptr; // it'll get swept elsewhere File::sweep(); }
BZ2File::~BZ2File() { if (m_bzFile) closeImpl(); }
bool MemFile::close() { return closeImpl(); }
void BZ2File::sweep() { if (m_bzFile) { closeImpl(); } File::sweep(); }
ZipFile::~ZipFile() { closeImpl(); DELETEOBJ(HPHP, PlainFile, m_innerFile); }
bool BZ2File::close() { return closeImpl(); }
bool ZipFile::close() { return closeImpl(); }
OutputFile::~OutputFile() { closeImpl(); }