Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › uefi › protocol › simple_text_input_ex › SimpleTextInputEx › Key › State Public Struct State Doc Source Public Struct std.os.uefi.protocol.simple_text_input_ex.SimpleTextInputEx.Key.State
pub const State = extern struct Fields Structs File os/uefi/protocol/simple_text_input_ex.zig: 100
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127 pub const State = extern struct {
shift : Shift ,
toggle : Toggle ,
pub const Shift = packed struct (u32 ) {
right_shift_pressed : bool ,
left_shift_pressed : bool ,
right_control_pressed : bool ,
left_control_pressed : bool ,
right_alt_pressed : bool ,
left_alt_pressed : bool ,
right_logo_pressed : bool ,
left_logo_pressed : bool ,
menu_key_pressed : bool ,
sys_req_pressed : bool ,
_pad : u21 = 0 ,
shift_state_valid : bool ,
};
pub const Toggle = packed struct (u8 ) {
scroll_lock_active : bool ,
num_lock_active : bool ,
caps_lock_active : bool ,
_pad : u3 = 0 ,
key_state_exposed : bool ,
toggle_state_valid : bool ,
};
}