Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QStyleOptionRubberBand

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.gui.QStyleOption
                  com.trolltech.qt.gui.QStyleOptionRubberBand

All Implemented Interfaces:
  QtJambiInterface, java.lang.Cloneable

    public class QStyleOptionRubberBand

extends QStyleOption
implements java.lang.Cloneable

The `QStyleOptionRubberBand` class is used to describe the parameters needed for drawing a rubber band. `QStyleOptionRubberBand` contains all the information that `QStyle` functions need to draw `QRubberBand`.

For performance reasons, the access to the member variables is direct (i.e., using the `.` or `->` operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

For an example demonstrating how style options can be used, see the Styles example.

See also:
  `QStyleOption`, and `QRubberBand`.

Nested Class Summary
`static class` | `QStyleOptionRubberBand.StyleOptionType` This enum is used to hold information about the type of the style option, and is defined for each `QStyleOption` subclass.
`static class` | `QStyleOptionRubberBand.StyleOptionVersion` This enum is used to hold information about the version of the style option, and is defined for each `QStyleOption` subclass.

Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption
`QStyleOption.OptionType`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Constructor Summary
`QStyleOptionRubberBand()` Creates a `QStyleOptionRubberBand`, initializing the members variables to their default values.
`QStyleOptionRubberBand(QStyleOptionRubberBand other)` Constructs a copy of the `other` style option.

Method Summary
`QStyleOptionRubberBand` | `clone()` This method is reimplemented for internal reasons
`static QStyleOptionRubberBand` | `fromNativePointer(QNativePointer nativePointer)` This method returns the QStyleOptionRubberBand instance pointed to by `nativePointer`.
`static QNativePointer` | `nativePointerArray(QStyleOptionRubberBand[] array)` This function returns a QNativePointer that is pointing to the specified QStyleOptionRubberBand array.
`boolean` | `opaque()` This variable holds whether the rubber band is required to be drawn in an opaque style.
`void` | `setOpaque(boolean opaque)` This variable holds whether the rubber band is required to be drawn in an opaque style.
`void` | `setShape(QRubberBand.Shape shape)` This variable holds the shape of the rubber band.
`QRubberBand.Shape` | `shape()` This variable holds the shape of the rubber band.

Methods inherited from class com.trolltech.qt.gui.QStyleOption
`direction, fontMetrics, initFrom, nativePointerArray, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setType, setVersion, state, type, version`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class java.lang.Object
`getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QStyleOptionRubberBand

    public QStyleOptionRubberBand()

  Creates a `QStyleOptionRubberBand`, initializing the members variables to their default values.

### QStyleOptionRubberBand

    public QStyleOptionRubberBand(QStyleOptionRubberBand other)

  Constructs a copy of the `other` style option.

Method Detail

### setOpaque

    public final void setOpaque(boolean opaque)

  This variable holds whether the rubber band is required to be drawn in an opaque style. The default value is true.

### opaque

    public final boolean opaque()

  This variable holds whether the rubber band is required to be drawn in an opaque style. The default value is true.

### setShape

    public final void setShape(QRubberBand.Shape shape)

  This variable holds the shape of the rubber band. The default shape is `QRubberBand::Line` .

### shape

    public final QRubberBand.Shape shape()

  This variable holds the shape of the rubber band. The default shape is `QRubberBand::Line` .

### fromNativePointer

    public static QStyleOptionRubberBand fromNativePointer(QNativePointer nativePointer)

  This method returns the QStyleOptionRubberBand instance pointed to by `nativePointer`.

### nativePointerArray

    public static QNativePointer nativePointerArray(QStyleOptionRubberBand[] array)

  This function returns a QNativePointer that is pointing to the specified QStyleOptionRubberBand array.

### clone

    public QStyleOptionRubberBand clone()

  This method is reimplemented for internal reasons

  Overrides:
    `clone` in class `QStyleOption`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD