xsi_viewcontext.h
Go to the documentation of this file.
00001 //*****************************************************************************
00011 //*****************************************************************************
00012 
00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
00014 #pragma once
00015 #endif
00016 
00017 #ifndef __XSIVIEWCONTEXT_H__
00018 #define __XSIVIEWCONTEXT_H__
00019 
00020 #include <xsi_base.h>
00021 #include <xsi_value.h>
00022 #include <xsi_view.h>
00023 
00024 namespace XSI {
00025 
00026 //*****************************************************************************
00159 //*****************************************************************************
00160 
00161 class SICPPSDKDECL ViewContext : public CBase
00162 {
00163 public:
00164 
00166     ViewContext();
00167 
00169     ~ViewContext();
00170 
00174     ViewContext(const CRef& in_ref);
00175 
00179     ViewContext(const ViewContext& in_obj);
00180 
00185     bool IsA( siClassID in_ClassID) const;
00186 
00190     siClassID GetClassID() const;
00191 
00196     ViewContext& operator=(const ViewContext& in_obj);
00197 
00203     ViewContext& operator=(const CRef& in_ref);
00204 
00213     CString     GetMetadata() const;
00214 
00218     CValue      GetUserData();
00219 
00230     CStatus     PutUserData(const CValue& in_val);
00231 
00236     void*       GetParentWindowHandle();
00237 
00242     View        GetView();
00243 
00248     CStatus     GetNotificationData(siEventID& out_eEventID, void** out_pData);
00249 
00254     CStatus     SetFlags(LONG in_lFlags);
00255 
00256 
00264     CStatus     SetXWindowTopLevel ( void* in_pHandle );
00265 
00270     void*       GetTopLevelWidget ();
00271 
00272 
00273     private:
00274     ViewContext * operator&() const;
00275     ViewContext * operator&();
00276 };
00277 
00278 };
00279 #endif // __XSICONTEXT_H__