Panel.SessionItem – libpanel-1 Reference Manual
Packages
libpanel-1
Panel
SessionItem
id
module_name
position
type_hint
workspace
SessionItem
get_id
get_metadata_value
get_module_name
get_position
get_type_hint
get_workspace
has_metadata
has_metadata_with_type
set_id
set_metadata_value
set_module_name
set_position
set_type_hint
set_workspace
SessionItem
Object Hierarchy:
Description:
[
CCode
( type_id =
"panel_session_item_get_type ()"
) ]
public
sealed
class
SessionItem
:
Object
Namespace:
Panel
Package:
libpanel-1
Content:
Properties:
public
string
id
{
get
;
set
; }
public
string
module_name
{
get
;
set
; }
public
Position
position
{
get
;
set
; }
public
string
type_hint
{
get
;
set
; }
public
string
workspace
{
get
;
set
; }
Creation methods:
public
SessionItem
()
Methods:
public
unowned
string
?
get_id
()
Gets the id for the session item, if any.
public
Variant
?
get_metadata_value
(
string
key,
VariantType
? expected_type)
Retrieves the metadata value for
key
.
public
unowned
string
?
get_module_name
()
Gets the module-name that created an item.
public
unowned
Position
?
get_position
()
Gets the
Position
for the item.
public
unowned
string
?
get_type_hint
()
Gets the type hint for an item.
public
unowned
string
?
get_workspace
()
Gets the workspace id for the item.
public
bool
has_metadata
(
string
key,
out
VariantType
? value_type)
If the item contains a metadata value for
key
.
public
bool
has_metadata_with_type
(
string
key,
VariantType
expected_type)
Checks if the item contains metadata
key
with
expected_type
.
public
void
set_id
(
string
? id)
Sets the identifier for the item.
public
void
set_metadata_value
(
string
key,
Variant
? value)
Sets the value for metadata
key
.
public
void
set_module_name
(
string
? module_name)
Sets the module-name for the session item.
public
void
set_position
(
Position
? position)
Sets the position for
this
, if any.
public
void
set_type_hint
(
string
? type_hint)
Sets the type-hint value for the item.
public
void
set_workspace
(
string
? workspace)
Sets the workspace id for the item.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref