Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
orbclient
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
orbclient
Commits
9c1b592a
Commit
9c1b592a
authored
Apr 01, 2017
by
Andrew Plaza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed Exit flag to 'Unclosable'
parent
f60b2c16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/imp/orbital.rs
src/imp/orbital.rs
+3
-3
src/imp/sdl2.rs
src/imp/sdl2.rs
+2
-2
src/lib.rs
src/lib.rs
+1
-1
No files found.
src/imp/orbital.rs
View file @
9c1b592a
...
...
@@ -85,12 +85,12 @@ impl Window {
pub
fn
new_flags
(
x
:
i32
,
y
:
i32
,
w
:
u32
,
h
:
u32
,
title
:
&
str
,
flags
:
&
[
WindowFlag
])
->
Option
<
Self
>
{
let
mut
async
=
false
;
let
mut
resizable
=
false
;
let
mut
exit
=
tru
e
;
let
mut
unclosable
=
fals
e
;
for
&
flag
in
flags
.iter
()
{
match
flag
{
WindowFlag
::
Async
=>
async
=
true
,
WindowFlag
::
Resizable
=>
resizable
=
true
,
WindowFlag
::
Exit
=>
exit
=
fals
e
WindowFlag
::
Unclosable
=>
unclosable
=
tru
e
}
}
...
...
@@ -98,7 +98,7 @@ impl Window {
"orbital:{}{}{}/{}/{}/{}/{}/{}"
,
if
async
{
"a"
}
else
{
""
},
if
resizable
{
"r"
}
else
{
""
},
if
exit
==
false
{
"e
"
}
else
{
""
},
if
unclosable
{
"u
"
}
else
{
""
},
x
,
y
,
w
,
h
,
title
))
{
if
let
Ok
(
address
)
=
unsafe
{
syscall
::
fmap
(
file
.as_raw_fd
(),
0
,
(
w
*
h
*
4
)
as
usize
)
}
{
...
...
src/imp/sdl2.rs
View file @
9c1b592a
...
...
@@ -99,12 +99,12 @@ impl Window {
let
mut
async
=
false
;
let
mut
resizable
=
false
;
let
mut
exit
=
tru
e
;
let
mut
unclosable
=
fals
e
;
for
&
flag
in
flags
.iter
()
{
match
flag
{
WindowFlag
::
Async
=>
async
=
true
,
WindowFlag
::
Resizable
=>
resizable
=
true
,
WindowFlag
::
Exit
=>
exit
=
fals
e
,
WindowFlag
::
Unclosable
=>
unclosable
=
tru
e
,
}
}
...
...
src/lib.rs
View file @
9c1b592a
...
...
@@ -24,7 +24,7 @@ pub mod renderer;
pub
enum
WindowFlag
{
Async
,
Resizable
,
Exit
Unclosable
}
#[cfg(target_os
=
"redox"
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment