HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_RedrawBlock.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  * Class used to turn any Python code block into an interruptable
8  * operation.
9  */
10 
11 #ifndef __HOM_RedrawBlock_h__
12 #define __HOM_RedrawBlock_h__
13 
14 #include "HOM_API.h"
15 #include "HOM_Errors.h"
16 #include "HOM_Module.h"
17 
18 SWIGOUT(%feature("notabstract") HOM_RedrawBlock;)
19 SWIGOUT(%rename(RedrawBlock) HOM_RedrawBlock;)
20 
22 {
23 public:
24 
25 #ifdef SWIG
26 %extend
27 {
28  %kwargs HOM_RedrawBlock;
29  HOM_RedrawBlock()
30  {
31  return HOM().newRedrawBlock();
32  }
33 }
34 #else
36  { HOM_CONSTRUCT_OBJECT(this) }
37  HOM_RedrawBlock(const HOM_RedrawBlock &operation)
38  { HOM_CONSTRUCT_OBJECT(this) }
39 #endif
40  virtual ~HOM_RedrawBlock()
41  { HOM_DESTRUCT_OBJECT(this) }
42 
43  // Let swig know we're overriding __repr__ for this class so it doesn't
44  // provide its own __repr__.
45  virtual std::string __repr__() = 0;
46 
47 
48  virtual HOM_RedrawBlock *__enter__() = 0;
49 
50  SWIGOUT(%ignore opaqueExit;)
51  virtual void opaqueExit() = 0;
52 
53 #ifdef SWIG
54 %extend
55 {
56  // We can ignore the type, value, and traceback Python objects.
57  SWIGOUT(virtual void __exit__(
58  InterpreterObject type, InterpreterObject value,
59  InterpreterObject traceback)
60  { self->opaqueExit(); };)
61 }
62 #endif
63 
64 };
65 
66 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
HOM_RedrawBlock(const HOM_RedrawBlock &operation)
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
virtual ~HOM_RedrawBlock()
virtual HOM_RedrawBlock * newRedrawBlock()=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
Definition: core.h:1131
HOM_API HOM_Module & HOM()
type
Definition: core.h:1059