com.trolltech.qt.gui
Class QStyleOptionTabWidgetFrame

java.lang.Object
  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.QStyleOptionTabWidgetFrame
All Implemented Interfaces:
QtJambiInterface

public class QStyleOptionTabWidgetFrame
extends QStyleOption

The QStyleOptionTabWidgetFrame class is used to describe the parameters for drawing the frame around a tab widget.

QStyleOptionTabWidgetFrame contains all the information that QStyle functions need to draw the frame around 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, QTabWidget

Nested Class Summary
static class QStyleOptionTabWidgetFrame.StyleOptionType
          This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
static class QStyleOptionTabWidgetFrame.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<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
  QStyleOptionTabWidgetFrame()
          Constructs a QStyleOptionTabWidgetFrame, initializing the members variables to their default values.
protected QStyleOptionTabWidgetFrame(int version)
          This method is used internally by Qt Jambi.
  QStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame other)
          Constructs a copy of other.
 
Method Summary
static QStyleOptionTabWidgetFrame fromNativePointer(QNativePointer nativePointer)
          This function returns the QStyleOptionTabWidgetFrame instance pointed to by nativePointer
 QSize leftCornerWidgetSize()
          Returns the size of the left-corner widget.
 int lineWidth()
          Returns the line width for drawing the panel.
 int midLineWidth()
          Returns the mid-line width for drawing the panel.
static QNativePointer nativePointerArray(QStyleOptionTabWidgetFrame[] array)
          This function returns a QNativePointer that is pointing to the specified QStyleOptionTabWidgetFrame array.
 QSize rightCornerWidgetSize()
          Returns the size of the right-corner widget.
 void setLeftCornerWidgetSize(QSize leftCornerWidgetSize)
          Sets the size of the left-corner widget to leftCornerWidgetSize.
 void setLineWidth(int lineWidth)
          Sets the line width for drawing the panel to lineWidth.
 void setMidLineWidth(int midLineWidth)
          Sets the mid-line width for drawing the panel to midLineWidth.
 void setRightCornerWidgetSize(QSize rightCornerWidgetSize)
          Sets the size of the right-corner widget to rightCornerWidgetSize.
 void setShape(QTabBar.Shape shape)
          Sets the tab shape used to draw the tabs to shape.
 void setTabBarSize(QSize tabBarSize)
          Sets the size of the tab bar to tabBarSize.
 QTabBar.Shape shape()
          Returns the tab shape used to draw the tabs.
 QSize tabBarSize()
          Returns the size of the tab bar.
 
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

QStyleOptionTabWidgetFrame

public QStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame other)

Constructs a copy of other.


QStyleOptionTabWidgetFrame

public QStyleOptionTabWidgetFrame()

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


QStyleOptionTabWidgetFrame

protected QStyleOptionTabWidgetFrame(int version)

This method is used internally by Qt Jambi. Do not use it in your applications.

Method Detail

setLineWidth

public final void setLineWidth(int lineWidth)

Sets the line width for drawing the panel to lineWidth.

The default value is 0.

See Also:
lineWidth

lineWidth

public final int lineWidth()

Returns the line width for drawing the panel.

The default value is 0.

See Also:
setLineWidth

setRightCornerWidgetSize

public final void setRightCornerWidgetSize(QSize rightCornerWidgetSize)

Sets the size of the right-corner widget to rightCornerWidgetSize.

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

See Also:
rightCornerWidgetSize

rightCornerWidgetSize

public final QSize rightCornerWidgetSize()

Returns the size of the right-corner widget.

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

See Also:
setRightCornerWidgetSize

setTabBarSize

public final void setTabBarSize(QSize tabBarSize)

Sets the size of the tab bar to tabBarSize.

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

See Also:
tabBarSize

tabBarSize

public final QSize tabBarSize()

Returns the size of the tab bar.

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

See Also:
setTabBarSize

setShape

public final void setShape(QTabBar.Shape shape)

Sets the tab shape used to draw the tabs to shape.

The default value is QTabBar::RoundedNorth.

See Also:
shape

shape

public final QTabBar.Shape shape()

Returns the tab shape used to draw the tabs.

The default value is QTabBar::RoundedNorth.

See Also:
setShape

setMidLineWidth

public final void setMidLineWidth(int midLineWidth)

Sets the mid-line width for drawing the panel to midLineWidth.

The mid line width is usually used in drawing sunken or raised frames. The default value is 0.

See Also:
midLineWidth

midLineWidth

public final int midLineWidth()

Returns the mid-line width for drawing the panel.

The mid line width is usually used in drawing sunken or raised frames. The default value is 0.

See Also:
setMidLineWidth

setLeftCornerWidgetSize

public final void setLeftCornerWidgetSize(QSize leftCornerWidgetSize)

Sets the size of the left-corner widget to leftCornerWidgetSize.

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

See Also:
leftCornerWidgetSize

leftCornerWidgetSize

public final QSize leftCornerWidgetSize()

Returns the size of the left-corner widget.

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

See Also:
setLeftCornerWidgetSize

fromNativePointer

public static QStyleOptionTabWidgetFrame fromNativePointer(QNativePointer nativePointer)
This function returns the QStyleOptionTabWidgetFrame instance pointed to by nativePointer

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

nativePointerArray

public static QNativePointer nativePointerArray(QStyleOptionTabWidgetFrame[] array)
This function returns a QNativePointer that is pointing to the specified QStyleOptionTabWidgetFrame array.

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