gui 0.6.6

A generic UI library/framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2018-2024 Daniel Mueller <deso@posteo.net>
// SPDX-License-Identifier: GPL-3.0-or-later

use std::fmt::Debug;

use crate::Id;


/// An `Object` represents a first-class entity in a UI.
pub trait Object: Debug {
  /// Retrieve this object's [`Id`].
  fn id(&self) -> Id;
}