Prev
Top
Next
Name
KXL_ClearFrameRect
Synopsis
KXL_ClearFrameRect -- Rectangles with an arbitrary frame are cleared.
It clears by the color set up by KXL_SetDrawColor.
Description
void KXL_ClearFrameRect(KXL_Rect rect);
Arguments
Return Value
Nothing.
Exsample
#include <KXL.h>
int main(void)
{
KXL_Rect rect = {0, 0, 100, 100};
KXL_CreateWindow(rect.Width, rect.Height, "sample", 0);
KXL_SetDrawColor(0xff, 0x00, 0x00);
KXL_DrawRectangle(30, 30, 30, 30, True);
KXL_UpDateRect(rect);
getchar();
KXL_ClearFrameRect(rect);
KXL_UpDateRect(rect);
getchar();
KXL_DeleteWindow();
return 0;
}