panel.session_item
Module for [SessionItem] class
Types 3
Methods
SessionItem self()Returns `this`, for use in `with` statements.SessionItemGidBuilder builder()Get builder for [panel.session_item.SessionItem] Returns: New builder objectstring id() @propertyvoid id(string propval) @propertystring moduleName() @propertyvoid moduleName(string propval) @propertypanel.position.Position position() @propertyvoid position(panel.position.Position propval) @propertystring typeHint() @propertyvoid typeHint(string propval) @propertystring workspace() @propertyvoid workspace(string propval) @propertystring getId()Gets the id for the session item, if any. Returns: a string containing the id; otherwise nullglib.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 nullpanel.position.Position getPosition()Gets the #PanelPosition for the item. Returns: a #PanelPosition or nullstring getTypeHint()Gets the type hint for an item. Returns: a type-hint or nullstring getWorkspace()Gets the workspace id for the item. Returns: a workspace or nullbool 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.Methods
T id(string propval)T moduleName(string propval)T position(panel.position.Position propval)T typeHint(string propval)T workspace(string propval)Fluent builder for [panel.session_item.SessionItem]
Methods