This commit is contained in:
parent
4777f893c6
commit
e835a9cd60
6 changed files with 123 additions and 40 deletions
|
|
@ -10,16 +10,16 @@ static int wcreate(MwWidget handle) {
|
|||
}
|
||||
|
||||
static void draw(MwWidget handle) {
|
||||
MwLLColor c = MwParseColor(handle, MwGetText(handle, MwNbackground));
|
||||
MwLLColor cb = MwParseColor(handle, "#fff");
|
||||
MwLLColor c = MwParseColor(handle, MwGetText(handle, MwNbackground));
|
||||
MwLLColor cb = MwParseColor(handle, "#fff");
|
||||
MwLLColor cb_g = MwParseColor(handle, "#666");
|
||||
MwLLColor ct = MwParseColor(handle, "#000");
|
||||
MwLLColor ct = MwParseColor(handle, "#000");
|
||||
MwRect r, r2, r3;
|
||||
MwPoint p[4];
|
||||
int h = 64;
|
||||
int h = 64;
|
||||
int pw = h / 16; /* parallelogram width */
|
||||
int ph = pw * 3; /* parallelogram height */
|
||||
int gh = h / 32; /* gray area height */
|
||||
int gh = h / 32; /* gray area height */
|
||||
char buf[3];
|
||||
|
||||
r.x = 0;
|
||||
|
|
@ -34,9 +34,9 @@ static void draw(MwWidget handle) {
|
|||
r2.y = (r.height - r2.height - ph - gh) / 2;
|
||||
MwDrawRect(handle, &r2, cb);
|
||||
|
||||
r3.x = r2.x;
|
||||
r3.y = r2.y + r2.height;
|
||||
r3.width = r2.width;
|
||||
r3.x = r2.x;
|
||||
r3.y = r2.y + r2.height;
|
||||
r3.width = r2.width;
|
||||
r3.height = ph + gh;
|
||||
MwDrawRect(handle, &r3, cb_g);
|
||||
|
||||
|
|
|
|||
|
|
@ -420,8 +420,8 @@ static void redrawIfNeeded(MwWidget handle, int row) {
|
|||
static int mwListBoxSetImpl(MwWidget handle, int row, int col, const char* text) {
|
||||
MwListBox lb = handle->internal;
|
||||
MwListBoxEntry entry;
|
||||
char* t = text == NULL ? NULL : MwStringDuplicate(text);
|
||||
int new = 0;
|
||||
char* t = text == NULL ? NULL : MwStringDuplicate(text);
|
||||
int new = 0;
|
||||
if(row == -1) row = arrlen(lb->list);
|
||||
|
||||
entry.name = NULL;
|
||||
|
|
@ -449,7 +449,7 @@ static int mwListBoxSetImpl(MwWidget handle, int row, int col, const char* text)
|
|||
static void mwListBoxSetIconImpl(MwWidget handle, int index, MwLLPixmap icon) {
|
||||
MwListBox lb = handle->internal;
|
||||
MwListBoxEntry entry;
|
||||
int new = 0;
|
||||
int new = 0;
|
||||
if(index == -1) index = arrlen(lb->list);
|
||||
|
||||
entry.name = NULL;
|
||||
|
|
|
|||
|
|
@ -58,9 +58,9 @@ static void draw(MwWidget handle) {
|
|||
MwLLColor base = MwParseColor(handle, MwGetText(handle, MwNbackground));
|
||||
MwLLColor dark = MwLightenColor(handle, base, -64, -64, -64);
|
||||
MwScrollBar scr = handle->internal;
|
||||
int or ;
|
||||
int uy, dy, ux, dx;
|
||||
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
|
||||
int or;
|
||||
int uy, dy, ux, dx;
|
||||
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
|
||||
|
||||
r.x = 0;
|
||||
r.y = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue