|
|
@ -69,6 +69,7 @@ macro_rules! enum_flags {
|
|
|
|
#[allow(non_upper_case_globals)] pub const $const_name: $name = $name($value);
|
|
|
|
#[allow(non_upper_case_globals)] pub const $const_name: $name = $name($value);
|
|
|
|
)*
|
|
|
|
)*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pub const fn from_int(int: libc::c_int) -> Self
|
|
|
|
pub const fn from_int(int: libc::c_int) -> Self
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Self(int)
|
|
|
|
Self(int)
|
|
|
@ -162,10 +163,10 @@ enum_flags!(GHOST_GLFlags {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
enum_flags!(GHOST_DialogOptions
|
|
|
|
enum_flags!(GHOST_DialogOptions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DialogWarning = 1<<0,
|
|
|
|
DialogWarning = 1<<0,
|
|
|
|
DialogError = 1<<1,
|
|
|
|
DialogError = 1<<1,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
#[repr(C)]
|
|
|
|
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
|
|
|
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
|
|
|
|