mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-11 00:44:12 +01:00
WINGs: add function to get button caption
This patch is adding a new function WMGetButtonText to get the button caption. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
65f8cb7a4b
commit
870a73ff32
@@ -1069,6 +1069,9 @@ void WMSetButtonTextAlignment(WMButton *bPtr, WMAlignment alignment);
|
||||
|
||||
void WMSetButtonText(WMButton *bPtr, const char *text);
|
||||
|
||||
/* Returns direct pointer to internal data, do not modify! */
|
||||
const char *WMGetButtonText(WMButton *bPtr);
|
||||
|
||||
void WMSetButtonAltText(WMButton *bPtr, const char *text);
|
||||
|
||||
void WMSetButtonTextColor(WMButton *bPtr, WMColor *color);
|
||||
|
||||
@@ -325,6 +325,11 @@ void WMSetButtonText(WMButton * bPtr, const char *text)
|
||||
}
|
||||
}
|
||||
|
||||
const char *WMGetButtonText(WMButton *bPtr)
|
||||
{
|
||||
return bPtr->caption;
|
||||
}
|
||||
|
||||
void WMSetButtonAltText(WMButton * bPtr, const char *text)
|
||||
{
|
||||
if (bPtr->altCaption)
|
||||
|
||||
Reference in New Issue
Block a user