diff --git a/bindings/c/examples/sdl/hello_world.c b/bindings/c/examples/sdl/hello_world.c index d218d246..b1431b53 100644 --- a/bindings/c/examples/sdl/hello_world.c +++ b/bindings/c/examples/sdl/hello_world.c @@ -12,10 +12,10 @@ const char WINDOW_TITLE[] = "Hello world"; -const accesskit_node_id WINDOW_ID = 1; -const accesskit_node_id BUTTON_1_ID = 2; -const accesskit_node_id BUTTON_2_ID = 3; -const accesskit_node_id ANNOUNCEMENT_ID = 4; +const accesskit_node_id WINDOW_ID = 0; +const accesskit_node_id BUTTON_1_ID = 1; +const accesskit_node_id BUTTON_2_ID = 2; +const accesskit_node_id ANNOUNCEMENT_ID = 3; const accesskit_node_id INITIAL_FOCUS = BUTTON_1_ID; const accesskit_rect BUTTON_1_RECT = {20.0, 20.0, 100.0, 60.0}; diff --git a/bindings/c/examples/windows/hello_world.c b/bindings/c/examples/windows/hello_world.c index 018cfca5..c79386f9 100644 --- a/bindings/c/examples/windows/hello_world.c +++ b/bindings/c/examples/windows/hello_world.c @@ -7,10 +7,10 @@ const WCHAR CLASS_NAME[] = L"AccessKitTest"; const WCHAR WINDOW_TITLE[] = L"Hello world"; -const accesskit_node_id WINDOW_ID = 1; -const accesskit_node_id BUTTON_1_ID = 2; -const accesskit_node_id BUTTON_2_ID = 3; -const accesskit_node_id ANNOUNCEMENT_ID = 4; +const accesskit_node_id WINDOW_ID = 0; +const accesskit_node_id BUTTON_1_ID = 1; +const accesskit_node_id BUTTON_2_ID = 2; +const accesskit_node_id ANNOUNCEMENT_ID = 3; const accesskit_node_id INITIAL_FOCUS = BUTTON_1_ID; const accesskit_rect BUTTON_1_RECT = {20.0, 20.0, 100.0, 60.0}; diff --git a/platforms/windows/examples/hello_world.rs b/platforms/windows/examples/hello_world.rs index ff81b592..dd39d7b8 100644 --- a/platforms/windows/examples/hello_world.rs +++ b/platforms/windows/examples/hello_world.rs @@ -39,10 +39,10 @@ static WINDOW_CLASS_ATOM: Lazy = Lazy::new(|| { const WINDOW_TITLE: &str = "Hello world"; -const WINDOW_ID: NodeId = NodeId(1); -const BUTTON_1_ID: NodeId = NodeId(2); -const BUTTON_2_ID: NodeId = NodeId(3); -const ANNOUNCEMENT_ID: NodeId = NodeId(4); +const WINDOW_ID: NodeId = NodeId(0); +const BUTTON_1_ID: NodeId = NodeId(1); +const BUTTON_2_ID: NodeId = NodeId(2); +const ANNOUNCEMENT_ID: NodeId = NodeId(3); const INITIAL_FOCUS: NodeId = BUTTON_1_ID; const BUTTON_1_RECT: Rect = Rect { diff --git a/platforms/winit/examples/simple.rs b/platforms/winit/examples/simple.rs index fcfc8ba0..0ff964b6 100644 --- a/platforms/winit/examples/simple.rs +++ b/platforms/winit/examples/simple.rs @@ -12,10 +12,10 @@ use winit::{ const WINDOW_TITLE: &str = "Hello world"; -const WINDOW_ID: NodeId = NodeId(1); -const BUTTON_1_ID: NodeId = NodeId(2); -const BUTTON_2_ID: NodeId = NodeId(3); -const ANNOUNCEMENT_ID: NodeId = NodeId(4); +const WINDOW_ID: NodeId = NodeId(0); +const BUTTON_1_ID: NodeId = NodeId(1); +const BUTTON_2_ID: NodeId = NodeId(2); +const ANNOUNCEMENT_ID: NodeId = NodeId(3); const INITIAL_FOCUS: NodeId = BUTTON_1_ID; const BUTTON_1_RECT: Rect = Rect {