コード例 #1
0
 public virtual void SetFilePath(ResourceData file)
 {
     CocoStudioEngineAdapterPINVOKE.CSPanel_SetFilePath(this.swigCPtr, CSResourceData.getCPtr(new CSResourceData(file.Path, (CSEnumResourceType)file.Type, file.Plist)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public virtual void SetFileData(ResourceData resourceData)
 {
     CocoStudioEngineAdapterPINVOKE.CSImageView_SetFileData(this.swigCPtr, CSResourceData.getCPtr(new CSResourceData(resourceData.Path, (CSEnumResourceType)resourceData.Type, resourceData.Plist)));
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public CSResourceData(CSResourceData other)
     : this(CocoStudioEngineAdapterPINVOKE.new_CSResourceData__SWIG_4(CSResourceData.getCPtr(other)), true)
 {
     if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
     {
         throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public virtual ResourceData GetFileData()
        {
            CSResourceData csResourceData = new CSResourceData(CocoStudioEngineAdapterPINVOKE.CSImageView_GetFileData(this.swigCPtr), true);

            return(new ResourceData((EnumResourceType)csResourceData.GetResourceType(), csResourceData.GetPath(), csResourceData.GetPlistFile()));
        }
コード例 #5
0
ファイル: CSSlider.cs プロジェクト: yuluos/CocoStudio2.0.6
        public virtual ResourceData GetGroundBarTexture()
        {
            CSResourceData csResourceData = new CSResourceData(CocoStudioEngineAdapterPINVOKE.CSSlider_GetGroundBarTexture(this.swigCPtr), true);

            return(new ResourceData((EnumResourceType)csResourceData.GetResourceType(), csResourceData.GetPath(), csResourceData.GetPlistFile()));
        }
コード例 #6
0
ファイル: CSCheckBox.cs プロジェクト: yuluos/CocoStudio2.0.6
        public virtual ResourceData GetPressedGroundFile()
        {
            CSResourceData csResourceData = new CSResourceData(CocoStudioEngineAdapterPINVOKE.CSCheckBox_GetPressedGroundFile(this.swigCPtr), true);

            return(new ResourceData((EnumResourceType)csResourceData.GetResourceType(), csResourceData.GetPath(), csResourceData.GetPlistFile()));
        }
コード例 #7
0
 public static HandleRef getCPtr(CSResourceData obj)
 {
     return(obj == null ? new HandleRef((object)null, IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #8
0
        public bool Equals(ResourceData other)
        {
            bool flag = CocoStudioEngineAdapterPINVOKE.CSResourceData_Equals(this.swigCPtr, CSResourceData.getCPtr(new CSResourceData(other.Path, (CSEnumResourceType)other.Type, other.Plist)));

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(flag);
        }
コード例 #9
0
ファイル: CSTextAtlas.cs プロジェクト: yuluos/CocoStudio2.0.6
        public virtual bool SetAtlasFile(ResourceData file)
        {
            bool flag = CocoStudioEngineAdapterPINVOKE.CSTextAtlas_SetAtlasFile(this.swigCPtr, CSResourceData.getCPtr(new CSResourceData(file.Path, (CSEnumResourceType)file.Type, file.Plist)));

            if (CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Pending)
            {
                throw CocoStudioEngineAdapterPINVOKE.SWIGPendingException.Retrieve();
            }
            return(flag);
        }