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

## com.trolltech.qt.gui
Class QStyleOptionButton

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

All Implemented Interfaces:
  QtJambiInterface

    public class QStyleOptionButton

extends QStyleOption

The `QStyleOptionButton` class is used to describe the parameters for drawing buttons.

`QStyleOptionButton` contains all the information that `QStyle` functions need to draw graphical elements like `QPushButton`, `QCheckBox`, and `QRadioButton`.

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`, `QStyleOptionToolButton`

Nested Class Summary
`static class` | `QStyleOptionButton.ButtonFeature` This enum describes the different types of features a push button can have.
`static class` | `QStyleOptionButton.ButtonFeatures` This QFlag class provides flags for the int enum.
`static class` | `QStyleOptionButton.StyleOptionType` This enum is used to hold information about the type of the style option, and is defined for each `QStyleOption` subclass.
`static class` | `QStyleOptionButton.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.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>`

Constructor Summary
`` | `QStyleOptionButton()` Constructs a `QStyleOptionButton`, initializing the members variables to their default values.
`protected` | `QStyleOptionButton(int version)`
`` | `QStyleOptionButton(QStyleOptionButton other)` Constructs a copy of the `other` style option.

Method Summary
`QStyleOptionButton.ButtonFeatures` | `features()` Returns a bitwise OR of the features that describe this button.
`static QStyleOptionButton` | `fromNativePointer(QNativePointer nativePointer)` This function returns the QStyleOptionButton instance pointed to by nativePointer
`QIcon` | `icon()` Returns the icon of the button.
`QSize` | `iconSize()` Returns the size of the icon for the button.
`static QNativePointer` | `nativePointerArray(QStyleOptionButton[] array)` This function returns a QNativePointer that is pointing to the specified QStyleOptionButton array.
`void` | `setFeatures(QStyleOptionButton.ButtonFeature... features)` Sets a bitwise OR of the features that describe this button to `features`.
`void` | `setFeatures(QStyleOptionButton.ButtonFeatures features)` Sets a bitwise OR of the features that describe this button to `features`.
`void` | `setIcon(QIcon icon)` Sets the icon of the button to `icon`.
`void` | `setIconSize(QSize iconSize)` Sets the size of the icon for the button to `iconSize`.
`void` | `setText(java.lang.String text)` Sets the text of the button to `text`.
`java.lang.String` | `text()` Returns the text of the button.

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

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, 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
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

Constructor Detail

### QStyleOptionButton

    public QStyleOptionButton(QStyleOptionButton other)

  Constructs a copy of the `other` style option.

### QStyleOptionButton

    public QStyleOptionButton()

  Constructs a `QStyleOptionButton`, initializing the members variables to their default values.

### QStyleOptionButton

    protected QStyleOptionButton(int version)

Method Detail

### setIconSize

    public final void setIconSize(QSize iconSize)

  Sets the size of the icon for the button to `iconSize`.

  The default value is `QSize`(-1, -1), i.e. an invalid size.

  See Also:
    `iconSize`

### iconSize

    public final QSize iconSize()

  Returns the size of the icon for the button.

  The default value is `QSize`(-1, -1), i.e. an invalid size.

  See Also:
    `setIconSize`

### setFeatures

    public final void setFeatures(QStyleOptionButton.ButtonFeature... features)

  Sets a bitwise OR of the features that describe this button to `features`.

  See Also:
    `features`, `ButtonFeature`

### setFeatures

    public final void setFeatures(QStyleOptionButton.ButtonFeatures features)

  Sets a bitwise OR of the features that describe this button to `features`.

  See Also:
    `features`, `ButtonFeature`

### features

    public final QStyleOptionButton.ButtonFeatures features()

  Returns a bitwise OR of the features that describe this button.

  See Also:
    `setFeatures`, `ButtonFeature`

### setIcon

    public final void setIcon(QIcon icon)

  Sets the icon of the button to `icon`.

  The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.

  See Also:
    `iconSize`

### icon

    public final QIcon icon()

  Returns the icon of the button.

  The default value is an empty icon, i.e. an icon with neither a pixmap nor a filename.

  See Also:
    `setIcon`, `iconSize`

### setText

    public final void setText(java.lang.String text)

  Sets the text of the button to `text`.

  The default value is an empty string.

  See Also:
    `text`

### text

    public final java.lang.String text()

  Returns the text of the button.

  The default value is an empty string.

  See Also:
    `setText`

### fromNativePointer

    public static QStyleOptionButton fromNativePointer(QNativePointer nativePointer)

  This function returns the QStyleOptionButton instance pointed to by nativePointer

  Parameters:
    `nativePointer` - the QNativePointer of which object should be returned.

### nativePointerArray

    public static QNativePointer nativePointerArray(QStyleOptionButton[] array)

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

  Parameters:
    `array` - the array that the returned pointer will point to.
  Returns:
    a QNativePointer that is pointing to the specified array.

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