2025-10-07 11:02:38 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
#include <MwOO/Widget/Button.h>
|
|
|
|
|
#include <Mw/Widget/Button.h>
|
|
|
|
|
|
2025-10-07 14:20:45 +00:00
|
|
|
MwOO::Button::Button(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwButtonClass, widget_name, parent, x, y, w, h){
|
2025-10-07 11:02:38 +00:00
|
|
|
}
|
2025-10-07 15:10:46 +00:00
|
|
|
|
|
|
|
|
void MwOO::Button::SetPixmap(void* value){
|
|
|
|
|
MwSetVoid(this->widget, MwNpixmap, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void* MwOO::Button::GetPixmap(void){
|
|
|
|
|
return MwGetVoid(this->widget, MwNpixmap);
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-08 10:09:10 +00:00
|
|
|
void MwOO::Button::SetText(const char* value){
|
|
|
|
|
MwSetText(this->widget, MwNtext, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const char* MwOO::Button::GetText(void){
|
|
|
|
|
return MwGetText(this->widget, MwNtext);
|
|
|
|
|
}
|
|
|
|
|
|