fix header guard & typo
This commit is contained in:
parent
c9bbae7292
commit
7016b1c420
|
@ -406,7 +406,7 @@ int c_surface::set_frame_layer_visible_rect(c_rect& rect, unsigned int z_order)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int c_surface::flush_scrren(int left, int top, int right, int bottom)
|
||||
int c_surface::flush_screen(int left, int top, int right, int bottom)
|
||||
{
|
||||
if(left < 0 || left >= m_width || right < 0 || right >= m_width ||
|
||||
top < 0 || top >= m_height || bottom < 0 || bottom >= m_height)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -43,7 +43,7 @@ int c_slide_group::set_active_slide(int index, bool is_redraw)
|
|||
{
|
||||
c_rect rc;
|
||||
get_screen_rect(rc);
|
||||
m_slides[i]->get_surface()->flush_scrren(rc.m_left, rc.m_top, rc.m_right, rc.m_bottom);
|
||||
m_slides[i]->get_surface()->flush_screen(rc.m_left, rc.m_top, rc.m_right, rc.m_bottom);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef BUTTON_H
|
||||
#define BUTTON_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_BUTTON_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_BUTTON_H
|
||||
|
||||
#define GL_BN_CLICKED 0x1111
|
||||
#define ON_GL_BN_CLICKED(ctrlId, func) \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef DIALOG_H
|
||||
#define DIALOG_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_DIALOG_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_DIALOG_H
|
||||
|
||||
class c_surface;
|
||||
class c_dialog;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef EDIT_H
|
||||
#define EDIT_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_EDIT_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_EDIT_H
|
||||
|
||||
#define MAX_EDIT_STRLEN 32
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef GESTURE_H
|
||||
#define GESTURE_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_GESTURE_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_GESTURE_H
|
||||
|
||||
typedef enum{
|
||||
TOUCH_MOVE,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef KEYBOARD_H
|
||||
#define KEYBOARD_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_KEYBOARD_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_KEYBOARD_H
|
||||
|
||||
#define KEYBORAD_CLICK 0x5014
|
||||
#define ON_KEYBORAD_UPDATE(ctrlId, func) \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef LABEL_H
|
||||
#define LABEL_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_LABEL_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_LABEL_H
|
||||
|
||||
class c_label : public c_wnd
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef LIST_BOX_H
|
||||
#define LIST_BOX_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_LIST_BOX_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_LIST_BOX_H
|
||||
|
||||
#define MAX_ITEM_NUM 4
|
||||
#define GL_LIST_CONFIRM 0x1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef PAGE_GROUP_H
|
||||
#define PAGE_GROUP_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_SLIDE_GROUP_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_SLIDE_GROUP_H
|
||||
|
||||
#define MAX_PAGES 5
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef SPIN_BOX_H
|
||||
#define SPIN_BOX_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_SPINBOX_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_SPINBOX_H
|
||||
|
||||
#define GL_SPIN_CONFIRM 0x2222
|
||||
#define GL_SPIN_CHANGE 0x3333
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef TABLE_H
|
||||
#define TABLE_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_TABLE_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_TABLE_H
|
||||
|
||||
#define MAX_COL_NUM 30
|
||||
#define MAX_ROW_NUM 30
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef WAVE_BUFFER_H
|
||||
#define WAVE_BUFFER_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_WAVE_BUFFER_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_WAVE_BUFFER_H
|
||||
|
||||
#define WAVE_BUFFER_LEN 1024
|
||||
#define WAVE_READ_CACHE_LEN 8
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef WAVE_CTRL_H
|
||||
#define WAVE_CTRL_H
|
||||
#ifndef GUILITE_WIDGETS_INCLUDE_WAVE_CTRL_H
|
||||
#define GUILITE_WIDGETS_INCLUDE_WAVE_CTRL_H
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue