Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
View class. More...
#include <ilviews/base/view.h>
Public Member Functions | |
IlvElasticView (IlvDisplay *display, const char *name, const char *title, const IlvRect &dims, IlUInt properties, IlBoolean visible=((IlBoolean) 1), IlvSystemView transientFor=0) | |
Constructor. | |
IlvElasticView (IlvDisplay *display, const char *name, const char *title, const IlvRect &size, IlBoolean visible=((IlBoolean) 1)) | |
Constructor. | |
IlvElasticView (IlvDisplay *display, IlvSystemView parent, const IlvRect &size, IlBoolean visible=((IlBoolean) 1)) | |
Constructor. | |
IlvElasticView (IlvDisplay *display, IlvSystemView available) | |
Constructor. | |
IlvElasticView (IlvAbstractView *parent, const IlvRect &size, IlBoolean visible=((IlBoolean) 1)) | |
Constructor. | |
virtual void | moveResize (const IlvRect &rect) |
Reshapes the view. | |
virtual void | resize (IlvDim w, IlvDim h) |
Resizes the view. |
View class.
Library: display
This class is like IlvView
except that when instances of this class are resized, they automatically resize their child views in an elastic-like manner. You thus use this class when you want a view containing other views that are automatically resized. The first kind of lower-level view inside the top-level view is typically an elastic view so as to handle the consequences of any resizing of the top-level view.
When an elastic view is resized, the size change is transmitted proportionately to the lower-level views inside the elastic view.
IlvElasticView::IlvElasticView | ( | IlvAbstractView * | parent, | |
const IlvRect & | size, | |||
IlBoolean | visible = ((IlBoolean) 1) | |||
) |
Constructor.
This constructor initializes a view object that is a child of the parent
view.
parent | The parent view. | |
size | The initial location and size of the view, in the coordinate system of parent. | |
visible | Can be set to IlFalse to initially hide the window. |
IlvElasticView::IlvElasticView | ( | IlvDisplay * | display, | |
IlvSystemView | available | |||
) |
Constructor.
This constructor creates a new view object by actually using the existing system view indicated by available.
display | The display instance. | |
available | The system view on which this IlvView is based. |
IlvElasticView::IlvElasticView | ( | IlvDisplay * | display, | |
IlvSystemView | parent, | |||
const IlvRect & | size, | |||
IlBoolean | visible = ((IlBoolean) 1) | |||
) |
Constructor.
This constructor creates a view that is a child of the existing system view indicated by parent
.
display | The display instance. | |
parent | The parent system view. | |
size | The initial location and size of the view, in the coordinate system of the existing system view. | |
visible | Can be set to IlFalse to initially hide the window. |
IlvElasticView::IlvElasticView | ( | IlvDisplay * | display, | |
const char * | name, | |||
const char * | title, | |||
const IlvRect & | size, | |||
IlBoolean | visible = ((IlBoolean) 1) | |||
) |
Constructor.
This constructor initializes a view object that is a new top window.
display | The display instance. | |
name | The name of this view (used by the resource association mechanism). | |
title | The title of this top window. | |
size | The initial location and size of the view, relative to the root window of display. | |
visible | Can be set to IlFalse to initially hide the window. |
IlvElasticView::IlvElasticView | ( | IlvDisplay * | display, | |
const char * | name, | |||
const char * | title, | |||
const IlvRect & | dims, | |||
IlUInt | properties, | |||
IlBoolean | visible = ((IlBoolean) 1) , |
|||
IlvSystemView | transientFor = 0 | |||
) |
Constructor.
This constructor creates a top window, with an optional parameter properties that makes it possible to tune its aspect. Check the similar constructor of the class IlvView
for details.
display | The display instance. | |
name | The name of this view (used by the resource association mechanism). | |
title | The title of this top window. | |
size | The initial location and size of the view, relative to the root window of display. | |
properties | The properties of that view. | |
visible | Can be set to IlFalse to initially hide the window. | |
transientFor | The possible system view for which this view is transient. If unspecified or set to 0 , this view will not be transient for any view. |
virtual void IlvElasticView::moveResize | ( | const IlvRect & | newSize | ) | [virtual] |
Reshapes the view.
Moves and changes the size of the window in the parent window.
newSize | The new position and dimensions of the window. |
Reimplemented from IlvView.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.