1
0
Fork 0

Move MESSAGE_QUEUE_LEN const from macOS module to crate root

This commit is contained in:
Joakim Frostegård 2020-12-04 21:46:55 +01:00
parent dd1955285e
commit 1aebdfb331
2 changed files with 3 additions and 3 deletions

View file

@ -20,6 +20,8 @@ pub use window::*;
pub use window_info::*;
pub use window_open_options::*;
const MESSAGE_QUEUE_LEN: usize = 128;
#[derive(Debug)]
pub enum Parent {
None,

View file

@ -16,7 +16,7 @@ use rtrb::{RingBuffer, Producer, Consumer, PushError};
use crate::{
Event, Parent, WindowHandler, WindowOpenOptions,
WindowScalePolicy, WindowInfo
WindowScalePolicy, WindowInfo, MESSAGE_QUEUE_LEN
};
use super::view::create_view;
@ -29,8 +29,6 @@ pub(super) const WINDOW_STATE_IVAR_NAME: &str = "WINDOW_STATE_IVAR_NAME";
pub(super) const FRAME_TIMER_IVAR_NAME: &str = "FRAME_TIMER";
const MESSAGE_QUEUE_LEN: usize = 128;
pub struct Window {
/// Only set if we created the parent window, i.e. we are running in