Lines Matching defs:key

565      have 'io.WantCaptureKeyboard=false'. Depending on your application logic it may or not be inconvenient. You might want to track which key-downs
566 were targeted for Dear ImGui, e.g. with an array of bool, and filter out the corresponding key-ups.)
1865 static ImGuiStorage::Pair* LowerBound(ImVector<ImGuiStorage::Pair>& data, ImGuiID key)
1874 if (mid->key < key)
1895 if (((const Pair*)lhs)->key > ((const Pair*)rhs)->key) return +1;
1896 if (((const Pair*)lhs)->key < ((const Pair*)rhs)->key) return -1;
1904 int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
1906 ImGuiStorage::Pair* it = LowerBound(const_cast<ImVector<ImGuiStorage::Pair>&>(Data), key);
1907 if (it == Data.end() || it->key != key)
1912 bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
1914 return GetInt(key, default_val ? 1 : 0) != 0;
1917 float ImGuiStorage::GetFloat(ImGuiID key, float default_val) const
1919 ImGuiStorage::Pair* it = LowerBound(const_cast<ImVector<ImGuiStorage::Pair>&>(Data), key);
1920 if (it == Data.end() || it->key != key)
1925 void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
1927 ImGuiStorage::Pair* it = LowerBound(const_cast<ImVector<ImGuiStorage::Pair>&>(Data), key);
1928 if (it == Data.end() || it->key != key)
1934 int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)
1936 ImGuiStorage::Pair* it = LowerBound(Data, key);
1937 if (it == Data.end() || it->key != key)
1938 it = Data.insert(it, Pair(key, default_val));
1942 bool* ImGuiStorage::GetBoolRef(ImGuiID key, bool default_val)
1944 return (bool*)GetIntRef(key, default_val ? 1 : 0);
1947 float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
1949 ImGuiStorage::Pair* it = LowerBound(Data, key);
1950 if (it == Data.end() || it->key != key)
1951 it = Data.insert(it, Pair(key, default_val));
1955 void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
1957 ImGuiStorage::Pair* it = LowerBound(Data, key);
1958 if (it == Data.end() || it->key != key)
1959 it = Data.insert(it, Pair(key, default_val));
1964 void ImGuiStorage::SetInt(ImGuiID key, int val)
1966 ImGuiStorage::Pair* it = LowerBound(Data, key);
1967 if (it == Data.end() || it->key != key)
1969 Data.insert(it, Pair(key, val));
1975 void ImGuiStorage::SetBool(ImGuiID key, bool val)
1977 SetInt(key, val ? 1 : 0);
1980 void ImGuiStorage::SetFloat(ImGuiID key, float val)
1982 ImGuiStorage::Pair* it = LowerBound(Data, key);
1983 if (it == Data.end() || it->key != key)
1985 Data.insert(it, Pair(key, val));
1991 void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val)
1993 ImGuiStorage::Pair* it = LowerBound(Data, key);
1994 if (it == Data.end() || it->key != key)
1996 Data.insert(it, Pair(key, val));
3377 IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] contains an out of bound value (need to be 0..512, or -1 for unmapped key)");
3379 // Perform simple check: required key mapping (we intentionally do NOT check all keys to not pressure user into setting up everything, but Space is required and was only recently added in 1.60 WIP)
4366 SetActiveID(id+1, child_window); // Steal ActiveId with a dummy id so that key-press won't activate child item