Move MESSAGE_QUEUE_LEN const from macOS module to crate root
This commit is contained in:
parent
dd1955285e
commit
1aebdfb331
|
@ -20,6 +20,8 @@ pub use window::*;
|
||||||
pub use window_info::*;
|
pub use window_info::*;
|
||||||
pub use window_open_options::*;
|
pub use window_open_options::*;
|
||||||
|
|
||||||
|
const MESSAGE_QUEUE_LEN: usize = 128;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum Parent {
|
pub enum Parent {
|
||||||
None,
|
None,
|
||||||
|
|
|
@ -16,7 +16,7 @@ use rtrb::{RingBuffer, Producer, Consumer, PushError};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Event, Parent, WindowHandler, WindowOpenOptions,
|
Event, Parent, WindowHandler, WindowOpenOptions,
|
||||||
WindowScalePolicy, WindowInfo
|
WindowScalePolicy, WindowInfo, MESSAGE_QUEUE_LEN
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::view::create_view;
|
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";
|
pub(super) const FRAME_TIMER_IVAR_NAME: &str = "FRAME_TIMER";
|
||||||
|
|
||||||
const MESSAGE_QUEUE_LEN: usize = 128;
|
|
||||||
|
|
||||||
|
|
||||||
pub struct Window {
|
pub struct Window {
|
||||||
/// Only set if we created the parent window, i.e. we are running in
|
/// Only set if we created the parent window, i.e. we are running in
|
||||||
|
|
Loading…
Reference in a new issue