📄 gui_pen.lst
字号:
C51 COMPILER V8.05a GUI_PEN 04/11/2008 14:18:46 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE GUI_PEN
OBJECT MODULE PLACED IN GUI_Pen.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE gui\Core\GUI_Pen.c LARGE BROWSE MDU_F120 DEBUG OBJECTEXTEND P
-RINT(.\GUI_Pen.lst) OBJECT(GUI_Pen.obj)
line level source
1 /*
2 *********************************************************************************************************
3 * uC/GUI
4 * Universal graphic software for embedded applications
5 *
6 * (c) Copyright 2002, Micrium Inc., Weston, FL
7 * (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
8 *
9 * 礐/GUI is protected by international copyright laws. Knowledge of the
10 * source code may not be used to write a similar product. This file may
11 * only be used in accordance with a license and should not be redistributed
12 * in any way. We appreciate your understanding and fairness.
13 *
14 ----------------------------------------------------------------------
15 File : GUIPen.C
16 Purpose : Getting / Setting pen attributes
17 ---------------------------END-OF-HEADER------------------------------
18 */
19
20
21 #include "gui\Core\GUI_Protected.h"
22
23
24 /* *********************************
25 * *
26 * Get / Set Attributes *
27 * *
28 *********************************
29 */
30
31 U8 GUI_GetPenSize (void) {
32 1 U8 r;
33 1 GUI_LOCK();
34 1 r = GUI_Context.PenSize;
35 1 GUI_UNLOCK();
36 1 return r;
37 1 }
38
39 U8 GUI_GetPenShape (void) {
40 1 U8 r;
41 1 GUI_LOCK();
42 1 r = GUI_Context.PenShape;
43 1 GUI_UNLOCK();
44 1 return r;
45 1 }
46
47
48 /*
49 *********************************************************
50 * *
51 * Set Pen attributes *
52 * *
53 *********************************************************
54
C51 COMPILER V8.05a GUI_PEN 04/11/2008 14:18:46 PAGE 2
55 Purpose: Assign color/index to foreground/ background
56
57 */
58 U8 GUI_SetPenSize (U8 PenSize) {
59 1 U8 r;
60 1 GUI_LOCK();
61 1 r = GUI_Context.PenSize;
62 1 GUI_Context.PenSize = PenSize;
63 1 GUI_UNLOCK();
64 1 return r;
65 1 }
66
67 U8 GUI_SetPenShape (U8 PenShape) {
68 1 U8 r;
69 1 GUI_LOCK();
70 1 r = GUI_Context.PenShape;
71 1 GUI_Context.PenShape = PenShape;
72 1 GUI_UNLOCK();
73 1 return r;
74 1 }
75
76
77
78
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 32 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -