C# 클래스 Plasma.IconWidget

상속: Qyoto.QGraphicsWidget, IDisposable
파일 보기 프로젝트 열기: 0xd34df00d/Qross

Private Properties

프로퍼티 타입 설명
ChangeEvent void
HoverEnterEvent void
HoverLeaveEvent void
MouseDoubleClickEvent void
MouseMoveEvent void
MousePressEvent void
MouseReleaseEvent void
Paint void
Paint void
SceneEventFilter bool
SetPressed void
SetPressed void
SetUnpressed void
Shape QPainterPath
SizeHint QSizeF
SizeHint QSizeF

공개 메소드들

메소드 설명
AddIconAction ( Qyoto.QAction action ) : void Plasma.IconWidget allows the user to specify a number of actions (currently four) to be displayed around the widget. This method allows for a created QAction to be added to the Plasma.IconWidget. name="action" the QAction to associate with this icon.
Dispose ( ) : void
DrawActionButtonBase ( QPainter painter, Qyoto.QSize size, int element ) : void
DrawBackground ( ) : bool
IconWidget ( ) : System
IconWidget ( IQGraphicsItem parent ) : System Creates a new Plasma.IconWidget. name="parent" the QGraphicsItem this icon is parented to.
IconWidget ( QIcon icon, string text ) : System
IconWidget ( QIcon icon, string text, IQGraphicsItem parent ) : System Creates a new Plasma.IconWidget with text and an icon. name="icon" the icon that will be displayed with this icon. name="text" the text that will be displayed with this icon. name="parent" The QGraphicsItem this icon is parented to.
IconWidget ( string text ) : System
IconWidget ( string text, IQGraphicsItem parent ) : System Convenience constructor to create a Plasma.IconWidget with text. name="text" the text that will be displayed with this icon. name="parent" the QGraphicsItem this icon is parented to.
InvertLayout ( bool invert ) : void inverts the layout of the icons if the orientation is horizontal, normally we get icon on the left with left-to-right languages name="invert" if we want to invert the layout of icons
InvertedLayout ( ) : bool
RemoveIconAction ( QAction action ) : void Removes a previously set iconAction. The action will be removed from the widget but will not be deleted. name="the" QAction to be removed, if 0 all actions will be removed
SetDrawBackground ( bool draw ) : void Sets whether or not to draw a background area for the icon @arg draw true if a background should be drawn or not
SetSvg ( string svgFilePath ) : void
SetSvg ( string svgFilePath, string svgIconElement ) : void Convenience method to set the svg image to use when given the filepath and name of svg. name="svgFilePath" the svg filepath including name of the svg. name="svgIconElement" the svg element to use when displaying the svg. Defaults to all of them.
SizeFromIconSize ( double iconWidth ) : QSizeF name="iconWidth" desired width of the icon

보호된 메소드들

메소드 설명
CreateProxy ( ) : void
IconWidget ( Type dummy ) : System
IsDown ( ) : bool

비공개 메소드들

메소드 설명
ChangeEvent ( Qyoto.QEvent arg1 ) : void
HoverEnterEvent ( QGraphicsSceneHoverEvent arg1 ) : void
HoverLeaveEvent ( QGraphicsSceneHoverEvent arg1 ) : void
MouseDoubleClickEvent ( QGraphicsSceneMouseEvent arg1 ) : void
MouseMoveEvent ( QGraphicsSceneMouseEvent arg1 ) : void
MousePressEvent ( QGraphicsSceneMouseEvent arg1 ) : void
MouseReleaseEvent ( QGraphicsSceneMouseEvent arg1 ) : void
Paint ( QPainter painter, QStyleOptionGraphicsItem option ) : void
Paint ( QPainter painter, QStyleOptionGraphicsItem option, QWidget widget ) : void
SceneEventFilter ( IQGraphicsItem watched, QEvent arg2 ) : bool
SetPressed ( ) : void
SetPressed ( bool pressed ) : void
SetUnpressed ( ) : void
Shape ( ) : QPainterPath
SizeHint ( Qt which ) : QSizeF
SizeHint ( Qt which, QSizeF constraint ) : QSizeF

메소드 상세

AddIconAction() 공개 메소드

Plasma.IconWidget allows the user to specify a number of actions (currently four) to be displayed around the widget. This method allows for a created QAction to be added to the Plasma.IconWidget. name="action" the QAction to associate with this icon.
public AddIconAction ( Qyoto.QAction action ) : void
action Qyoto.QAction
리턴 void

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

DrawActionButtonBase() 공개 메소드

public DrawActionButtonBase ( QPainter painter, Qyoto.QSize size, int element ) : void
painter Qyoto.QPainter
size Qyoto.QSize
element int
리턴 void

DrawBackground() 공개 메소드

public DrawBackground ( ) : bool
리턴 bool

IconWidget() 공개 메소드

public IconWidget ( ) : System
리턴 System

IconWidget() 공개 메소드

Creates a new Plasma.IconWidget. name="parent" the QGraphicsItem this icon is parented to.
public IconWidget ( IQGraphicsItem parent ) : System
parent IQGraphicsItem
리턴 System

IconWidget() 공개 메소드

public IconWidget ( QIcon icon, string text ) : System
icon QIcon
text string
리턴 System

IconWidget() 공개 메소드

Creates a new Plasma.IconWidget with text and an icon. name="icon" the icon that will be displayed with this icon. name="text" the text that will be displayed with this icon. name="parent" The QGraphicsItem this icon is parented to.
public IconWidget ( QIcon icon, string text, IQGraphicsItem parent ) : System
icon QIcon
text string
parent IQGraphicsItem
리턴 System

IconWidget() 보호된 메소드

protected IconWidget ( Type dummy ) : System
dummy Type
리턴 System

IconWidget() 공개 메소드

public IconWidget ( string text ) : System
text string
리턴 System

IconWidget() 공개 메소드

Convenience constructor to create a Plasma.IconWidget with text. name="text" the text that will be displayed with this icon. name="parent" the QGraphicsItem this icon is parented to.
public IconWidget ( string text, IQGraphicsItem parent ) : System
text string
parent IQGraphicsItem
리턴 System

InvertLayout() 공개 메소드

inverts the layout of the icons if the orientation is horizontal, normally we get icon on the left with left-to-right languages name="invert" if we want to invert the layout of icons
public InvertLayout ( bool invert ) : void
invert bool
리턴 void

InvertedLayout() 공개 메소드

public InvertedLayout ( ) : bool
리턴 bool

IsDown() 보호된 메소드

protected IsDown ( ) : bool
리턴 bool

RemoveIconAction() 공개 메소드

Removes a previously set iconAction. The action will be removed from the widget but will not be deleted. name="the" QAction to be removed, if 0 all actions will be removed
public RemoveIconAction ( QAction action ) : void
action QAction
리턴 void

SetDrawBackground() 공개 메소드

Sets whether or not to draw a background area for the icon @arg draw true if a background should be drawn or not
public SetDrawBackground ( bool draw ) : void
draw bool
리턴 void

SetSvg() 공개 메소드

public SetSvg ( string svgFilePath ) : void
svgFilePath string
리턴 void

SetSvg() 공개 메소드

Convenience method to set the svg image to use when given the filepath and name of svg. name="svgFilePath" the svg filepath including name of the svg. name="svgIconElement" the svg element to use when displaying the svg. Defaults to all of them.
public SetSvg ( string svgFilePath, string svgIconElement ) : void
svgFilePath string
svgIconElement string
리턴 void

SizeFromIconSize() 공개 메소드

name="iconWidth" desired width of the icon
public SizeFromIconSize ( double iconWidth ) : QSizeF
iconWidth double
리턴 QSizeF