This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::WidgetCanvas Class

UNIGINEUNIGINE 2.0Comments
-int type() Returns the WidgetCanvas type identifier.
void setTextPosition(int text, const vec3 & position)void setTextPosition(int text, const vec2 & position) Changed the type of the 2nd argument.
virtual vec3 getTextPosition(int text) const =0virtual vec2 getTextPosition(int text) const =0 Changed the type of the return value.
-void clearLineIndices(int line) Clears the array of indices set for points that form the given line.
-int getNumLineIndices(int line) Returns the total number of indices set for the points that form line segments.
-void removeLineIndex(int line, int num) Removes the index with the given number from the array of the line indices.
-int addLineIndex(int line, int index) Adds an index for the point of the line segment in the canvas widget.
-int getLineIndex(int line, int num) Returns the index of the point of the line segment by its number.
-void setPolygonTwoSided(int polygon, int enable) Sets the 2-sided flag for the given polygon.
-int getPolygonTwoSided(int polygon) Returns the value of the 2-sided flag set for the given polygon.
-void clearPolygonIndices(int polygon) Clears the array of indices set for points that form the given polygon.
-int getNumPolygonIndices(int polygon) Returns the total number of indices set for points of the specified polygon.
-void removePolygonIndex(int polygon, int num) Removes the index with the given number from the array of the polygon indices.
-int addPolygonIndex(int polygon, int index) Adds an index for the point of the polygon in the canvas widget.
-int getPolygonIndex(int polygon, int num) Returns the index of the point of the polygon by its number.
Last update: 2017-07-03
Build: ()