>
> I've begun to translate a program based on CairoAda library into Gnoga.
>
Great, certainly give us the opportunity to see where we need to add to
Gnoga.
>
> Here are some questions:
> - Are APIs from Gnoga.Gui.Element.Canvas.Context_2D thread safe?
>
Yes.
> - What are equivalents for Cairo APIs: Rel_Line_To, Get_Current_Point,
> Set_Dash, Reset_Clip, Cairo_Operator_Clear?
>
I am not so familiar with Cairo, I'll Look them up and let you know.
> - Where are document named color constants like "black"?
>
I never created such a package but a good idea.
http://www.w3schools.com/tags/ref_colornames.asp
I'll see if I can find some time and create a package.
> - I need in Gnoga.Gui.Window a function like:
> function Get_View (Window : in Window_Type) return
> Gnoga.Gui.View.View_Access;
> returning the view attached in a window.
>
I've added:
function Get_View (Window : Window_Type)
return Gnoga.Gui.Base.Pointer_To_Base_Class;
-- Returns the current view attached to Window or null
- How use mouse scrolling wheel?
>
In Gnoga so far have only bound what works on all browsers with out change
(although for IE it was needed to normalize the results of the mouse
positions to integers).
Post 1.0 I planned on adding a number of additional events for touch events
and the mouse wheel if you need it sooner for your project I can probably
get it in. Let me know if you want me to add now.
> - What are equivalents for HideMouse, ShowMouse, Move_Pointer, Set_Cursor
> (cursor shape)?
>
In Gnoga.Gui.Element :
procedure Cursor (Element : in out Element_Type;
Value : in String);
function Cursor (Element : Element_Type) return String;
-- Sets the cursor to a standard type or an image
-- if set to url(url_to_image). When using a url is best
-- to suggest an alternate cursor, e.g. "url(url_to_image),auto"
-- A list of standard cursor types can be found at:
-- http://www.w3schools.com/cssref/pr_class_cursor.asp
For Hide Mouse you would use:
Element.Cursor ("none");
For Show Mouse you could either pick the cursor you wanted or to get
whatever would be the default"
Element.Cursor ("initial");
There is no equivalent to Move_Pointer (assuming that means to move the
mouse pointer to a location) and not likely something that could ever be
supported.
David Botton
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list