C# Class Plasma.Extender

Inheritance: Qyoto.QGraphicsWidget, IDisposable
Afficher le fichier Open project: 0xd34df00d/Qross

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
CreateProxy ( ) : void
Extender ( Type dummy ) : System

Private Methods

Méthode Description
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

Method Details

Applet() public méthode

public Applet ( ) : Applet
Résultat Applet

AttachedItems() public méthode

public AttachedItems ( ) : List
Résultat List

CreateProxy() protected méthode

protected CreateProxy ( ) : void
Résultat void

DetachedItems() public méthode

public DetachedItems ( ) : List
Résultat List

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Extender() public méthode

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
Résultat System

Extender() protected méthode

protected Extender ( Type dummy ) : System
dummy System.Type
Résultat System

Group() public méthode

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
Résultat ExtenderGroup

Groups() public méthode

public Groups ( ) : List
Résultat List

HasItem() public méthode

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
Résultat bool

IsEmpty() public méthode

public IsEmpty ( ) : bool
Résultat bool

Item() public méthode

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
Résultat ExtenderItem

Items() public méthode

public Items ( ) : List
Résultat List

SetAppearance() public méthode

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
Résultat void

appearance() public méthode

public appearance ( ) : Plasma.Extender.Appearance
Résultat Plasma.Extender.Appearance