XenevaOS
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
draw.h File Reference
#include "chitralekha.h"
#include "color.h"
#include <_xeneva.h>
Include dependency graph for draw.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _chrect_
 

Typedefs

typedef struct _chrect_ ChRect
 

Functions

XE_LIB void ChDrawRect (ChCanvas *canvas, unsigned x, unsigned y, unsigned w, unsigned h, uint32_t col)
 
XE_LIB void ChDrawRectClipped (ChCanvas *canv, unsigned x, unsigned y, unsigned w, unsigned h, ChRect *clip, uint32_t col)
 
XE_LIB void ChDrawVerticalLine (ChCanvas *canv, unsigned x, unsigned y, unsigned len, uint32_t col)
 
XE_LIB void ChDrawHorizontalLine (ChCanvas *canv, unsigned x, unsigned y, unsigned len, uint32_t col)
 
XE_LIB void ChDrawRectUnfilled (ChCanvas *canv, unsigned x, unsigned y, unsigned w, unsigned h, uint32_t color)
 
XE_LIB void ChDrawRectUnfilledClipped (ChCanvas *canv, unsigned x, unsigned y, unsigned w, unsigned h, ChRect *clip, uint32_t col)
 
XE_LIB void ChDrawFilledCircle (ChCanvas *canv, int x, int y, int radius, uint32_t fill_col)
 
XE_LIB void ChDrawFilledCircleAA (ChCanvas *canv, int cx, int cy, int radius, uint32_t color)
 
XE_LIB void ChDrawLine (ChCanvas *canv, int x1, int y1, int x2, int y2, uint32_t color)
 
XE_LIB void ChDrawCircleUnfilled (ChCanvas *canvas, int x, int y, int radius, uint32_t color)
 
XE_LIB void ChDrawCapsule (ChCanvas *canv, int x, int y, int width, int height, uint32_t color)
 
XE_LIB void ChDrawRoundedRect (ChCanvas *canv, int x, int y, int width, int height, uint32_t color, int topleftRadius, int topRightRadius, int bottomRightRadius, int bottomLeftRadius, ChRect *mask)
 

Typedef Documentation

◆ ChRect

typedef struct _chrect_ ChRect

BSD 2-Clause License

Copyright (c) 2022-2023, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ ChDrawCapsule()

XE_LIB void ChDrawCapsule ( ChCanvas canv,
int  x,
int  y,
int  width,
int  height,
uint32_t  color 
)

◆ ChDrawCircleUnfilled()

XE_LIB void ChDrawCircleUnfilled ( ChCanvas canvas,
int  x,
int  y,
int  radius,
uint32_t  color 
)

◆ ChDrawFilledCircle()

XE_LIB void ChDrawFilledCircle ( ChCanvas canv,
int  x,
int  y,
int  radius,
uint32_t  fill_col 
)

◆ ChDrawFilledCircleAA()

XE_LIB void ChDrawFilledCircleAA ( ChCanvas canv,
int  cx,
int  cy,
int  radius,
uint32_t  color 
)

◆ ChDrawHorizontalLine()

XE_LIB void ChDrawHorizontalLine ( ChCanvas canv,
unsigned  x,
unsigned  y,
unsigned  len,
uint32_t  col 
)

◆ ChDrawLine()

XE_LIB void ChDrawLine ( ChCanvas canv,
int  x1,
int  y1,
int  x2,
int  y2,
uint32_t  color 
)

◆ ChDrawRect()

XE_LIB void ChDrawRect ( ChCanvas canvas,
unsigned  x,
unsigned  y,
unsigned  w,
unsigned  h,
uint32_t  col 
)

◆ ChDrawRectClipped()

XE_LIB void ChDrawRectClipped ( ChCanvas canv,
unsigned  x,
unsigned  y,
unsigned  w,
unsigned  h,
ChRect clip,
uint32_t  col 
)

◆ ChDrawRectUnfilled()

XE_LIB void ChDrawRectUnfilled ( ChCanvas canv,
unsigned  x,
unsigned  y,
unsigned  w,
unsigned  h,
uint32_t  color 
)

◆ ChDrawRectUnfilledClipped()

XE_LIB void ChDrawRectUnfilledClipped ( ChCanvas canv,
unsigned  x,
unsigned  y,
unsigned  w,
unsigned  h,
ChRect clip,
uint32_t  col 
)

◆ ChDrawRoundedRect()

XE_LIB void ChDrawRoundedRect ( ChCanvas canv,
int  x,
int  y,
int  width,
int  height,
uint32_t  color,
int  topleftRadius,
int  topRightRadius,
int  bottomRightRadius,
int  bottomLeftRadius,
ChRect mask 
)

◆ ChDrawVerticalLine()

XE_LIB void ChDrawVerticalLine ( ChCanvas canv,
unsigned  x,
unsigned  y,
unsigned  len,
uint32_t  col 
)