| Revision 4755,
1.0 KB
checked in by jylam, 2 years ago
(diff) |
- Display rendering in caca window
|
| 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 | |
|---|
| 17 | gWindow *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 | window->width = width; |
|---|
| 24 | return window; |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | void gaycko_window_set_dom(gWindow *window, gDOM *dom) { |
|---|
| 28 | window->dom = dom; |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | void gaycko_destroy_window(gWindow *window) { |
|---|
| 32 | caca_free_canvas(window->cv); |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | void gaycko_display_window(gWindow *window) { |
|---|
| 36 | |
|---|
| 37 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.