easy_imgui

Enum Key

Source
#[repr(i32)]
pub enum Key {
Show 141 variants None = 0, Tab = 512, LeftArrow = 513, RightArrow = 514, UpArrow = 515, DownArrow = 516, PageUp = 517, PageDown = 518, Home = 519, End = 520, Insert = 521, Delete = 522, Backspace = 523, Space = 524, Enter = 525, Escape = 526, LeftCtrl = 527, LeftShift = 528, LeftAlt = 529, LeftSuper = 530, RightCtrl = 531, RightShift = 532, RightAlt = 533, RightSuper = 534, Menu = 535, Num0 = 536, Num1 = 537, Num2 = 538, Num3 = 539, Num4 = 540, Num5 = 541, Num6 = 542, Num7 = 543, Num8 = 544, Num9 = 545, A = 546, B = 547, C = 548, D = 549, E = 550, F = 551, G = 552, H = 553, I = 554, J = 555, K = 556, L = 557, M = 558, N = 559, O = 560, P = 561, Q = 562, R = 563, S = 564, T = 565, U = 566, V = 567, W = 568, X = 569, Y = 570, Z = 571, F1 = 572, F2 = 573, F3 = 574, F4 = 575, F5 = 576, F6 = 577, F7 = 578, F8 = 579, F9 = 580, F10 = 581, F11 = 582, F12 = 583, Apostrophe = 596, Comma = 597, Minus = 598, Period = 599, Slash = 600, Semicolon = 601, Equal = 602, LeftBracket = 603, Backslash = 604, RightBracket = 605, GraveAccent = 606, CapsLock = 607, ScrollLock = 608, NumLock = 609, PrintScreen = 610, Pause = 611, Keypad0 = 612, Keypad1 = 613, Keypad2 = 614, Keypad3 = 615, Keypad4 = 616, Keypad5 = 617, Keypad6 = 618, Keypad7 = 619, Keypad8 = 620, Keypad9 = 621, KeypadDecimal = 622, KeypadDivide = 623, KeypadMultiply = 624, KeypadSubtract = 625, KeypadAdd = 626, KeypadEnter = 627, KeypadEqual = 628, GamepadStart = 631, GamepadBack = 632, GamepadFaceLeft = 633, GamepadFaceRight = 634, GamepadFaceUp = 635, GamepadFaceDown = 636, GamepadDpadLeft = 637, GamepadDpadRight = 638, GamepadDpadUp = 639, GamepadDpadDown = 640, GamepadL1 = 641, GamepadR1 = 642, GamepadL2 = 643, GamepadR2 = 644, GamepadL3 = 645, GamepadR3 = 646, GamepadLStickLeft = 647, GamepadLStickRight = 648, GamepadLStickUp = 649, GamepadLStickDown = 650, GamepadRStickLeft = 651, GamepadRStickRight = 652, GamepadRStickUp = 653, GamepadRStickDown = 654, MouseLeft = 655, MouseRight = 656, MouseMiddle = 657, MouseX1 = 658, MouseX2 = 659, MouseWheelX = 660, MouseWheelY = 661, ModCtrl = 4_096, ModShift = 8_192, ModAlt = 16_384, ModSuper = 32_768,
}

Variants§

§

None = 0

§

Tab = 512

§

LeftArrow = 513

§

RightArrow = 514

§

UpArrow = 515

§

DownArrow = 516

§

PageUp = 517

§

PageDown = 518

§

Home = 519

§

End = 520

§

Insert = 521

§

Delete = 522

§

Backspace = 523

§

Space = 524

§

Enter = 525

§

Escape = 526

§

LeftCtrl = 527

§

LeftShift = 528

§

LeftAlt = 529

§

LeftSuper = 530

§

RightCtrl = 531

§

RightShift = 532

§

RightAlt = 533

§

RightSuper = 534

§

Menu = 535

§

Num0 = 536

§

Num1 = 537

§

Num2 = 538

§

Num3 = 539

§

Num4 = 540

§

Num5 = 541

§

Num6 = 542

§

Num7 = 543

§

Num8 = 544

§

Num9 = 545

§

A = 546

§

B = 547

§

C = 548

§

D = 549

§

E = 550

§

F = 551

§

G = 552

§

H = 553

§

I = 554

§

J = 555

§

K = 556

§

L = 557

§

M = 558

§

N = 559

§

O = 560

§

P = 561

§

Q = 562

§

R = 563

§

S = 564

§

T = 565

§

U = 566

§

V = 567

§

W = 568

§

X = 569

§

Y = 570

§

Z = 571

§

F1 = 572

§

F2 = 573

§

F3 = 574

§

F4 = 575

§

F5 = 576

§

F6 = 577

§

F7 = 578

§

F8 = 579

§

F9 = 580

§

F10 = 581

§

F11 = 582

§

F12 = 583

§

Apostrophe = 596

§

Comma = 597

§

Minus = 598

§

Period = 599

§

Slash = 600

§

Semicolon = 601

§

Equal = 602

§

LeftBracket = 603

§

Backslash = 604

§

RightBracket = 605

§

GraveAccent = 606

§

CapsLock = 607

§

ScrollLock = 608

§

NumLock = 609

§

PrintScreen = 610

§

Pause = 611

§

Keypad0 = 612

§

Keypad1 = 613

§

Keypad2 = 614

§

Keypad3 = 615

§

Keypad4 = 616

§

Keypad5 = 617

§

Keypad6 = 618

§

Keypad7 = 619

§

Keypad8 = 620

§

Keypad9 = 621

§

KeypadDecimal = 622

§

KeypadDivide = 623

§

KeypadMultiply = 624

§

KeypadSubtract = 625

§

KeypadAdd = 626

§

KeypadEnter = 627

§

KeypadEqual = 628

§

GamepadStart = 631

§

GamepadBack = 632

§

GamepadFaceLeft = 633

§

GamepadFaceRight = 634

§

GamepadFaceUp = 635

§

GamepadFaceDown = 636

§

GamepadDpadLeft = 637

§

GamepadDpadRight = 638

§

GamepadDpadUp = 639

§

GamepadDpadDown = 640

§

GamepadL1 = 641

§

GamepadR1 = 642

§

GamepadL2 = 643

§

GamepadR2 = 644

§

GamepadL3 = 645

§

GamepadR3 = 646

§

GamepadLStickLeft = 647

§

GamepadLStickRight = 648

§

GamepadLStickUp = 649

§

GamepadLStickDown = 650

§

GamepadRStickLeft = 651

§

GamepadRStickRight = 652

§

GamepadRStickUp = 653

§

GamepadRStickDown = 654

§

MouseLeft = 655

§

MouseRight = 656

§

MouseMiddle = 657

§

MouseX1 = 658

§

MouseX2 = 659

§

MouseWheelX = 660

§

MouseWheelY = 661

§

ModCtrl = 4_096

§

ModShift = 8_192

§

ModAlt = 16_384

§

ModSuper = 32_768

Implementations§

Source§

impl Key

Source

pub fn bits(self) -> ImGuiKey

Source

pub fn from_bits(bits: ImGuiKey) -> Option<Self>

Trait Implementations§

Source§

impl Clone for Key

Source§

fn clone(&self) -> Key

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Key

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Key> for KeyChord

Source§

fn from(value: Key) -> Self

Converts to this type from the input type.
Source§

impl Ord for Key

Source§

fn cmp(&self, other: &Key) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Key

Source§

fn eq(&self, other: &Key) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Key

Source§

fn partial_cmp(&self, other: &Key) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<Key> for KeyMod

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(key: Key) -> Result<KeyMod, Self::Error>

Performs the conversion.
Source§

impl Copy for Key

Source§

impl Eq for Key

Source§

impl StructuralPartialEq for Key

Auto Trait Implementations§

§

impl Freeze for Key

§

impl RefUnwindSafe for Key

§

impl Send for Key

§

impl Sync for Key

§

impl Unpin for Key

§

impl UnwindSafe for Key

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.