render code fixes
This commit is contained in:
parent
42fbe726d4
commit
11f59d7925
5 changed files with 8 additions and 8 deletions
|
@ -29,7 +29,7 @@ void FocusLabel::setStyle(RenderStyle *style)
|
|||
}
|
||||
|
||||
|
||||
void FocusLabel::renderForeground(void)
|
||||
void FocusLabel::renderForeground()
|
||||
{
|
||||
const Font *ft = style()->labelFont();
|
||||
RenderColor *text_color = (isFocused() ? style()->textFocusColor()
|
||||
|
|
|
@ -16,7 +16,7 @@ public:
|
|||
inline const ustring &getText(void) const { return _text; }
|
||||
void setText(const ustring &text) { _text = text; _dirty = true; }
|
||||
|
||||
void renderForeground(void);
|
||||
virtual void renderForeground(void);
|
||||
|
||||
virtual void setStyle(RenderStyle *style);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ int main(int argc, char **argv) {
|
|||
otk::AppWidget foo(&app);
|
||||
|
||||
foo.resize(600, 500);
|
||||
foo.setTexture(app.getStyle()->titlebarFocusBackground());
|
||||
// foo.setTexture(app.getStyle()->titlebarFocusBackground());
|
||||
// foo.setUnfocusTexture(app.getStyle()->titlebarUnfocusBackground());
|
||||
|
||||
foo.setBevelWidth(2);
|
||||
|
@ -36,10 +36,10 @@ int main(int argc, char **argv) {
|
|||
right.setWidth(300);
|
||||
right.setTexture(app.getStyle()->titlebarFocusBackground());
|
||||
right.setUnfocusTexture(app.getStyle()->titlebarUnfocusBackground());
|
||||
|
||||
otk::Button iconb(&left);
|
||||
iconb.resize(40,20);
|
||||
otk::FocusWidget label(&left);
|
||||
|
||||
/* otk::FocusWidget label(&left);
|
||||
otk::Button maxb(&left);
|
||||
otk::Button closeb(&left);
|
||||
|
||||
|
@ -59,7 +59,7 @@ int main(int argc, char **argv) {
|
|||
|
||||
// fixed size
|
||||
closeb.setText("fuubar");
|
||||
|
||||
*/
|
||||
otk::FocusWidget rblef(&right);
|
||||
otk::Button rbutt1(&right);
|
||||
otk::Button rbutt2(&right);
|
||||
|
|
|
@ -99,7 +99,7 @@ void RenderControl::drawString(Surface& sf, const Font &font, int x, int y,
|
|||
else
|
||||
XftDrawString8(d, &c, font._xftfont, x, font._xftfont->ascent + y,
|
||||
(FcChar8*)string.c_str(), string.bytes());
|
||||
|
||||
printf("DRAW A STRING!: %s\n", string.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ protected:
|
|||
virtual void adjustVert(void);
|
||||
virtual void internalResize(int width, int height);
|
||||
virtual void render(void);
|
||||
virtual void renderForeground(void) {} // for overriding
|
||||
virtual void renderForeground() {} // for overriding
|
||||
|
||||
Window _window;
|
||||
|
||||
|
|
Loading…
Reference in a new issue