309 |
return static_cast<PG_Gradient*>(result); |
return static_cast<PG_Gradient*>(result); |
310 |
} |
} |
311 |
|
|
312 |
|
void THEME_THEME::GetAlignment(const char* widgettype, const char* object, const char* name, PG_Label::TextAlign& align) { |
313 |
|
long b = -1; |
314 |
|
GetProperty(widgettype, object, name, b); |
315 |
|
|
316 |
|
if(b == -1) { |
317 |
|
return; |
318 |
|
} |
319 |
|
|
320 |
|
switch(b) { |
321 |
|
case 0: |
322 |
|
align = PG_Label::LEFT; |
323 |
|
break; |
324 |
|
case 1: |
325 |
|
align = PG_Label::CENTER; |
326 |
|
break; |
327 |
|
case 2: |
328 |
|
align = PG_Label::RIGHT; |
329 |
|
break; |
330 |
|
} |
331 |
|
|
332 |
|
return; |
333 |
|
} |
334 |
|
|
335 |
void THEME_THEME::GetColor(const char* widgettype, const char* object, const char* name, PG_Color& color) { |
void THEME_THEME::GetColor(const char* widgettype, const char* object, const char* name, PG_Color& color) { |
336 |
long b = -1; |
long b = -1; |
337 |
GetProperty(widgettype, object, name, b); |
GetProperty(widgettype, object, name, b); |