C# 클래스 Plasma.Extender

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

Private Properties

프로퍼티 타입 설명
DragEnterEvent void
DragLeaveEvent void
DragMoveEvent void
DropEvent void
EnabledBordersForItem uint
ItemAddedEvent void
ItemAddedEvent void
ItemChange Qyoto.QVariant
ItemHoverEnterEvent void
ItemHoverLeaveEvent void
ItemHoverMoveEvent void
ItemRemovedEvent void
MousePressEvent void
ResizeEvent void
SaveState void

공개 메소드들

메소드 설명
Applet ( ) : Applet
AttachedItems ( ) : List
DetachedItems ( ) : List
Dispose ( ) : void
Extender ( Plasma applet ) : System Creates an extender. Note that extender expects applet to have a config(), and needs a scene because of that. So you should only instantiate an extender in init() or later, not in an applet's constructor. The constructor also takes care of restoring ExtenderItems that were contained in this extender before, so ExtenderItems are persistent between sessions. Note that a call to extender() in an applet will instantiate an Extender for you if one isn't already associated with your applet. name="applet" The applet this extender is part of. Null is not allowed here.
Group ( string name ) : ExtenderGroup Extra convenience function for obtaining groups specified by name. This will avoid needed to call item and casting to ExtenderGroup, which is otherwise quite common.
Groups ( ) : List
HasItem ( string name ) : bool This function can be used for easily determining if a certain item is already displayed in an extender item somewhere, so your applet doesn't duplicate this item. This is needed because ExtenderItems are persistent, so you can't blindly add new extender items in all cases.
IsEmpty ( ) : bool
Item ( string name ) : ExtenderItem This function can be used for obtaining the extender item specified by name. For checking whether or not an item already exists, you should use hasItem instead: while plasma is starting up, not all detached items might have been instantiated yet. hasItem returns true even if the requested item isn't instantiated yet.
Items ( ) : List
SetAppearance ( Plasma appearance ) : void Use this function to instruct the extender on how to render its items. Usually you will want to call this function in your applet's constraintsEvent, allthough this is already done for you when using PopupApplet as base class for your applet. Defaults to NoBorders. name="appearance" the way this extender should look.
appearance ( ) : Plasma.Extender.Appearance

보호된 메소드들

메소드 설명
CreateProxy ( ) : void
Extender ( Type dummy ) : System

비공개 메소드들

메소드 설명
DragEnterEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragLeaveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DragMoveEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
DropEvent ( Qyoto.QGraphicsSceneDragDropEvent arg1 ) : void
EnabledBordersForItem ( Plasma item ) : uint
ItemAddedEvent ( Plasma item ) : void
ItemAddedEvent ( Plasma item, QPointF pos ) : void
ItemChange ( QGraphicsItem change, Qyoto.QVariant value ) : Qyoto.QVariant
ItemHoverEnterEvent ( Plasma item ) : void
ItemHoverLeaveEvent ( Plasma item ) : void
ItemHoverMoveEvent ( Plasma item, QPointF pos ) : void
ItemRemovedEvent ( Plasma item ) : void
MousePressEvent ( Qyoto.QGraphicsSceneMouseEvent arg1 ) : void
ResizeEvent ( Qyoto.QGraphicsSceneResizeEvent arg1 ) : void
SaveState ( ) : void

메소드 상세

Applet() 공개 메소드

public Applet ( ) : Applet
리턴 Applet

AttachedItems() 공개 메소드

public AttachedItems ( ) : List
리턴 List

CreateProxy() 보호된 메소드

protected CreateProxy ( ) : void
리턴 void

DetachedItems() 공개 메소드

public DetachedItems ( ) : List
리턴 List

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Extender() 공개 메소드

Creates an extender. Note that extender expects applet to have a config(), and needs a scene because of that. So you should only instantiate an extender in init() or later, not in an applet's constructor. The constructor also takes care of restoring ExtenderItems that were contained in this extender before, so ExtenderItems are persistent between sessions. Note that a call to extender() in an applet will instantiate an Extender for you if one isn't already associated with your applet. name="applet" The applet this extender is part of. Null is not allowed here.
public Extender ( Plasma applet ) : System
applet Plasma
리턴 System

Extender() 보호된 메소드

protected Extender ( Type dummy ) : System
dummy System.Type
리턴 System

Group() 공개 메소드

Extra convenience function for obtaining groups specified by name. This will avoid needed to call item and casting to ExtenderGroup, which is otherwise quite common.
public Group ( string name ) : ExtenderGroup
name string
리턴 ExtenderGroup

Groups() 공개 메소드

public Groups ( ) : List
리턴 List

HasItem() 공개 메소드

This function can be used for easily determining if a certain item is already displayed in an extender item somewhere, so your applet doesn't duplicate this item. This is needed because ExtenderItems are persistent, so you can't blindly add new extender items in all cases.
public HasItem ( string name ) : bool
name string
리턴 bool

IsEmpty() 공개 메소드

public IsEmpty ( ) : bool
리턴 bool

Item() 공개 메소드

This function can be used for obtaining the extender item specified by name. For checking whether or not an item already exists, you should use hasItem instead: while plasma is starting up, not all detached items might have been instantiated yet. hasItem returns true even if the requested item isn't instantiated yet.
public Item ( string name ) : ExtenderItem
name string
리턴 ExtenderItem

Items() 공개 메소드

public Items ( ) : List
리턴 List

SetAppearance() 공개 메소드

Use this function to instruct the extender on how to render its items. Usually you will want to call this function in your applet's constraintsEvent, allthough this is already done for you when using PopupApplet as base class for your applet. Defaults to NoBorders. name="appearance" the way this extender should look.
public SetAppearance ( Plasma appearance ) : void
appearance Plasma
리턴 void

appearance() 공개 메소드

public appearance ( ) : Plasma.Extender.Appearance
리턴 Plasma.Extender.Appearance