File: renderer-factory.gob

package info (click to toggle)
ggobi 2.1.9~20091212-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,340 kB
  • ctags: 5,083
  • sloc: ansic: 57,242; xml: 30,604; cpp: 833; makefile: 355; java: 225; perl: 201; sh: 122; python: 23
file content (27 lines) | stat: -rw-r--r-- 571 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%h{
  #include "ggobi-renderer.h"
%}
%{
  #include <gtk/gtk.h>
  #if GTK_CHECK_VERSION(2,8,0)
  #include "ggobi-renderer-cairo.h"
  #else
  #define GGOBI_TYPE_RENDERER_CAIRO GGOBI_TYPE_RENDERER
  #endif
%}
class GGobi:Renderer:Factory from G:Object {
  public GGobiRendererFactory *
  new(void)
  {
    GObject *obj = (GObject *)GET_NEW;
    return GGOBI_RENDERER_FACTORY(obj);
  }
  
  virtual GGobiRenderer *
  create(self, GdkDrawable *parent) 
  {
    GObject *obj = g_object_new(GGOBI_TYPE_RENDERER, "parent", parent, NULL);
    return GGOBI_RENDERER(obj);
  }
}