Pen values

4 posts / 0 new
Last post
mritter0
mritter0's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2014-04-21 21:15
Pen values

I have been looking at some source code for some default pens for MUI. Is there a chart of what pens these are?

2:m2
m0
m6
m1
m3

As in, how they relate to standard GUI pens: TEXTPEN, SHINEPEN, etc.

Or an RGB value, 00FF00 (green)

jabirulo
jabirulo's picture
Offline
Last seen: 8 hours 9 min ago
Joined: 2013-05-30 00:53
Re: Pen values

From muimaster autodoc (muimaster.library/MUI_ObtainPen):
...
2. MUI pens, i.e. "m5". This is equivalent to using the pens from
muiRenderInfo(obj)->mri_Pens directly. Make sure to use pen numbers
between and MPEN_COUNT-1 only. Otherwise the MPEN_BACKGROUND pen
will be returned.
...

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

mritter0
mritter0's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2014-04-21 21:15
Re: Pen values

Yeah, I saw the autodoc. It says the spec can be 1 of 5 ways. But no real details/examples.

jabirulo
jabirulo's picture
Offline
Last seen: 8 hours 9 min ago
Joined: 2013-05-30 00:53
Re: Pen values

Ther are no examples, but in mui.h it shows, so one can expect m5 being MPEN_TEXT
/* MUI's draw pens */

#define MPEN_SHINE 0
#define MPEN_HALFSHINE 1
#define MPEN_BACKGROUND 2
#define MPEN_HALFSHADOW 3
#define MPEN_SHADOW 4
#define MPEN_TEXT 5
#define MPEN_FILL 6
#define MPEN_MARK 7
#define MPEN_MARKTEXT 8
#define MPEN_COUNT 9

AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P

Log in or register to post comments