mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-04 08:30:51 +00:00
update
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#define MwNsizeHints "VsizeHints"
|
#define MwNsizeHints "VsizeHints"
|
||||||
#define MwNfont "Vfont"
|
#define MwNfont "Vfont"
|
||||||
#define MwNboldFont "VboldFont"
|
#define MwNboldFont "VboldFont"
|
||||||
|
#define MwNbackgroundPixmap "VbackgroundPixmap"
|
||||||
|
|
||||||
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
#define MwNactivateHandler "Cactivate" /* NULL/int* (MwListBox)/void* (MwTreeView) */
|
||||||
#define MwNresizeHandler "Cresize" /* NULL */
|
#define MwNresizeHandler "Cresize" /* NULL */
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
- MwNwidth
|
- MwNwidth
|
||||||
- MwNheight
|
- MwNheight
|
||||||
- MwNborderWidth
|
- MwNborderWidth
|
||||||
|
- MwNbackgroundPixmap
|
||||||
|
|
||||||
Integer properties must be prefixed with I.
|
Integer properties must be prefixed with I.
|
||||||
String properties must be prefixed with S.
|
String properties must be prefixed with S.
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ static void draw(MwWidget handle) {
|
|||||||
MwLLColor text = MwParseColor(handle, MwGetText(handle, MwNforeground));
|
MwLLColor text = MwParseColor(handle, MwGetText(handle, MwNforeground));
|
||||||
const char* str = MwGetText(handle, MwNtext);
|
const char* str = MwGetText(handle, MwNtext);
|
||||||
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
|
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
|
||||||
|
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
|
||||||
|
|
||||||
if(str == NULL) str = "";
|
if(str == NULL) str = "";
|
||||||
|
|
||||||
@@ -34,6 +35,9 @@ static void draw(MwWidget handle) {
|
|||||||
} else {
|
} else {
|
||||||
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
|
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
|
||||||
}
|
}
|
||||||
|
if(bgpx != NULL) {
|
||||||
|
MwLLDrawPixmap(handle->lowlevel, &r, bgpx);
|
||||||
|
}
|
||||||
if(MwGetInteger(handle, MwNflat) && !handle->pressed) {
|
if(MwGetInteger(handle, MwNflat) && !handle->pressed) {
|
||||||
r.x += MwDefaultBorderWidth(handle);
|
r.x += MwDefaultBorderWidth(handle);
|
||||||
r.y += MwDefaultBorderWidth(handle);
|
r.y += MwDefaultBorderWidth(handle);
|
||||||
|
|||||||
Reference in New Issue
Block a user