Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QStyleOptionToolBoxV2 Class Reference

The QStyleOptionToolBoxV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above. More...

Inheritance diagram for QtGui.QStyleOptionToolBoxV2:
Collaboration diagram for QtGui.QStyleOptionToolBoxV2:

Public Types

enum  SelectedPosition { NextIsSelected = 1, NotAdjacent = 0, PreviousIsSelected = 2 }
  More...
 
enum  StyleOptionVersion { Version = 2 }
  More...
 
enum  TabPosition { Beginning = 0, End = 2, Middle = 1, OnlyOneTab = 3 }
  More...
 
- Public Types inherited from QtGui.QStyleOptionToolBox
enum  StyleOptionType { Type = 7 }
  More...
 
enum  StyleOptionVersion { Version = 1 }
  More...
 
- Public Types inherited from QtGui.QStyleOption
enum  OptionType {
  SO_Button = 2, SO_ComboBox = 983044, SO_Complex = 983040, SO_ComplexCustomBase = 251658240,
  SO_CustomBase = 3840, SO_Default = 0, SO_DockWidget = 10, SO_FocusRect = 1,
  SO_Frame = 5, SO_GraphicsItem = 17, SO_GroupBox = 983047, SO_Header = 8,
  SO_MenuItem = 4, SO_ProgressBar = 6, SO_Q3DockWindow = 9, SO_Q3ListView = 983045,
  SO_Q3ListViewItem = 11, SO_RubberBand = 15, SO_SizeGrip = 983048, SO_Slider = 983041,
  SO_SpinBox = 983042, SO_Tab = 3, SO_TabBarBase = 14, SO_TabWidgetFrame = 13,
  SO_TitleBar = 983046, SO_ToolBar = 16, SO_ToolBox = 7, SO_ToolButton = 983043,
  SO_ViewItem = 12
}
  More...
 
enum  StyleOptionType { Type = 0 }
  More...
 
enum  StyleOptionVersion { Version = 1 }
  More...
 

Public Member Functions

 QStyleOptionToolBoxV2 ()
 
 
 QStyleOptionToolBoxV2 (QStyleOptionToolBoxV2 other)
 
 
 QStyleOptionToolBoxV2 (QStyleOptionToolBox other)
 
 
override void CreateProxy ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QStyleOptionToolBox
 QStyleOptionToolBox ()
 
 
 QStyleOptionToolBox (QStyleOptionToolBox other)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QStyleOption
 QStyleOption (QStyleOption other)
 
 
 QStyleOption (int version=(int) QStyleOption.StyleOptionVersion.Version, int type=(int) QStyleOption.OptionType.SO_Default)
 
 
new void Init (QWidget w)
 
 
new void InitFrom (QWidget w)
 
 
new void Dispose ()
 

Protected Member Functions

 QStyleOptionToolBoxV2 (System.Type dummy)
 
 QStyleOptionToolBoxV2 (int version)
 
 
- Protected Member Functions inherited from QtGui.QStyleOptionToolBox
 QStyleOptionToolBox (System.Type dummy)
 
 QStyleOptionToolBox (int version)
 
 
- Protected Member Functions inherited from QtGui.QStyleOption
 QStyleOption (System.Type dummy)
 

Properties

new
QStyleOptionToolBoxV2.TabPosition 
Position [get, set]
 
new
QStyleOptionToolBoxV2.SelectedPosition 
selectedPosition [get, set]
 
 
- Properties inherited from QtGui.QStyleOptionToolBox
new QIcon Icon [get, set]
 
 
new string Text [get, set]
 
 
- Properties inherited from QtGui.QStyleOption
virtual System.IntPtr SmokeObject [get, set]
 
new Qt.LayoutDirection Direction [get, set]
 
 
new QFontMetrics FontMetrics [get, set]
 
 
new QPalette Palette [get, set]
 
 
new QRect Rect [get, set]
 
 
new QStyle.StateFlag State [get, set]
 
 
new int Type [get, set]
 
 
new int Version [get, set]
 
 

Additional Inherited Members

- Protected Attributes inherited from QtGui.QStyleOption
SmokeInvocation interceptor
 

Detailed Description

The QStyleOptionToolBoxV2 class is used to describe the parameters necessary for drawing a frame in Qt 4.3 or above.

QStyleOptionToolBoxV2 inherits QStyleOptionToolBox which is used for drawing the tabs in a QToolBox.

An instance of the QStyleOptionToolBoxV2 class has type SO_ToolBox and version 2. The type is used internally by QStyleOption, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own QStyleOption subclass and your own styles. The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.

If you create your own QStyle subclass, you should handle both QStyleOptionToolBox and QStyleOptionToolBoxV2.

See also QStyleOptionToolBox and QStyleOption.

Member Enumeration Documentation

This enum describes the position of the selected tab. Some styles need to draw a tab differently depending on whether or not it is adjacent to the selected tab.

See also selectedPosition.

Enumerator:
NextIsSelected 

The next tab (typically the tab on the right) is selected.

NotAdjacent 

The tab is not adjacent to a selected tab (or is the selected tab).

PreviousIsSelected 

The previous tab (typically the tab on the left) is selected.

This enum holds the version of this style option

Enumerator:
Version 

2

This enum describes tab positions relative to other tabs.

Enumerator:
Beginning 

The tab is the first (i.e., top-most) tab in the toolbox.

End 

The tab is placed at the bottom of the toolbox.

Middle 

The tab is placed in the middle of the toolbox.

OnlyOneTab 

There is only one tab in the toolbox.

Constructor & Destructor Documentation

QtGui.QStyleOptionToolBoxV2.QStyleOptionToolBoxV2 ( System.Type  dummy)
protected
QtGui.QStyleOptionToolBoxV2.QStyleOptionToolBoxV2 ( )

Contsructs a QStyleOptionToolBoxV2 object.

QtGui.QStyleOptionToolBoxV2.QStyleOptionToolBoxV2 ( QStyleOptionToolBoxV2  other)

Constructs a QStyleOptionToolBoxV2 copy of the other style option.

QtGui.QStyleOptionToolBoxV2.QStyleOptionToolBoxV2 ( QStyleOptionToolBox  other)

Constructs a QStyleOptionToolBoxV2 copy of the other style option which can be either of the QStyleOptionToolBoxV2 or QStyleOptionToolBox types.

If the other style option's version is 1, the new style option's position value is set to QStyleOptionToolBoxV2::Beginning and selectedPosition is set to QStyleOptionToolBoxV2::NotAdjacent. If its version is 2, the position selectedPosition values are simply copied to the new style option.

See also version.

QtGui.QStyleOptionToolBoxV2.QStyleOptionToolBoxV2 ( int  version)
protected

Contsructs a QStyleOptionToolBoxV2 object.

Member Function Documentation

override void QtGui.QStyleOptionToolBoxV2.CreateProxy ( )
virtual

Reimplemented from QtGui.QStyleOptionToolBox.

new void QtGui.QStyleOptionToolBoxV2.Dispose ( )

Property Documentation

new QStyleOptionToolBoxV2.TabPosition QtGui.QStyleOptionToolBoxV2.Position
getset
new QStyleOptionToolBoxV2.SelectedPosition QtGui.QStyleOptionToolBoxV2.selectedPosition
getset

This variable holds the position of the selected tab in relation to this tab.

The default value is NotAdjacent, i.e. the tab is not adjacent to a selected tab nor is it the selected tab.