Changeset 7470d97 in mainline for uspace/lib/gfx/src/render.c


Ignore:
Timestamp:
2021-04-30T15:05:06Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
051349b
Parents:
252d03c
Message:

Add GC operation to set clipping rectangle

The number of changed files is due to the proliferation of GC
implementations, mostly these are just dummies in unit tests.
Definitely need to tame those in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/src/render.c

    r252d03c r7470d97  
    3636#include <gfx/render.h>
    3737#include "../private/context.h"
     38
     39/** Set clipping rectangle.
     40 *
     41 * @param gc Graphic context
     42 * @param rect Rectangle or @c NULL (no extra clipping)
     43 *
     44 * @return EOK on success, ENOMEM if insufficient resources,
     45 *         EIO if grahic device connection was lost
     46 */
     47errno_t gfx_set_clip_rect(gfx_context_t *gc, gfx_rect_t *rect)
     48{
     49        return gc->ops->set_clip_rect(gc->arg, rect);
     50}
    3851
    3952/** Set drawing color.
Note: See TracChangeset for help on using the changeset viewer.