MCPcopy Create free account
hub / github.com/dillo-browser/dillo / FltkMultiLineTextResource

Method FltkMultiLineTextResource

dw/fltkui.cc:1034–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032}
1033
1034FltkMultiLineTextResource::FltkMultiLineTextResource (FltkPlatform *platform,
1035 int cols, int rows,
1036 const char *placeholder):
1037 FltkSpecificResource <dw::core::ui::MultiLineTextResource> (platform)
1038{
1039 editable = false;
1040
1041 numCols = cols;
1042 numRows = rows;
1043
1044 DBG_OBJ_SET_NUM ("numCols", numCols);
1045 DBG_OBJ_SET_NUM ("numRows", numRows);
1046
1047 // Check values. Upper bound check is left to the caller.
1048 if (numCols < 1) {
1049 MSG_WARN("numCols = %d is set to 1.\n", numCols);
1050 numCols = 1;
1051 }
1052 if (numRows < 1) {
1053 MSG_WARN("numRows = %d is set to 1.\n", numRows);
1054 numRows = 1;
1055 }
1056 this->placeholder = placeholder ? dStrdup(placeholder) : NULL;
1057
1058 init (platform);
1059}
1060
1061FltkMultiLineTextResource::~FltkMultiLineTextResource ()
1062{

Callers

nothing calls this directly

Calls 1

dStrdupFunction · 0.85

Tested by

no test coverage detected