- Lock the session from the power button or `chandra-ctl lock` - Unlock with a face or the password; the password always works - Add compositor lock module with tests, and a polkit unlock policy (org.chandra.unlock) - Document the lock flow in docs/lock.md and link it from the README - Add generated interface bindings for the compositor and widget components
This commit is contained in:
1 parent
7501fc3ad9
commit
c790f96e58
131 files changed
+4693
-274
No files matched your search
@@ -0,0 +1,70 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/lib/icondesk"
|
||||
|
||||
import {
|
||||
"chandra/desktop/interface/chandra/desktop/theme",
|
||||
"chandra/desktop/interface/chandra/desktop/types",
|
||||
"moonbitlang/core/debug",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub let count_choices : Array[String]
|
||||
|
||||
pub let size_choices : Array[String]
|
||||
|
||||
pub let state : Desk
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
#derive(Eq, @debug.Debug)
|
||||
pub(all) enum Action {
|
||||
NoAction
|
||||
Launch(String)
|
||||
}
|
||||
|
||||
#derive(Eq, @debug.Debug)
|
||||
pub(all) struct ConfigEntry {
|
||||
key : String
|
||||
label : String
|
||||
choices : Array[String]
|
||||
value : String
|
||||
}
|
||||
|
||||
pub(all) struct Desk {
|
||||
mut count : String
|
||||
mut size : String
|
||||
places : Map[String, (Int32, Int32)]
|
||||
seen : Map[String, Int32]
|
||||
mut next_seen : Int32
|
||||
mut w : Int32
|
||||
mut h : Int32
|
||||
mut bottom : Int32
|
||||
mut hover : String
|
||||
mut selected : String
|
||||
mut focused : Bool
|
||||
mut press_id : String
|
||||
mut press_x : Int32
|
||||
mut press_y : Int32
|
||||
mut dragging : Bool
|
||||
mut ptr_x : Int32
|
||||
mut ptr_y : Int32
|
||||
}
|
||||
pub fn Desk::app_at(Self, Array[@types.AppEntry], Int32, Int32) -> String
|
||||
pub fn Desk::cell(Self) -> (Int32, Int32, Int32)
|
||||
pub fn Desk::cell_at(Self, Int32, Int32) -> (Int32, Int32)
|
||||
pub fn Desk::cell_origin(Self, Int32, Int32) -> (Int32, Int32)
|
||||
pub fn Desk::config_items(Self) -> Array[ConfigEntry]
|
||||
pub fn Desk::decode_places(Self, String) -> Unit
|
||||
pub fn Desk::encode_places(Self) -> String
|
||||
pub fn Desk::grid(Self) -> (Int32, Int32)
|
||||
pub fn Desk::handle(Self, Array[@types.AppEntry], @types.InputEvent) -> (Bool, Action)
|
||||
pub fn Desk::layout(Self, Array[@types.AppEntry]) -> Array[(Int32, Int32)]
|
||||
pub fn Desk::new() -> Self
|
||||
pub fn Desk::render(Self, Array[@types.AppEntry], @types.Size, @theme.Tokens, (String) -> UInt32) -> Array[@types.DrawOp]
|
||||
pub fn Desk::set_config(Self, String, String) -> Bool
|
||||
pub fn Desk::shown(Self, Array[@types.AppEntry]) -> Array[@types.AppEntry]
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
Reference in new issue
Block a user