event: make some types public again

This commit is contained in:
Johannes Altmanninger
2023-04-22 00:50:36 +02:00
parent 6c07af9343
commit 48e728e9fb

View File

@@ -200,7 +200,7 @@ fn from(typ: &EventType) -> Self {
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct EventDescription {
// TODO: remove the wrapper struct and just put `EventType` where `EventDescription` is now
typ: EventType,
pub typ: EventType,
}
impl From<&event_description_t> for EventDescription {
@@ -266,14 +266,14 @@ fn from(desc: &EventDescription) -> Self {
#[derive(Debug)]
pub struct EventHandler {
/// Properties of the event to match.
desc: EventDescription,
pub desc: EventDescription,
/// Name of the function to invoke.
function_name: WString,
pub function_name: WString,
/// A flag set when an event handler is removed from the global list.
/// Once set, this is never cleared.
removed: AtomicBool,
pub removed: AtomicBool,
/// A flag set when an event handler is first fired.
fired: AtomicBool,
pub fired: AtomicBool,
}
impl EventHandler {