|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionTabWidgetFrame
public class QStyleOptionTabWidgetFrame
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.
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 |
---|
public QStyleOptionTabWidgetFrame(QStyleOptionTabWidgetFrame other)
Constructs a copy of other.
public QStyleOptionTabWidgetFrame()
Constructs a QStyleOptionTabWidgetFrame, initializing the members variables to their default values.
protected QStyleOptionTabWidgetFrame(int version)
This method is used internally by Qt Jambi. Do not use it in your applications.
Method Detail |
---|
public final void setLineWidth(int lineWidth)
Sets the line width for drawing the panel to lineWidth.
The default value is 0.
public final int lineWidth()
Returns the line width for drawing the panel.
The default value is 0.
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.
public final QSize rightCornerWidgetSize()
Returns the size of the right-corner widget.
The default value is QSize(-1, -1), i.e. an invalid size.
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.
public final QSize tabBarSize()
Returns the size of the tab bar.
The default value is QSize(-1, -1), i.e. an invalid size.
public final void setShape(QTabBar.Shape shape)
Sets the tab shape used to draw the tabs to shape.
The default value is QTabBar::RoundedNorth.
public final QTabBar.Shape shape()
Returns the tab shape used to draw the tabs.
The default value is QTabBar::RoundedNorth.
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.
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.
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.
public final QSize leftCornerWidgetSize()
Returns the size of the left-corner widget.
The default value is QSize(-1, -1), i.e. an invalid size.
public static QStyleOptionTabWidgetFrame fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.public static QNativePointer nativePointerArray(QStyleOptionTabWidgetFrame[] array)
array
- the array that the returned pointer will point to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |