panel.session_item

Module for [SessionItem] class

Types 3

Methods
GType _gType() @property
SessionItem self()Returns `this`, for use in `with` statements.
SessionItemGidBuilder builder()Get builder for [panel.session_item.SessionItem] Returns: New builder object
string id() @property
void id(string propval) @property
string moduleName() @property
void moduleName(string propval) @property
void position(panel.position.Position propval) @property
string typeHint() @property
void typeHint(string propval) @property
string workspace() @property
void workspace(string propval) @property
string getId()Gets the id for the session item, if any. Returns: a string containing the id; otherwise null
glib.variant.Variant getMetadataValue(string key, glib.variant_type.VariantType expectedType = null)Retrieves the metadata value for key.
string getModuleName()Gets the module-name that created an item. Returns: a module-name or null
panel.position.Position getPosition()Gets the #PanelPosition for the item. Returns: a #PanelPosition or null
string getTypeHint()Gets the type hint for an item. Returns: a type-hint or null
string getWorkspace()Gets the workspace id for the item. Returns: a workspace or null
bool hasMetadata(string key, out glib.variant_type.VariantType valueType)If the item contains a metadata value for key.
bool hasMetadataWithType(string key, glib.variant_type.VariantType expectedType)Checks if the item contains metadata key with expected_type.
void setId(string id = null)Sets the identifier for the item.
void setMetadataValue(string key, glib.variant.Variant value = null)Sets the value for metadata key.
void setModuleName(string moduleName = null)Sets the module-name for the session item.
void setPosition(panel.position.Position position = null)Sets the position for self, if any.
void setTypeHint(string typeHint = null)Sets the type-hint value for the item.
void setWorkspace(string workspace = null)Sets the workspace id for the item.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T id(string propval)
T moduleName(string propval)
T typeHint(string propval)
T workspace(string propval)

Fluent builder for [panel.session_item.SessionItem]