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::WidgetVPaned Class

Interface for widget vpaned handling. See also UnigineScript analog.

To use this class, include the UnigineWidgetVPaned.h file.

Unigine::WidgetVPaned Class

Members


static int type ()

WidgetVPaned type.

Return value

WidgetVPaned type identifier.

static Ptr< WidgetVPaned > create (const WidgetPtr & widget)

WidgetVPaned constructor.

Arguments

  • const WidgetPtr & widget - Widget smart pointer.

static Ptr< WidgetVPaned > create (const Ptr< Gui > & gui)

WidgetVPaned constructor.

Arguments

  • const Ptr< Gui > & gui - Gui pointer.

virtual Ptr< WidgetVPaned > getWidgetVPaned () const =0

Returns a widget vpaned pointer.

Return value

WidgetVPaned pointer.

virtual void setValue (int value) const =0

Specifies how child widgets will be resized. The default is 0.

Arguments

  • int value - Value in range [-32767;32767]. -32767 means that during resize the upper child will remain fixed. 32767 means that during resize the lower child will remain fixed. 0 means that both children will be resized equally. Other values specify proportions, in which the children are resized.

virtual int getValue () const =0

Returns a value specifying how child widgets will be resized.

Return value

Value in range [-32767;32767]. -32767 means that during resize the upper child will remain fixed. 32767 means that during resize the lower child will remain fixed. 0 means that both children will be resized equally. Other values specify proportions, in which the children are resized.

virtual void setFixed (int fixed) const =0

Sets the number of the child with the fixed size. The default is 0.

Arguments

  • int fixed - Number of the child:
    • 0 - size of both children is not fixed.
    • 1 - size of the first child is fixed.
    • 2 - size of the second child is fixed.

virtual int getFixed () const =0

Returns the number of the child with the fixed size.

Return value

Number of the child. 0 means that the size of both children is not fixed.

virtual void setFirstSize (int size) const =0

Sets the size of the first child.

Arguments

  • int size - Size of the first child in pixels.

virtual int getFirstSize () const =0

Returns the size of the first child.

Return value

Size of the first child in pixels.

virtual void setSecondSize (int size) const =0

Sets the size of the second child.

Arguments

  • int size - Size of the second child in pixels.

virtual int getSecondSize () const =0

Returns the size of the second child.

Return value

Size of the second child in pixels.
Last update: 2017-07-03
Build: ()