public TResult GetState <TResult>(string stateName) { if (stateName == "Selected") { m_lastKnownSelected = m_selected; return(ImGuiWpfExtensions.Cast <TResult>(m_selected)); } return(default(TResult)); }
public TResult GetState <TResult>(string stateName) { if (stateName == "Text") { m_lastKnownText = m_textBoxText; return(ImGuiWpfExtensions.Cast <TResult>(m_textBoxText)); } return(default(TResult)); }
public TResult GetState <TResult>(string stateName) { if (stateName == "Value") { m_lastKnownValue = m_sliderValue; return(ImGuiWpfExtensions.Cast <TResult>(m_sliderValue)); } return(default(TResult)); }
public TResult GetState <TResult>(string stateName) { if (stateName == "Clicked") { if (m_isClicked) { m_isClicked = false; return(ImGuiWpfExtensions.Cast <TResult>(true)); } return(ImGuiWpfExtensions.Cast <TResult>(false)); } return(default(TResult)); }