com.trolltech.qt.gui
Class QStyleOptionTabBarBase

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.gui.QStyleOption
                  extended by com.trolltech.qt.gui.QStyleOptionTabBarBase
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable
Direct Known Subclasses:
QStyleOptionTabBarBaseV2

public class QStyleOptionTabBarBase
extends QStyleOption
implements java.lang.Cloneable

The QStyleOptionTabBarBase class is used to describe the base of a tab bar, i. . the part that the tab bar usually overlaps with. QStyleOptionTabBarBase contains all the information that QStyle functions need to draw the tab bar base. Note that this is only drawn for a standalone QTabBar (one that isn't part of a QTabWidget).

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 QTabBar::drawBase().


Nested Class Summary
static class QStyleOptionTabBarBase.StyleOptionType
          This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
static class QStyleOptionTabBarBase.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.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
QStyleOptionTabBarBase()
          Construct a QStyleOptionTabBarBase, initializing the members vaiables to their default values.
QStyleOptionTabBarBase(QStyleOptionTabBarBase other)
          Constructs a copy of other.
 
Method Summary
 QStyleOptionTabBarBase clone()
          This method is reimplemented for internal reasons
 QRect selectedTabRect()
          This variable holds the rectangle containing the selected tab.
 void setSelectedTabRect(QRect selectedTabRect)
          This variable holds the rectangle containing the selected tab.
 void setShape(QTabBar.Shape shape)
          This variable holds the shape of the tab bar.
 void setTabBarRect(QRect tabBarRect)
          This variable holds the rectangle containing all the tabs.
 QTabBar.Shape shape()
          This variable holds the shape of the tab bar.
 QRect tabBarRect()
          This variable holds the rectangle containing all the tabs.
 
Methods inherited from class com.trolltech.qt.gui.QStyleOption
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, 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 com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
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

QStyleOptionTabBarBase

public QStyleOptionTabBarBase()
Construct a QStyleOptionTabBarBase, initializing the members vaiables to their default values.


QStyleOptionTabBarBase

public QStyleOptionTabBarBase(QStyleOptionTabBarBase other)
Constructs a copy of other.

Method Detail

setSelectedTabRect

public final void setSelectedTabRect(QRect selectedTabRect)
This variable holds the rectangle containing the selected tab. This rectangle is contained within the tabBarRect. The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.


selectedTabRect

public final QRect selectedTabRect()
This variable holds the rectangle containing the selected tab. This rectangle is contained within the tabBarRect. The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.


setShape

public final void setShape(QTabBar.Shape shape)
This variable holds the shape of the tab bar. The default value is QTabBar::RoundedNorth .


shape

public final QTabBar.Shape shape()
This variable holds the shape of the tab bar. The default value is QTabBar::RoundedNorth .


setTabBarRect

public final void setTabBarRect(QRect tabBarRect)
This variable holds the rectangle containing all the tabs. The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.


tabBarRect

public final QRect tabBarRect()
This variable holds the rectangle containing all the tabs. The default value is a null rectangle, i.e. a rectangle with both the width and the height set to 0.


clone

public QStyleOptionTabBarBase clone()
This method is reimplemented for internal reasons

Overrides:
clone in class QStyleOption