Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Pane class. More...
#include <ilviews/gadgets/panecont.h>
Public Types | |
enum | ResizeMode { Fixed, Resizable, Elastic } |
This enumeration defines the possible values for a resize mode of an | |
Public Member Functions | |
IlvPane (const char *name) | |
Constructor. | |
void | addListener (IlvPaneListener *listener) |
Adds a listener to the pane. | |
virtual void | boundingBox (IlvRect &rect) const =0 |
Returns the size and position of the pane. | |
IlUShort | getBottomMargin () const |
Returns the bottom margin of the pane. | |
IlvPanedContainer * | getContainer () const |
Returns the paned container to which the pane belongs. | |
IlUShort | getLeftMargin () const |
Returns the left margin of the pane. | |
IlvPaneListener *const * | getListeners (IlUInt &count) const |
Returns an array of all the pane listeners. | |
IlvDim | getMinimumSize (IlvDirection direction) const |
Returns the minimum size of the pane. | |
const char * | getName () const |
Returns the name of the pane. | |
IlvNamedProperty * | getNamedProperty (const IlSymbol *name) const |
Returns the property whose name is specified. | |
IlAny | getProperty (const IlSymbol *key) const |
Returns the specified object property. | |
int | getResizeMode (IlvDirection direction) const |
Returns the resize mode of the pane for the specified direction. | |
IlUShort | getRightMargin () const |
Returns the right margin of the pane. | |
IlUShort | getTopMargin () const |
Returns the top margin of the pane. | |
IlBoolean | hasProperty (const IlSymbol *key) const |
Specifies whether the object has the specified property. | |
virtual void | hide () |
Hides the pane. | |
IlBoolean | isVisible () const |
Specifies whether the pane is visible. | |
virtual void | moveResize (const IlvRect &rect) |
Moves and resizes the pane. | |
void | paneBBox (IlvRect &rect) const |
Returns the size and position of the pane, including margins. | |
void | removeListener (IlvPaneListener *listener) |
Disconnects a listener from the pane. | |
IlvNamedProperty * | removeNamedProperty (IlSymbol *name) |
Removes the specified named property from the object. | |
IlBoolean | removeProperty (const IlSymbol *key) |
Removes the specified object property. | |
void | setBottomMargin (IlUShort margin) |
Sets the bottom margin of the pane. | |
virtual void | setContainer (IlvPanedContainer *container) |
Is called when the container of the pane changes. | |
virtual void | setFocus (IlvEvent *event=0)=0 |
Gives the focus to the pane. | |
void | setLeftMargin (IlUShort margin) |
Sets the left margin of the pane. | |
void | setMargin (IlUShort margin) |
Sets all the margins of the pane. | |
void | setMinimumSize (IlvDim size) |
Sets the minimum sizes of the pane in all directions. | |
void | setMinimumSize (IlvDirection, IlvDim size) |
Sets the minimum size of the pane. | |
void | setName (const char *name) |
Sets the name of the pane. | |
IlvNamedProperty * | setNamedProperty (IlvNamedProperty *property) |
Sets the property whose name is specified. | |
void | setProperty (const IlSymbol *key, IlAny value) |
Sets the specified property to the object. | |
void | setResizeMode (int mode) |
Sets the resize mode of the pane both vertically and horizontally. | |
void | setResizeMode (IlvDirection direction, int mode) |
Sets the resize mode of the pane for the specified direction. | |
void | setRightMargin (IlUShort margin) |
Sets the right margin of the pane. | |
void | setTopMargin (IlUShort margin) |
Sets the top margin of the pane. | |
virtual void | show () |
Shows the pane. |
Pane class.
Library: ilvadvgdt
The class IlvPane
is an abstract class that defines a graphic component, called a pane, which can be added to a container of the type IlvPanedContainer
. It has two subclasses: IlvGraphicPane
, which encapsulates an IlvGraphic
object, and IlvViewPane
, which encapsulates an IlvView
object. A pane can be fixed, elastic, be resizable, and can have a minimum size.
IlvGraphicPane
, IlvPanedContainer
, IlvSeparatorPane
, IlvSliderPane
, IlvViewPane
, IlvDockable
. enum IlvPane::ResizeMode |
This enumeration defines the possible values for a resize mode of an IlvPane
object.
IlvPane::IlvPane | ( | const char * | name | ) |
Constructor.
Initializes a new instance of the IlvPane
class. Creates a new pane with the specified name. The minimum size of the created pane is 1, both vertically and horizontally. Its resize mode is IlvPane::Fixed
in both directions, which means that it cannot be resized. The left, right, top, and bottom margins of the pane are set to 0.
name | The name of the pane. |
void IlvPane::addListener | ( | IlvPaneListener * | listener | ) |
Adds a listener to the pane.
Each pane maintains a list of listeners for the class IlvPaneListener
. The pane listeners are notified when a specific method is invoked for the pane. For more details, see the IlvPaneListener
.
listener | The pane listener. |
virtual void IlvPane::boundingBox | ( | IlvRect & | rect | ) | const [pure virtual] |
Returns the size and position of the pane.
Puts in rect the size and position of the pane.
rect | The returned size and position of the pane. |
moveResize
. Implemented in IlvViewPane, and IlvGraphicPane.
IlUShort IlvPane::getBottomMargin | ( | ) | const |
Returns the bottom margin of the pane.
IlvPanedContainer* IlvPane::getContainer | ( | ) | const |
Returns the paned container to which the pane belongs.
setContainer
. IlUShort IlvPane::getLeftMargin | ( | ) | const |
IlvPaneListener* const* IlvPane::getListeners | ( | IlUInt & | count | ) | const |
Returns an array of all the pane listeners.
listener | The pane listener. |
IlvDim IlvPane::getMinimumSize | ( | IlvDirection | direction | ) | const |
Returns the minimum size of the pane.
direction | The direction for which the minimum size is requested. Valid values are: IlvHorizontal and IlvVertical . |
setMinimumSize
. const char* IlvPane::getName | ( | ) | const |
Returns the name of the pane.
0
if the pane has no name. setName
, IlvPanedContainer::getPane. IlvNamedProperty* IlvPane::getNamedProperty | ( | const IlSymbol * | name | ) | const |
Returns the property whose name is specified.
name | The property name. |
0
if no named property matches name. Returns the specified object property.
key | The symbol representing the property. |
int IlvPane::getResizeMode | ( | IlvDirection | direction | ) | const |
Returns the resize mode of the pane for the specified direction.
direction | The direction. |
setResizeMode
, ResizeMode
. IlUShort IlvPane::getRightMargin | ( | ) | const |
IlUShort IlvPane::getTopMargin | ( | ) | const |
Specifies whether the object has the specified property.
key | The symbol representing the property. |
IlTrue
if the key property was found and IlFalse
if not. virtual void IlvPane::hide | ( | ) | [virtual] |
Hides the pane.
After calling this method, you have to call the IlvPanedContainer::updatePanes
method to see the modifications.
show
. IlBoolean IlvPane::isVisible | ( | ) | const |
virtual void IlvPane::moveResize | ( | const IlvRect & | rect | ) | [virtual] |
Moves and resizes the pane.
rect | The new size and position of the pane. |
boundingBox
. Reimplemented in IlvDockingHandlePane, IlvAbstractBarPane, IlvViewPane, and IlvGraphicPane.
void IlvPane::paneBBox | ( | IlvRect & | rect | ) | const |
Returns the size and position of the pane, including margins.
Puts in rect the size and position of the pane, including margins.
rect | The returned size and position of the pane, including margins. |
boundingBox
. void IlvPane::removeListener | ( | IlvPaneListener * | listener | ) |
Disconnects a listener from the pane.
The pane listener is not deleted.
listener | The pane listener. |
IlvNamedProperty* IlvPane::removeNamedProperty | ( | IlSymbol * | name | ) |
Removes the specified named property from the object.
name | The property name. |
0
. Removes the specified object property.
key | The symbol representing the property. |
IlTrue
if the key property was found and IlFalse
if not. void IlvPane::setBottomMargin | ( | IlUShort | margin | ) |
Sets the bottom margin of the pane.
margin | The new bottom margin. |
virtual void IlvPane::setContainer | ( | IlvPanedContainer * | container | ) | [virtual] |
Is called when the container of the pane changes.
container | The new pane container. |
Reimplemented in IlvAbstractBarPane, IlvViewPane, and IlvGraphicPane.
virtual void IlvPane::setFocus | ( | IlvEvent * | event = 0 |
) | [pure virtual] |
Gives the focus to the pane.
event | A pointer to the event that triggered the call to this method. |
Implemented in IlvViewPane, and IlvGraphicPane.
void IlvPane::setLeftMargin | ( | IlUShort | margin | ) |
void IlvPane::setMargin | ( | IlUShort | margin | ) |
Sets all the margins of the pane.
This method sets the left, right, top, and bottom margins to margin.
margin | The new margins of the pane. |
void IlvPane::setMinimumSize | ( | IlvDim | size | ) |
Sets the minimum sizes of the pane in all directions.
size | The new minimum size. |
getMinimumSize
. void IlvPane::setMinimumSize | ( | IlvDirection | , | |
IlvDim | size | |||
) |
Sets the minimum size of the pane.
direction | The direction for which the minimum size is set. Valid values are: IlvHorizontal and IlvVertical . | |
size | The new minimum size. |
getMinimumSize
. void IlvPane::setName | ( | const char * | name | ) |
Sets the name of the pane.
name | The new name of the pane. |
getName
, IlvPanedContainer::getPane. IlvNamedProperty* IlvPane::setNamedProperty | ( | IlvNamedProperty * | property | ) |
Sets the property whose name is specified.
property | The named property. |
0
. Sets the specified property to the object.
key | The symbol representing the property. | |
value | The new value of the property. If value equals 0 , the property is removed. |
void IlvPane::setResizeMode | ( | int | mode | ) |
Sets the resize mode of the pane both vertically and horizontally.
mode | The new resize mode. Valid values are: IlvPane::Fixed , IlvPane::Resizable , and IlvPane::Elastic . |
void IlvPane::setResizeMode | ( | IlvDirection | direction, | |
int | mode | |||
) |
Sets the resize mode of the pane for the specified direction.
The container of a pane uses the resize mode in effect when its size changes to determine whether the pane should be resized. A pane is resized depending on its type:
A fixed pane is never resized.
A resizable pane is resized only if its container does not have an elastic pane.
An elastic pane is always resized.
Typically, an application contains a few fixed panes, many resizable panes, and only one elastic pane that serves as the "working area". See the IlvDockableMainWindow
class for details.
direction | The direction of the pane. Valid values are: IlvVertical and IlvHorizontal . | |
mode | The new resize mode. Valid values are: IlvPane::Fixed , IlvPane::Resizable , and IlvPane::Elastic . |
getResizeMode
, ResizeMode void IlvPane::setRightMargin | ( | IlUShort | margin | ) |
void IlvPane::setTopMargin | ( | IlUShort | margin | ) |
virtual void IlvPane::show | ( | ) | [virtual] |
Shows the pane.
After calling this method, you have to call the IlvPanedContainer::updatePanes
method to see the modifications.
hide
. © 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.