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
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)