예제 #1
0
        public TResult GetState <TResult>(string stateName)
        {
            if (stateName == "Selected")
            {
                m_lastKnownSelected = m_selected;
                return(ImGuiWpfExtensions.Cast <TResult>(m_selected));
            }

            return(default(TResult));
        }
예제 #2
0
        public TResult GetState <TResult>(string stateName)
        {
            if (stateName == "Text")
            {
                m_lastKnownText = m_textBoxText;
                return(ImGuiWpfExtensions.Cast <TResult>(m_textBoxText));
            }

            return(default(TResult));
        }
예제 #3
0
파일: ImSlider.cs 프로젝트: Stmen/ImGui.Wpf
        public TResult GetState <TResult>(string stateName)
        {
            if (stateName == "Value")
            {
                m_lastKnownValue = m_sliderValue;
                return(ImGuiWpfExtensions.Cast <TResult>(m_sliderValue));
            }

            return(default(TResult));
        }
예제 #4
0
파일: ImButton.cs 프로젝트: Stmen/ImGui.Wpf
        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));
        }