World: r3wp
[!REBOL3 GUI]
older newer | first last |
Maxim 7-Jun-2010 [1556] | when we'll have a webkit REBOL plugin, then I (and hopefull others) will be able to do a real-time web dev software using the remark framework. |
AdrianS 7-Jun-2010 [1557x2] | I wonder what's involved in hosting WebKit - pulling down the source now |
Looks like it's been discussed over the years, but I don't see that anything significant has been done, by googling. | |
Maxim 7-Jun-2010 [1559x2] | when I went to the webkit site is was severely under-documented. |
it might actually be easier to look at the chrome source code and starting from there! | |
AdrianS 7-Jun-2010 [1561] | yeah - the embedding API docs are not there at all |
RobertS 7-Jun-2010 [1562] | Adobe Flex 4 ActionScript 3 wraps WebKit, right? |
AdrianS 7-Jun-2010 [1563] | a good list here: http://trac.webkit.org/wiki/Applicationsusing WebKit |
BrianH 7-Jun-2010 [1564] | Hosting Webkit wouldn't help here: The whole point to HTML5 etc. acceptance is that people don't have to install another program - they can just use their existing web browser. Hosting Webkit would only help us if we want to display existing web browser code; it wouldn't be necessary for generating code to run in Webkit, because the copy of Webkit that people would be displaying your GUI in would usually be a separate program, often on a separate computer. And HTML/JS/CSS is just text - we can generate text already. |
Pekr 7-Jun-2010 [1565] | plug-in still might be the way to go. Google is introducing native extensions too ... |
BrianH 7-Jun-2010 [1566] | Native Client would be an interesting way to get REBOL into a browser, particularly once they get the portable version up and running :) |
AdrianS 7-Jun-2010 [1567x2] | Brian, my point with the embedded WebKit would be to have an alternative gui framework that has the capabilities people are used to from a browser. With a non-hosted WebKit (or any old browser), you couldn't have very close integration with the REBOL runtime. |
in-browser use of REBOL is a different thing - for sure more useful in the longer term, but what can be done today? | |
BrianH 7-Jun-2010 [1569] | Embedding REBOL *in* Webkit would work well. The other way around wouldn't help as much, because we'd be stuck with the browser GUI model when we don't have to be. People don't use the HTML/CSS/JS model because it's good (it's not), they use it because it's there already. |
AdrianS 7-Jun-2010 [1570x2] | exactly - it's there right now, as opposed to VID 3.4 which is only going to be fully available some time from now (in a more polished form) |
As for embedding REBOL into WebKit, where would that get us? It's not as if other browsers based on WebKit would pick up these changes even if we were to submit them to the project. | |
BrianH 7-Jun-2010 [1572] | No, I mean there on users' computers already, in their existing web browsers, not in *any* standalone program. Webkit embedded in R3 would be viewed as a standalone program. R3 embedded in Webkit would be viewed as a plugin to a program they already have. |
AdrianS 7-Jun-2010 [1573x4] | doing REBOL through native client is a different thing though - that's worthwhile |
WebKit hostted in R# would just be viewed as an additional lib that's part of a customized distribution | |
sorry, r# | |
jeez, you know what I mean :-) | |
BrianH 7-Jun-2010 [1577] | Don't worry, I wasn't thinking of embedding R3 through anything other than browser plugin APIs, or Native Client. There's no point to trying to submit it into a particular browser unless it also exists as a plugin for other browsers. |
Maxim 7-Jun-2010 [1578] | sorry but using webkit within REBOL is very usefull. we can use HTML content within our own tools. |
AdrianS 7-Jun-2010 [1579x2] | hope to have a very rudimentary extension soon |
least for Windows | |
BrianH 7-Jun-2010 [1581] | Maxim, I don't doubt that it using Webkit in R3 would be useful. But it would be useful for other reasons than providing a GUI for R3 (the topic of this group) - more for displaying the GUIs of other code within R3, other code (un?)fortunate enough to have been written in HTML/CSS/JS. |
Maxim 7-Jun-2010 [1582x2] | that's what I mean... but it also means that we could build nice web dev tools using R3, which could cross-compile as desktop and web apps. |
anyhow... I'm still anxious to get next plugin/host. | |
Henrik 11-Jun-2010 [1584] | Small status update: Working on resizing now, particularly proper pixel accuracy and getting rid of all blocks. Ladislav and Cyphre are working on a good algorithm here. This will also create a change in how styles draw gobs: Currently a gob defines mostly only the draw area of a face and then spaces between gobs are used to create paddings. This is efficient, but it makes drawing things outside a button, like blurred shadows very difficult. So instead, the gob now constitutes both the drawn button and its padding. A side effect is that spacings between gobs are now always pixel accurate, because they now rely on the draw block, rather than the resizing engine. A downside is that when you define the style, you also need to define a click area, to avoid getting a click registered on a space between two buttons. But perhaps this can be automated, don't know yet. Furthermore, there will be keywords available for DRAW blocks to easily locate a corner or a center of the draw block. Overall, these things will make it much easier to write draw blocks for styles. |
DideC 11-Jun-2010 [1585] | IT seems god, but in the same time, i'm not sure I like this "clipping area" of events thing. A "silly" idea : could use one gob for the drawing, and another one in front of it clipped to the "usable" size for the event tracking !? |
Henrik 11-Jun-2010 [1586] | Cyphre has a good idea on how to do this, and it probably involves an extra gob. As a side effect, it might be possible to define a bitmap mask to get pixel precision accuracy for click events. |
Rebolek 11-Jun-2010 [1587] | Bitmap mask doesn't require another gob. |
Henrik 11-Jun-2010 [1588] | ok |
Maxim 11-Jun-2010 [1589] | globs use several layers, one is for mouse interaction. |
DideC 11-Jun-2010 [1590] | globs => you mean in glass ? |
Maxim 11-Jun-2010 [1591] | yep, the low-level engine over which glass is done. I was confirming that its a good and simple way to go forward for R3 too. |
Gregg 11-Jun-2010 [1592] | Didier, are you thinking of how QNX Photon worked? I can't remember exactly, but that sounds like what it did. |
Henrik 15-Jun-2010 [1593] | http://rebol.hmkdesign.dk/files/r3/gui/210.png Demo of pixel accurate resizing. http://rebol.hmkdesign.dk/files/r3/gui/211.png Same as 210, except border sizes for each individual GOB is randomized. |
AdrianS 15-Jun-2010 [1594x2] | Randomized to be different, but constant for each rect or to vary on the different sides? It seems to be the latter... |
I guess I'm asking if the variance I see on the various sides is an artifact of the resizing | |
Henrik 15-Jun-2010 [1596] | the gob size is supposed to be nice like in 210, but the border moves in and out randomly per side per gob. |
AdrianS 15-Jun-2010 [1597] | this is what you're working on fixing currently? |
Henrik 15-Jun-2010 [1598] | Cyphre is working on this, yes. |
AdrianS 15-Jun-2010 [1599] | sorry, I should learn how to read stuff that's been posted already... |
Pekr 16-Jun-2010 [1600] | A downside is that when you define the style, you also need to define a click area, to avoid getting a click registered on a space between two buttons. ..... I am not sure I can understan, how it is done. Is another gob used to define click-area?. Carl reduced VID to one-style = one-gob, and it was clear it can't work for more complex style, you had to "switch" drawblocks anyway. Now if I understand it correctly, we are back to kind of "border" aspect of R2? I still liked maybe more complex but also more flexible way of Gab's VID, where one style was compound of more gobs, if needed .... |
Rebolek 16-Jun-2010 [1601x2] | you don't need another gob to define click-area. It will be probably done using a bitmap mask. |
Also you can have more gobs in one style. But you do not need it, most of the time. | |
Pekr 16-Jun-2010 [1603] | bitmap mask? Will not it be slow? |
Henrik 16-Jun-2010 [1604] | Pekr, after working with multiple GOBs for a single face, I think it's simply easier to just work with one GOB and a set of draw blocks on top of it. Otherwise you get many small parts. |
Rebolek 16-Jun-2010 [1605] | Pekr - why slow? |
older newer | first last |