dear_imgui_rs/ui/draw.rs
1use super::*;
2
3impl Ui {
4 /// Access to the current window's draw list
5 #[doc(alias = "GetWindowDrawList")]
6 pub fn get_window_draw_list(&self) -> DrawListMut<'_> {
7 DrawListMut::window(self)
8 }
9
10 /// Access to the background draw list
11 #[doc(alias = "GetBackgroundDrawList")]
12 pub fn get_background_draw_list(&self) -> DrawListMut<'_> {
13 DrawListMut::background(self)
14 }
15
16 /// Access to the foreground draw list
17 #[doc(alias = "GetForegroundDrawList")]
18 pub fn get_foreground_draw_list(&self) -> DrawListMut<'_> {
19 DrawListMut::foreground(self)
20 }
21}