# Struct `kurogane::AppItem`

```rust
pub struct AppItem { /* private fields */ }
```

An item of the application's in a [`ContextMenu`].

[`ContextMenu`]: https://kurogane-rs.org/docs/api/requests/contextmenu.md

## Methods

### `new`

```rust
pub fn new(id: impl Into<String>, label: impl Into<String>) -> Self
```

An item that reports `id` when chosen, shown as `label` (see
[`MenuItem::new`]).

[`MenuItem::new`]: https://kurogane-rs.org/docs/api/requests/menuitem.md#method.new

### `enabled`

```rust
pub fn enabled(self, enabled: bool) -> Self
```

Shown greyed out and not chosen, when `enabled` is false.

### `checked`

```rust
pub fn checked(self, checked: bool) -> Self
```

A check item, shown checked when `checked` is true. Choosing it does
not change the mark; the application shows it as it decides.

### `id`

```rust
pub fn id(&self) -> &str
```

The id it reports when chosen.

### `label`

```rust
pub fn label(&self) -> &str
```

### `is_enabled`

```rust
pub fn is_enabled(&self) -> bool
```

### `is_checked`

```rust
pub fn is_checked(&self) -> Option<bool>
```

Whether it is checked, for a check item.

## Trait implementations

- `impl Clone for AppItem`
- `impl Debug for AppItem`
- `impl Eq for AppItem`
- `impl From<AppItem> for MenuItem`
- `impl PartialEq for AppItem`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/context_menu.rs#L152
