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: 03.07.2017
Build: ()