mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 12:27:22 +08:00
fix header guard & typo
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef API_H
|
||||
#define API_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_API_H
|
||||
#define GUILITE_CORE_INCLUDE_API_H
|
||||
|
||||
#define REAL_TIME_TASK_CYCLE_MS 50
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
#define GL_RGB_32_to_16(rgb) (((((unsigned int)(rgb)) & 0xFF) >> 3) | ((((unsigned int)(rgb)) & 0xFC00) >> 5) | ((((unsigned int)(rgb)) & 0xF80000) >> 8))
|
||||
#define GL_RGB_16_to_32(rgb) ((0xFF << 24) | ((((unsigned int)(rgb)) & 0x1F) << 3) | ((((unsigned int)(rgb)) & 0x7E0) << 5) | ((((unsigned int)(rgb)) & 0xF800) << 8))
|
||||
|
||||
#define ALIGN_HCENTER 0x00000000L
|
||||
#define ALIGN_LEFT 0x01000000L
|
||||
#define ALIGN_RIGHT 0x02000000L
|
||||
#define ALIGN_HMASK 0x03000000L
|
||||
|
||||
#define ALIGN_VCENTER 0x00000000L
|
||||
#define ALIGN_TOP 0x00100000L
|
||||
#define ALIGN_BOTTOM 0x00200000L
|
||||
#define ALIGN_HCENTER 0x00000000L
|
||||
#define ALIGN_LEFT 0x01000000L
|
||||
#define ALIGN_RIGHT 0x02000000L
|
||||
#define ALIGN_HMASK 0x03000000L
|
||||
|
||||
#define ALIGN_VCENTER 0x00000000L
|
||||
#define ALIGN_TOP 0x00100000L
|
||||
#define ALIGN_BOTTOM 0x00200000L
|
||||
#define ALIGN_VMASK 0x00300000L
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef AUDIO_MANGE_H
|
||||
#define AUDIO_MANGE_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_AUDIO_H
|
||||
#define GUILITE_CORE_INCLUDE_AUDIO_H
|
||||
|
||||
enum AUDIO_TYPE
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef BITMAP_UNIT_H
|
||||
#define BITMAP_UNIT_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_BITMAP_H
|
||||
#define GUILITE_CORE_INCLUDE_BITMAP_H
|
||||
|
||||
#define DEFAULT_MASK_COLOR 0xFF080408
|
||||
class c_surface;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef CMD_TARGET_H
|
||||
#define CMD_TARGET_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_CMD_TARGET_H
|
||||
#define GUILITE_CORE_INCLUDE_CMD_TARGET_H
|
||||
|
||||
class c_cmd_target;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef DISPLAY_H
|
||||
#define DISPLAY_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_DISPLAY_H
|
||||
#define GUILITE_CORE_INCLUDE_DISPLAY_H
|
||||
|
||||
#define SURFACE_CNT_MAX 6//root + pages
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef MSG_H
|
||||
#define MSG_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_MSG_H
|
||||
#define GUILITE_CORE_INCLUDE_MSG_H
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef RECT_H
|
||||
#define RECT_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_RECT_H
|
||||
#define GUILITE_CORE_INCLUDE_RECT_H
|
||||
|
||||
class c_rect
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef RESOURCE_H
|
||||
#define RESOURCE_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_RESOURCE_H
|
||||
#define GUILITE_CORE_INCLUDE_RESOURCE_H
|
||||
|
||||
//BITMAP
|
||||
typedef struct struct_bitmap_info
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef SURFACE_H
|
||||
#define SURFACE_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_SURFACE_H
|
||||
#define GUILITE_CORE_INCLUDE_SURFACE_H
|
||||
|
||||
class c_frame_layer
|
||||
{
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
fill_rect(rect.m_left, rect.m_top, rect.m_right, rect.m_bottom, rgb, z_order);
|
||||
}
|
||||
|
||||
int flush_scrren(int left, int top, int right, int bottom);
|
||||
int flush_screen(int left, int top, int right, int bottom);
|
||||
bool is_valid(c_rect rect);
|
||||
bool is_active() { return m_is_active; }
|
||||
c_display* get_display() { return m_display; }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef MY_RESOURCE_H
|
||||
#define MY_RESOURCE_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_THEME_H
|
||||
#define GUILITE_CORE_INCLUDE_THEME_H
|
||||
|
||||
typedef struct struct_font_info FONT_INFO;
|
||||
typedef struct struct_color_rect COLOR_RECT;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef WND_H
|
||||
#define WND_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_WND_H
|
||||
#define GUILITE_CORE_INCLUDE_WND_H
|
||||
|
||||
typedef struct struct_font_info FONT_INFO;
|
||||
typedef struct struct_color_rect COLOR_RECT;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef WORD_UNIT_H
|
||||
#define WORD_UNIT_H
|
||||
#ifndef GUILITE_CORE_INCLUDE_WORD_H
|
||||
#define GUILITE_CORE_INCLUDE_WORD_H
|
||||
|
||||
class c_surface;
|
||||
class c_word
|
||||
|
||||
Reference in New Issue
Block a user