Пример #1
0
void rendermenu()
{
    setscope(false);
    gmenu &m = *curmenu;
    m.refresh();
    m.render();
}
Пример #2
0
/*! \brief jholder assignment operator
   Object takes on the widest scope of the two, local at a minimum
*/
  jholder &operator=(jholder const &c)
  {
    jobjectRefType newtype = JNILocalRefType;
    if(c.m_refType == JNIGlobalRefType || m_refType == JNIGlobalRefType)
      newtype = JNIGlobalRefType;

    reset(c.get());
    setscope(newtype);
    return *this;
  }
Пример #3
0
/*! \brief set an object to global scope. Has no effect if it's already global
*/
  void setGlobal()
  {
    setscope(JNIGlobalRefType);
  }
Пример #4
0
/*! \brief jholder constructor from a native jni object
   Incoming objects already hold a local ref.
*/
  explicit jholder(const T& obj)
  :m_refType(JNILocalRefType)
  ,m_object(obj)
  {
    setscope(JNILocalRefType);
  }
Пример #5
0
/*! \brief jholder copy constructor.
   Object is copied, scope matches the original
*/
  jholder(jholder<T> const &c)
  :m_refType(JNIInvalidRefType)
  ,m_object(c.get())
  {
    setscope(c.m_refType);
  }