-
Notifications
You must be signed in to change notification settings - Fork 2
label
James Bremner edited this page Oct 17, 2019
·
2 revisions
A widget that displays a text
// reference the windex gui framework
windex& W = windex::get();
// construct top level window
window& form = W.MakeWindow();
form.move({ 50,50,400,400});
form.text("Label and Editbox demo");
// display label
label& lbA = W.make<label>( form );
lbA.move( {20, 20, 100, 30 } );
lbA.text("A:");
void move( const std::vector<int>& v )
locate and size. v specifies left, top, width, height in pixels
void text( const std::string& t )
specify text to be displayed