Sha256: f56b3802d83fe40517b6f06a83daf088ff5a4af59d9a30f342869c57de7b53de

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

%{
#include <OgreOverlayContainer.h>
%}

%extend Ogre::OverlayContainer {
	void each_child() {
		VALUE vchild = Qnil;
                Ogre::OverlayContainer::ChildIterator iter = self->getChildIterator();
                while (iter.hasMoreElements()) {
                        Ogre::OverlayElement* child = iter.getNext();
                        vchild = SWIG_NewPointerObj(SWIG_as_voidptr(child), SWIGTYPE_p_Ogre__OverlayElement, 0 |  0 );
                        rb_yield_values(1, vchild);
                }

	}

	void each_child_container() {
		VALUE vchild = Qnil;
                Ogre::OverlayContainer::ChildContainerIterator iter = self->getChildContainerIterator();
                while (iter.hasMoreElements()) {
                        Ogre::OverlayContainer* child = iter.getNext();
                        vchild = SWIG_NewPointerObj(SWIG_as_voidptr(child), SWIGTYPE_p_Ogre__OverlayContainer, 0 |  0 );
                        rb_yield_values(1, vchild);
                }

	}

        static Ogre::OverlayContainer* cast(VALUE value) {
                Ogre::OverlayContainer* obj;
                Data_Get_Struct(value, Ogre::OverlayContainer, obj);
                return obj;
         }
}


%include "OgreOverlayContainer.h"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-ogre-0.0.5-x86-linux bindings/ogre/interface/OgreOverlayContainer.i
ruby-ogre-0.0.4-x86-linux bindings/ogre/interface/OgreOverlayContainer.i
ruby-ogre-0.0.3-x86-linux bindings/ogre/interface/OgreOverlayContainer.i
ruby-ogre-0.0.2-x86-linux bindings/ogre/interface/OgreOverlayContainer.i
ruby-ogre-0.0.1-x86-linux bindings/ogre/interface/OgreOverlayContainer.i