|
LayOut C API
|
Interfaces for exchanging data between SketchUp's Ruby API and C API. More...
Go to the source code of this file.
Macros | |
| #define | RUBY_VALUE unsigned long |
This macro is defining a type matching Ruby's own VALUE type and can be used interchangeably. More... | |
Functions | |
| SU_RESULT | SUEntityToRuby (SUEntityRef entity, RUBY_VALUE *ruby_entity) |
| Converts a C API entity to a Ruby API entity. More... | |
| SU_RESULT | SUEntityFromRuby (RUBY_VALUE ruby_entity, SUEntityRef *entity) |
| Converts a Ruby API entity to a C API entity. More... | |
| SU_RESULT | SUImageRepToRuby (SUImageRepRef imagerep, RUBY_VALUE *ruby_imagerep) |
| Converts a C API entity to a Ruby API imagerep. More... | |
| SU_RESULT | SUImageRepFromRuby (RUBY_VALUE ruby_imagerep, SUImageRepRef *imagerep) |
| Converts a Ruby API imagerep to a C API imagerep. More... | |
Interfaces for exchanging data between SketchUp's Ruby API and C API.
| #define RUBY_VALUE unsigned long |
This macro is defining a type matching Ruby's own VALUE type and can be used interchangeably.
| SU_RESULT SUEntityFromRuby | ( | RUBY_VALUE | ruby_entity, |
| SUEntityRef * | entity | ||
| ) |
Converts a Ruby API entity to a C API entity.
| [in] | ruby_entity | The Ruby API entity reference. |
| [out] | entity | The retrieved C API entity reference. |
ruby_entity refers to a deleted entityruby_entity is not an entity typeentity is NULLentity is already a valid reference| SU_RESULT SUEntityToRuby | ( | SUEntityRef | entity, |
| RUBY_VALUE * | ruby_entity | ||
| ) |
Converts a C API entity to a Ruby API entity.
| [in] | entity | The C API entity reference. |
| [out] | ruby_entity | The retrieved Ruby API entity reference. |
entity is an invalid objectentity is not owned by a modelruby_entity is NULL| SU_RESULT SUImageRepFromRuby | ( | RUBY_VALUE | ruby_imagerep, |
| SUImageRepRef * | imagerep | ||
| ) |
Converts a Ruby API imagerep to a C API imagerep.
| [in] | ruby_imagerep | The Ruby API imagerep reference. |
| [out] | imagerep | The retrieved C API imagerep reference. |
ruby_imagerep is not an imagerep typeimagerep is NULLimagerep is already a valid reference| SU_RESULT SUImageRepToRuby | ( | SUImageRepRef | imagerep, |
| RUBY_VALUE * | ruby_imagerep | ||
| ) |
Converts a C API entity to a Ruby API imagerep.
| [in] | imagerep | The C API imagerep reference. |
| [out] | ruby_imagerep | The retrieved Ruby API imagerep reference. |
imagerep is an invalid objectruby_imagerep is NULL
1.8.3.1