Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.

Commit

Permalink
* code_graph/: added view_matrix.ml and more files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Padioleau authored and Yoann Padioleau committed May 18, 2012
1 parent 451d4df commit 8303335
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 0 deletions.
41 changes: 41 additions & 0 deletions code_graph/cairo_helpers3.ml
@@ -0,0 +1,41 @@
(* Yoann Padioleau
*
* Copyright (C) 2012 Facebook
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file license.txt.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
* license.txt for more details.
*)
open Common

(* floats are the norm in graphics *)
open Common.ArithFloatInfix

(*****************************************************************************)
(* Prelude *)
(*****************************************************************************)

(* todo: factorize with codemap/cairo_helpers.ml *)


(*****************************************************************************)
(* Text related *)
(*****************************************************************************)

(*****************************************************************************)
(* Distance conversion *)
(*****************************************************************************)

(*****************************************************************************)
(* Surface *)
(*****************************************************************************)

let surface_of_pixmap pm =
let cr = Cairo_lablgtk.create pm#pixmap in
Cairo.get_target cr
3 changes: 3 additions & 0 deletions code_graph/controller3.mli
@@ -0,0 +1,3 @@

val _statusbar_addtext: (string -> unit) ref
val _set_title: (string -> unit) ref
30 changes: 30 additions & 0 deletions code_graph/view_matrix.ml
@@ -0,0 +1,30 @@
(* Yoann Padioleau
*
* Copyright (C) 2012 Facebook
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation, with the
* special exception on linking described in file license.txt.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file
* license.txt for more details.
*)
open Common
(* floats are the norm in graphics *)
open Common.ArithFloatInfix

module CairoH = Cairo_helpers3

(*****************************************************************************)
(* Prelude *)
(*****************************************************************************)

(*****************************************************************************)
(* Painting *)
(*****************************************************************************)

let paint w =
raise Todo
2 changes: 2 additions & 0 deletions code_graph/view_matrix.mli
@@ -0,0 +1,2 @@

val paint: Model3.world -> unit
Empty file added code_graph/view_overlays3.ml
Empty file.
Empty file added code_graph/view_overlays3.mli
Empty file.

0 comments on commit 8303335

Please sign in to comment.