mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-24 11:58:32 +00:00
Fixed clippy
This commit is contained in:
parent
3a9cf40de3
commit
4d32d50962
@ -7,7 +7,6 @@ use imgui::{Context, FontConfig, FontGlyphRanges, FontSource, Ui, ConfigFlags};
|
|||||||
use imgui_glium_renderer::Renderer;
|
use imgui_glium_renderer::Renderer;
|
||||||
use imgui_winit_support::{HiDpiMode, WinitPlatform};
|
use imgui_winit_support::{HiDpiMode, WinitPlatform};
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::rc::Rc;
|
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
mod clipboard;
|
mod clipboard;
|
||||||
|
|||||||
@ -188,8 +188,8 @@ use winit_20 as winit;
|
|||||||
))]
|
))]
|
||||||
use winit_19 as winit;
|
use winit_19 as winit;
|
||||||
|
|
||||||
use imgui::{self, BackendFlags, ConfigFlags, Context, Io, Key, Ui, PlatformViewportBackend, ViewportFlags, PlatformMonitor, Viewport};
|
use imgui::{self, BackendFlags, ConfigFlags, Context, Io, Key, Ui, PlatformViewportBackend, ViewportFlags, PlatformMonitor};
|
||||||
use std::{cell::Cell, rc::Rc};
|
use std::cell::Cell;
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use winit::dpi::{LogicalPosition, LogicalSize};
|
use winit::dpi::{LogicalPosition, LogicalSize};
|
||||||
|
|
||||||
@ -514,11 +514,11 @@ impl PlatformViewportBackend for ViewportBackend {
|
|||||||
window.focus_window();
|
window.focus_window();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_focus(&mut self, viewport: &mut imgui::Viewport) -> bool {
|
fn get_window_focus(&mut self, _viewport: &mut imgui::Viewport) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_minimized(&mut self, viewport: &mut imgui::Viewport) -> bool {
|
fn get_window_minimized(&mut self, _viewport: &mut imgui::Viewport) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -527,23 +527,23 @@ impl PlatformViewportBackend for ViewportBackend {
|
|||||||
window.set_title(title);
|
window.set_title(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_alpha(&mut self, viewport: &mut imgui::Viewport, alpha: f32) {
|
fn set_window_alpha(&mut self, _viewport: &mut imgui::Viewport, _alpha: f32) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_window(&mut self, viewport: &mut imgui::Viewport) {
|
fn update_window(&mut self, _viewport: &mut imgui::Viewport) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_window(&mut self, viewport: &mut imgui::Viewport) {
|
fn render_window(&mut self, _viewport: &mut imgui::Viewport) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn swap_buffers(&mut self, viewport: &mut imgui::Viewport) {
|
fn swap_buffers(&mut self, _viewport: &mut imgui::Viewport) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_vk_surface(&mut self, viewport: &mut imgui::Viewport, instance: u64, out_surface: &mut u64) -> i32 {
|
fn create_vk_surface(&mut self, _viewport: &mut imgui::Viewport, _instance: u64, _out_surface: &mut u64) -> i32 {
|
||||||
0
|
0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -186,67 +186,67 @@ pub(crate) extern "C" fn platform_create_vk_surface(viewport: *mut Viewport, ins
|
|||||||
|
|
||||||
pub(crate) struct DummyPlatformViewportBackend {}
|
pub(crate) struct DummyPlatformViewportBackend {}
|
||||||
impl PlatformViewportBackend for DummyPlatformViewportBackend {
|
impl PlatformViewportBackend for DummyPlatformViewportBackend {
|
||||||
fn create_window(&mut self, viewport: &mut Viewport) {
|
fn create_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn destroy_window(&mut self, viewport: &mut Viewport) {
|
fn destroy_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn show_window(&mut self, viewport: &mut Viewport) {
|
fn show_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_pos(&mut self, viewport: &mut Viewport, pos: [f32; 2]) {
|
fn set_window_pos(&mut self, _viewport: &mut Viewport, _pos: [f32; 2]) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_pos(&mut self, viewport: &mut Viewport) -> [f32; 2] {
|
fn get_window_pos(&mut self, _viewport: &mut Viewport) -> [f32; 2] {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_size(&mut self, viewport: &mut Viewport, size: [f32; 2]) {
|
fn set_window_size(&mut self, _viewport: &mut Viewport, _size: [f32; 2]) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_size(&mut self, viewport: &mut Viewport) -> [f32; 2] {
|
fn get_window_size(&mut self, _viewport: &mut Viewport) -> [f32; 2] {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_focus(&mut self, viewport: &mut Viewport) {
|
fn set_window_focus(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_focus(&mut self, viewport: &mut Viewport) -> bool {
|
fn get_window_focus(&mut self, _viewport: &mut Viewport) -> bool {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_window_minimized(&mut self, viewport: &mut Viewport) -> bool {
|
fn get_window_minimized(&mut self, _viewport: &mut Viewport) -> bool {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_title(&mut self, viewport: &mut Viewport, title: &str) {
|
fn set_window_title(&mut self, _viewport: &mut Viewport, _title: &str) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_alpha(&mut self, viewport: &mut Viewport, alpha: f32) {
|
fn set_window_alpha(&mut self, _viewport: &mut Viewport, _alpha: f32) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_window(&mut self, viewport: &mut Viewport) {
|
fn update_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_window(&mut self, viewport: &mut Viewport) {
|
fn render_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn swap_buffers(&mut self, viewport: &mut Viewport) {
|
fn swap_buffers(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_vk_surface(&mut self, viewport: &mut Viewport, instance: u64, out_surface: &mut u64) -> i32 {
|
fn create_vk_surface(&mut self, _viewport: &mut Viewport, _instance: u64, _out_surface: &mut u64) -> i32 {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -294,23 +294,23 @@ pub(crate) extern "C" fn renderer_swap_buffers(viewport: *mut Viewport, _arg: *m
|
|||||||
|
|
||||||
pub(crate) struct DummyRendererViewportBackend {}
|
pub(crate) struct DummyRendererViewportBackend {}
|
||||||
impl RendererViewportBackend for DummyRendererViewportBackend {
|
impl RendererViewportBackend for DummyRendererViewportBackend {
|
||||||
fn create_window(&mut self, viewport: &mut Viewport) {
|
fn create_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn destroy_window(&mut self, viewport: &mut Viewport) {
|
fn destroy_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn set_window_size(&mut self, viewport: &mut Viewport, size: [f32; 2]) {
|
fn set_window_size(&mut self, _viewport: &mut Viewport, _size: [f32; 2]) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn render_window(&mut self, viewport: &mut Viewport) {
|
fn render_window(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn swap_buffers(&mut self, viewport: &mut Viewport) {
|
fn swap_buffers(&mut self, _viewport: &mut Viewport) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user