GraphicsDefs.h File Reference

#include <BeBuild.h>
#include <SupportDefs.h>

Go to the source code of this file.

Classes

struct  pattern
struct  rgb_color
struct  color_map
struct  overlay_rect_limits
struct  overlay_restrictions
struct  screen_id

Typedefs

typedef pattern pattern
typedef rgb_color rgb_color
typedef color_map color_map
typedef overlay_rect_limits overlay_rect_limits
typedef overlay_restrictions overlay_restrictions

Enumerations

enum  color_space {
  B_NO_COLOR_SPACE = 0x0000, B_RGB32 = 0x0008, B_RGBA32 = 0x2008, B_RGB24 = 0x0003,
  B_RGB16 = 0x0005, B_RGB15 = 0x0010, B_RGBA15 = 0x2010, B_CMAP8 = 0x0004,
  B_GRAY8 = 0x0002, B_GRAY1 = 0x0001, B_RGB32_BIG = 0x1008, B_RGBA32_BIG = 0x3008,
  B_RGB24_BIG = 0x1003, B_RGB16_BIG = 0x1005, B_RGB15_BIG = 0x1010, B_RGBA15_BIG = 0x3010,
  B_RGB32_LITTLE = B_RGB32, B_RGBA32_LITTLE = B_RGBA32, B_RGB24_LITTLE = B_RGB24, B_RGB16_LITTLE = B_RGB16,
  B_RGB15_LITTLE = B_RGB15, B_RGBA15_LITTLE = B_RGBA15, B_YCbCr422 = 0x4000, B_YCbCr411 = 0x4001,
  B_YCbCr444 = 0x4003, B_YCbCr420 = 0x4004, B_YUV422 = 0x4020, B_YUV411 = 0x4021,
  B_YUV444 = 0x4023, B_YUV420 = 0x4024, B_YUV9 = 0x402C, B_YUV12 = 0x402D,
  B_UVL24 = 0x4030, B_UVL32 = 0x4031, B_UVLA32 = 0x6031, B_LAB24 = 0x4032,
  B_LAB32 = 0x4033, B_LABA32 = 0x6033, B_HSI24 = 0x4040, B_HSI32 = 0x4041,
  B_HSIA32 = 0x6041, B_HSV24 = 0x4042, B_HSV32 = 0x4043, B_HSVA32 = 0x6043,
  B_HLS24 = 0x4044, B_HLS32 = 0x4045, B_HLSA32 = 0x6045, B_CMY24 = 0xC001,
  B_CMY32 = 0xC002, B_CMYA32 = 0xE002, B_CMYK32 = 0xC003, B_MONOCHROME_1_BIT = B_GRAY1,
  B_GRAYSCALE_8_BIT = B_GRAY8, B_COLOR_8_BIT = B_CMAP8, B_RGB_32_BIT = B_RGB32, B_RGB_16_BIT = B_RGB15,
  B_BIG_RGB_32_BIT = B_RGB32_BIG, B_BIG_RGB_16_BIT = B_RGB15_BIG
}
enum  { B_VIEWS_SUPPORT_DRAW_BITMAP = 0x1, B_BITMAPS_SUPPORT_ATTACHED_VIEWS = 0x2 }
enum  buffer_orientation { B_BUFFER_TOP_TO_BOTTOM, B_BUFFER_BOTTOM_TO_TOP }
enum  buffer_layout { B_BUFFER_NONINTERLEAVED = 1 }
enum  drawing_mode {
  B_OP_COPY, B_OP_OVER, B_OP_ERASE, B_OP_INVERT,
  B_OP_ADD, B_OP_SUBTRACT, B_OP_BLEND, B_OP_MIN,
  B_OP_MAX, B_OP_SELECT, B_OP_ALPHA
}
enum  source_alpha { B_PIXEL_ALPHA = 0, B_CONSTANT_ALPHA }
enum  alpha_function { B_ALPHA_OVERLAY = 0, B_ALPHA_COMPOSITE }
enum  {
  B_8_BIT_640x480 = 0x00000001, B_8_BIT_800x600 = 0x00000002, B_8_BIT_1024x768 = 0x00000004, B_8_BIT_1280x1024 = 0x00000008,
  B_8_BIT_1600x1200 = 0x00000010, B_16_BIT_640x480 = 0x00000020, B_16_BIT_800x600 = 0x00000040, B_16_BIT_1024x768 = 0x00000080,
  B_16_BIT_1280x1024 = 0x00000100, B_16_BIT_1600x1200 = 0x00000200, B_32_BIT_640x480 = 0x00000400, B_32_BIT_800x600 = 0x00000800,
  B_32_BIT_1024x768 = 0x00001000, B_32_BIT_1280x1024 = 0x00002000, B_32_BIT_1600x1200 = 0x00004000, B_8_BIT_1152x900 = 0x00008000,
  B_16_BIT_1152x900 = 0x00010000, B_32_BIT_1152x900 = 0x00020000, B_15_BIT_640x480 = 0x00040000, B_15_BIT_800x600 = 0x00080000,
  B_15_BIT_1024x768 = 0x00100000, B_15_BIT_1280x1024 = 0x00200000, B_15_BIT_1600x1200 = 0x00400000, B_15_BIT_1152x900 = 0x00800000,
  B_FAKE_DEVICE = 0x40000000, B_8_BIT_640x400 = (int)0x80000000
}

Functions

rgb_color mix_color (rgb_color color1, rgb_color color2, uint8 amount)
rgb_color blend_color (rgb_color color1, rgb_color color2, uint8 amount)
rgb_color disable_color (rgb_color color, rgb_color background)
bool bitmaps_support_space (color_space space, uint32 *support_flags)
status_t get_pixel_size_for (color_space space, size_t *pixel_chunk, size_t *row_alignment, size_t *pixels_per_chunk)

Variables

const pattern B_SOLID_HIGH
const pattern B_MIXED_COLORS
const pattern B_SOLID_LOW
const rgb_color B_TRANSPARENT_COLOR
const uint8 B_TRANSPARENT_MAGIC_CMAP8
const uint16 B_TRANSPARENT_MAGIC_RGBA15
const uint16 B_TRANSPARENT_MAGIC_RGBA15_BIG
const uint32 B_TRANSPARENT_MAGIC_RGBA32
const uint32 B_TRANSPARENT_MAGIC_RGBA32_BIG
const uint8 B_TRANSPARENT_8_BIT
const rgb_color B_TRANSPARENT_32_BIT
const struct screen_id B_MAIN_SCREEN_ID


Typedef Documentation

typedef struct color_map color_map
 

typedef struct overlay_rect_limits overlay_rect_limits
 

typedef struct overlay_restrictions overlay_restrictions
 

typedef struct pattern pattern
 

typedef struct rgb_color rgb_color
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
B_VIEWS_SUPPORT_DRAW_BITMAP 
B_BITMAPS_SUPPORT_ATTACHED_VIEWS 

anonymous enum
 

Enumerator:
B_8_BIT_640x480 
B_8_BIT_800x600 
B_8_BIT_1024x768 
B_8_BIT_1280x1024 
B_8_BIT_1600x1200 
B_16_BIT_640x480 
B_16_BIT_800x600 
B_16_BIT_1024x768 
B_16_BIT_1280x1024 
B_16_BIT_1600x1200 
B_32_BIT_640x480 
B_32_BIT_800x600 
B_32_BIT_1024x768 
B_32_BIT_1280x1024 
B_32_BIT_1600x1200 
B_8_BIT_1152x900 
B_16_BIT_1152x900 
B_32_BIT_1152x900 
B_15_BIT_640x480 
B_15_BIT_800x600 
B_15_BIT_1024x768 
B_15_BIT_1280x1024 
B_15_BIT_1600x1200 
B_15_BIT_1152x900 
B_FAKE_DEVICE 
B_8_BIT_640x400 

enum alpha_function
 

Enumerator:
B_ALPHA_OVERLAY 
B_ALPHA_COMPOSITE 

enum buffer_layout
 

Enumerator:
B_BUFFER_NONINTERLEAVED 

enum buffer_orientation
 

Enumerator:
B_BUFFER_TOP_TO_BOTTOM 
B_BUFFER_BOTTOM_TO_TOP 

enum color_space
 

Enumerator:
B_NO_COLOR_SPACE 
B_RGB32 
B_RGBA32 
B_RGB24 
B_RGB16 
B_RGB15 
B_RGBA15 
B_CMAP8 
B_GRAY8 
B_GRAY1 
B_RGB32_BIG 
B_RGBA32_BIG 
B_RGB24_BIG 
B_RGB16_BIG 
B_RGB15_BIG 
B_RGBA15_BIG 
B_RGB32_LITTLE 
B_RGBA32_LITTLE 
B_RGB24_LITTLE 
B_RGB16_LITTLE 
B_RGB15_LITTLE 
B_RGBA15_LITTLE 
B_YCbCr422 
B_YCbCr411 
B_YCbCr444 
B_YCbCr420 
B_YUV422 
B_YUV411 
B_YUV444 
B_YUV420 
B_YUV9 
B_YUV12 
B_UVL24 
B_UVL32 
B_UVLA32 
B_LAB24 
B_LAB32 
B_LABA32 
B_HSI24 
B_HSI32 
B_HSIA32 
B_HSV24 
B_HSV32 
B_HSVA32 
B_HLS24 
B_HLS32 
B_HLSA32 
B_CMY24 
B_CMY32 
B_CMYA32 
B_CMYK32 
B_MONOCHROME_1_BIT 
B_GRAYSCALE_8_BIT 
B_COLOR_8_BIT 
B_RGB_32_BIT 
B_RGB_16_BIT 
B_BIG_RGB_32_BIT 
B_BIG_RGB_16_BIT 

enum drawing_mode
 

Enumerator:
B_OP_COPY 
B_OP_OVER 
B_OP_ERASE 
B_OP_INVERT 
B_OP_ADD 
B_OP_SUBTRACT 
B_OP_BLEND 
B_OP_MIN 
B_OP_MAX 
B_OP_SELECT 
B_OP_ALPHA 

enum source_alpha
 

Enumerator:
B_PIXEL_ALPHA 
B_CONSTANT_ALPHA 


Function Documentation

bool bitmaps_support_space color_space  space,
uint32 *  support_flags
 

rgb_color blend_color rgb_color  color1,
rgb_color  color2,
uint8  amount
 

rgb_color disable_color rgb_color  color,
rgb_color  background
 

status_t get_pixel_size_for color_space  space,
size_t *  pixel_chunk,
size_t *  row_alignment,
size_t *  pixels_per_chunk
 

rgb_color mix_color rgb_color  color1,
rgb_color  color2,
uint8  amount
 


Variable Documentation

const struct screen_id B_MAIN_SCREEN_ID
 

const pattern B_MIXED_COLORS
 

const pattern B_SOLID_HIGH
 

const pattern B_SOLID_LOW
 

const rgb_color B_TRANSPARENT_32_BIT
 

const uint8 B_TRANSPARENT_8_BIT
 

const rgb_color B_TRANSPARENT_COLOR
 

const uint8 B_TRANSPARENT_MAGIC_CMAP8
 

const uint16 B_TRANSPARENT_MAGIC_RGBA15
 

const uint16 B_TRANSPARENT_MAGIC_RGBA15_BIG
 

const uint32 B_TRANSPARENT_MAGIC_RGBA32
 

const uint32 B_TRANSPARENT_MAGIC_RGBA32_BIG
 


Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.