[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Camelot-discuss] Bindings librsvg
From: |
Olivier Andrieu |
Subject: |
Re: [Camelot-discuss] Bindings librsvg |
Date: |
Tue, 11 Feb 2003 15:17:32 +0100 |
Sven Luther [Tuesday 11 February 2003] :
> > on peut faire aussi qqche comme ça :
> > ,----
> > | type size_fun = int -> int -> int * int
> > |
> > | val default : size_fun
> > | val at_size : int -> int -> size_fun
> > | val at_zoom : float -> float -> size_fun
> > | ... etc ...
> > |
> > | val render : string -> ?gz:bool -> ?dpi:float -> size_fun ->
> > Sdlvideo.surface
> > `----
>
> Oui, c'est a cela que je pensais.
>
> methode 1) : let surf = render buf (AT_SIZE (5,6))
> methode 2) : let surf = render buf (at_size 5 6)
>
> Mmm, le deuxieme me parait a la fois plus general et plus lisible,
> donc je serait partant pour cette derniere option moi meme.
OK (c'est vrai que c'est plus lisible). Je vais faire ça ce soir,
ainsi que la version pour lablgtk2.
Je mettrai aussi un `render_from_file' avec exactement le même type
mais où le premier arguement désignera un fichier.
- Re: [Camelot-discuss] Bindings librsvg, (continued)
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Jérôme Marant, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Jérôme Marant, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Jérôme Marant, 2003/02/11
Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg,
Olivier Andrieu <=
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/11
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/12
- Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/12
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/12
- Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/12
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/12
- Re: [Camelot-discuss] Bindings librsvg, Olivier Andrieu, 2003/02/13
- Re: [Camelot-discuss] Bindings librsvg, Sven Luther, 2003/02/13
- Re: [Camelot-discuss] Bindings librsvg, Luc Mazardo, 2003/02/13