Changeset 7e38970d in mainline for uspace/app/terminal/terminal.h


Ignore:
Timestamp:
2020-12-07T00:08:37Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25f26600
Parents:
7a873f0 (diff), 8596474 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'jxsvoboda-gfx' into master

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/terminal/terminal.h

    r7a873f0 r7e38970d  
    11/*
     2 * Copyright (c) 2019 Jiri Svoboda
    23 * Copyright (c) 2012 Petr Koupy
    34 * All rights reserved.
     
    2728 */
    2829
    29 /** @addtogroup gui
     30/** @addtogroup terminal
    3031 * @{
    3132 */
     
    3435 */
    3536
    36 #ifndef GUI_TERMINAL_H_
    37 #define GUI_TERMINAL_H_
     37#ifndef TERMINAL_H
     38#define TERMINAL_H
    3839
    39 #include <stddef.h>
     40#include <errno.h>
    4041#include <fibril_synch.h>
    41 #include <draw/font.h>
     42#include <gfx/bitmap.h>
     43#include <gfx/context.h>
     44#include <gfx/coord.h>
    4245#include <io/chargrid.h>
    4346#include <io/con_srv.h>
    4447#include <loc.h>
    45 #include <adt/list.h>
    4648#include <adt/prodcons.h>
    4749#include <stdatomic.h>
    4850#include <str.h>
    49 #include "widget.h"
     51#include <ui/ui.h>
     52#include <ui/window.h>
    5053
    5154#define UTF8_CHAR_BUFFER_SIZE  (STR_BOUNDS(1) + 1)
    5255
    53 typedef struct terminal {
    54         widget_t widget;
     56typedef enum {
     57        tf_topleft = 1
     58} terminal_flags_t;
     59
     60typedef struct {
     61        ui_t *ui;
     62        ui_window_t *window;
     63        ui_resource_t *ui_res;
     64        gfx_context_t *gc;
     65
     66        gfx_bitmap_t *bmp;
     67        sysarg_t w;
     68        sysarg_t h;
     69        gfx_rect_t update;
     70        gfx_coord2_t off;
     71        bool is_focused;
    5572
    5673        fibril_mutex_t mtx;
     
    7289} terminal_t;
    7390
    74 extern bool init_terminal(terminal_t *, widget_t *, const void *, sysarg_t,
    75     sysarg_t);
    76 extern terminal_t *create_terminal(widget_t *, const void *, sysarg_t,
    77     sysarg_t);
    78 extern void deinit_terminal(terminal_t *);
     91extern errno_t terminal_create(const char *, sysarg_t, sysarg_t,
     92    terminal_flags_t, terminal_t **);
     93extern void terminal_destroy(terminal_t *);
    7994
    8095#endif
Note: See TracChangeset for help on using the changeset viewer.