pub struct Engine { /* private fields */ }Expand description
한글 조합 엔진.
Implementations§
Source§impl Engine
impl Engine
pub fn new(layout: Layout) -> Self
pub fn layout(&self) -> &Layout
Sourcepub fn set_surrounding_ok(&mut self, ok: bool)
pub fn set_surrounding_ok(&mut self, ok: bool)
프런트엔드의 surrounding-text 지원 여부를 알린다(앞 글자 결합 특수글쇠 게이트).
Sourcepub fn press(&mut self, ascii: u8, caps: bool) -> KeyOutcome
pub fn press(&mut self, ascii: u8, caps: bool) -> KeyOutcome
KeyTable 의 ASCII 글쇠(0x21..0x7E)를 처리한다. caps 는 Caps Lock 점등 상태로,
값-식의 P (bit0)에 들어간다(세벌식 항목은 P 미사용).
Sourcepub fn backspace(&mut self) -> KeyOutcome
pub fn backspace(&mut self) -> KeyOutcome
백스페이스: 낱자 단위로 되돌린다. 현재 음절을 만든 단위 이력에서 마지막 하나를 빼고 나머지를 다시 재생(replay)하므로, 겹낱자/겹모음/갈마들이 토글이 정확히 한 단계씩 풀린다(날개셋 ByUnitStep 에 해당).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more