source: gaycko/trunk/src/window/window.c @ 4768

Last change on this file since 4768 was 4768, checked in by Jean-Yves Lamoureux, 10 years ago
  • Reworked table handling
File size: 1.1 KB
Line 
1/*
2 *  Gaycko        Text mode web browser
3 *  Copyright (c) 2011 Jean-Yves Lamoureux <jylam@lnxscene.org>
4 *                All Rights Reserved
5 *
6 *  This library is free software. It comes without any warranty, to
7 *  the extent permitted by applicable law. You can redistribute it
8 *  and/or modify it under the terms of the Do What The Fuck You Want
9 *  To Public License, Version 2, as published by Sam Hocevar. See
10 *  http://sam.zoy.org/wtfpl/COPYING for more details.
11 */
12#include <stdio.h>
13#include <stdlib.h>
14
15#include "window/window.h"
16
17gWindow *gaycko_create_window(int width, int height) {
18        gWindow *window = NULL;   
19    window = (gWindow*) malloc(sizeof(window));
20   
21    window->dom = NULL;
22    window->cv = caca_create_canvas(width, height);
23    caca_set_color_ansi(window->cv, CACA_DEFAULT, CACA_BLACK);
24    window->width = width;
25        return window;
26}
27
28void gaycko_window_set_dom(gWindow *window, gDOM *dom) {
29        window->dom = dom;   
30}
31
32void gaycko_destroy_window(gWindow *window) {
33        caca_free_canvas(window->cv);   
34}
35
36void gaycko_display_window(gWindow *window) {
37
38}
Note: See TracBrowser for help on using the repository browser.