forked from rebolsource/r3
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: enabled "window" host extension on Windows (without graphics)...
... so it's possible to `view gob` or `view image` to open a system window. Originally the windowing was dependent on `graphics` extension. Now it is independent and the graphics (using AGG ) is not yet ready.
- Loading branch information
Showing
13 changed files
with
764 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
IDI_APPICON ICON "r3.ico" | ||
101 ICON "r3.ico" | ||
|
||
1 VERSIONINFO | ||
FILEVERSION 3,0,0,0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
REBOL [ | ||
System: "REBOL [R3] Language Interpreter and Run-time Environment" | ||
Title: "REBOL Window" | ||
Author: ["Richard Smolak" "Carl Sassenrath" "Oldes"] | ||
Rights: { | ||
Copyright 2012 REBOL Technologies | ||
REBOL is a trademark of REBOL Technologies | ||
Additional code modifications and improvements Copyright 2012 Saphirion AG | ||
} | ||
License: { | ||
Licensed under the Apache License, Version 2.0. | ||
See: http://www.apache.org/licenses/LICENSE-2.0 | ||
} | ||
Name: window | ||
Type: extension | ||
Exports: [] ; added by make-host-ext.r | ||
Note: "Run make-host-ext.r to convert" | ||
] | ||
|
||
words: [ | ||
;gui-metric | ||
border-fixed | ||
border-size | ||
screen-size | ||
virtual-screen-size | ||
log-size | ||
phys-size | ||
screen-dpi | ||
screen-num | ||
screen-origin | ||
title-size | ||
window-min-size | ||
work-origin | ||
work-size | ||
restore | ||
minimize | ||
maximize | ||
activate | ||
] | ||
|
||
;temp hack - will be removed later | ||
init-words: command [ | ||
words [block!] | ||
] | ||
|
||
init-words words | ||
|
||
init-top-window: command [ | ||
"Initialize window subsystem." | ||
gob [gob!] "The screen gob (root gob)" | ||
] | ||
|
||
cursor: command [ | ||
"Changes the mouse cursor image." | ||
image [integer! image! none!] | ||
] | ||
|
||
show: command [ | ||
"Display or update a graphical object or block of them." | ||
gob [gob! none!] | ||
] | ||
|
||
gui-metric: command [ | ||
"Returns specific gui related metric setting." | ||
keyword [word!] "Available keywords: BORDER-FIXED, BORDER-SIZE, SCREEN-DPI, LOG-SIZE, PHYS-SIZE, SCREEN-SIZE, VIRTUAL-SCREEN-SIZE, TITLE-SIZE, WINDOW-MIN-SIZE, WORK-ORIGIN and WORK-SIZE." | ||
/set | ||
val "Value used to set specific setting(works only on 'writable' keywords)." | ||
/display | ||
idx [integer!] "Display index, starting with 0" | ||
] | ||
|
||
show-soft-keyboard: command [ | ||
"Display on-screen keyboard for user input." | ||
/attach | ||
gob [gob!] "GOB which should be visible during the input operation" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.