rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvElasticView Class Reference

View class. More...

#include <ilviews/base/view.h>

Inheritance diagram for IlvElasticView:
IlvView IlvAbstractView IlvSystemPort IlvPort

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Member Function Documentation

virtual void IlvElasticView::moveResize ( const IlvRect newSize  )  [virtual]

Reshapes the view.

Moves and changes the size of the window in the parent window.

Parameters:
newSize The new position and dimensions of the window.

Reimplemented from IlvView.

virtual void IlvElasticView::resize ( IlvDim  w,
IlvDim  h 
) [virtual]

Resizes the view.

Parameters:
w The new width of the view.
h The new height of the view.

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.