_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c22200
train
// SetView sets the View drawing context for this TextBar.
{ "resource": "" }
c22201
train
// Draw draws the TextBar into its View context.
{ "resource": "" }
c22202
train
// Resize is called when the TextBar's View changes size, and // updates the layout.
{ "resource": "" }
c22203
train
// Size implements the Size method for Widget, returning the width // and height in character cells.
{ "resource": "" }
c22204
train
// HandleEvent handles incoming events. The only events handled are // those for the Text objects; when those change, the TextBar adjusts // the layout to accommodate.
{ "resource": "" }
c22205
train
// Hex returns the color's hexadecimal RGB 24-bit value with each component // consisting of a single byte, ala R << 16 | G << 8 | B. If the color // is unknown or unset, -1 is returned.
{ "resource": "" }
c22206
train
// NewRGBColor returns a new color with the given red, green, and blue values. // Each value must be represented in the range 0-255.
{ "resource": "" }
c22207
train
// Invalidate marks all characters within the buffer as dirty.
{ "resource": "" }
c22208
train
// Dirty checks if a character at the given location needs an // to be refreshed on the physical display. This returns true // if the cell content is different since the last time it was // marked clean.
{ "resource": "" }
c22209
train
// Resize is used to resize the cells array, with different dimensions, // while preserving the original contents. The cells will be invalidated // so that they can be redrawn.
{ "resource": "" }
c22210
train
// Fill fills the entire cell buffer array with the specified character // and style. Normally choose ' ' to clear the screen. This API doesn't // support combining characters, or characters with a width larger than one.
{ "resource": "" }
c22211
train
// Watch monitors this WidgetWatcher, causing the handler to be fired // with EventWidget as they are occur on the watched Widget.
{ "resource": "" }
c22212
train
// Unwatch stops monitoring this WidgetWatcher. The handler will no longer // be fired for Widget events.
{ "resource": "" }
c22213
train
// PostEvent delivers the EventWidget to all registered watchers. It is // to be called by the Widget implementation.
{ "resource": "" }
c22214
train
// PostEventWidgetContent is called by the Widget when its content is // changed, delivering EventWidgetContent to all watchers.
{ "resource": "" }
c22215
train
// PostEventWidgetResize is called by the Widget when the underlying View // has resized, delivering EventWidgetResize to all watchers.
{ "resource": "" }
c22216
train
// PostEventWidgetMove is called by the Widget when it is moved to a new // location, delivering EventWidgetMove to all watchers.
{ "resource": "" }
c22217
train
// SetLines sets the content text to display.
{ "resource": "" }
c22218
train
// EnableCursor enables a soft cursor in the TextArea.
{ "resource": "" }
c22219
train
// HideCursor hides or shows the cursor in the TextArea. // If on is true, the cursor is hidden. Note that a cursor is only // shown if it is enabled.
{ "resource": "" }
c22220
train
// SetContent is used to set the textual content, passed as a // single string. Lines within the string are delimited by newlines.
{ "resource": "" }
c22221
train
// Init initializes the TextArea.
{ "resource": "" }
c22222
train
// calcY figures the initial Y offset. Alignment is top by default.
{ "resource": "" }
c22223
train
// calcX figures the initial X offset for the given line. // Alignment is left by default.
{ "resource": "" }
c22224
train
// Draw draws the Text.
{ "resource": "" }
c22225
train
// Size returns the width and height in character cells of the Text.
{ "resource": "" }
c22226
train
// SetAlignment sets the alignment. Negative values // indicate right justification, positive values are left, // and zero indicates center aligned.
{ "resource": "" }
c22227
train
// SetText sets the text used for the string. Any previously set // styles on individual rune indices are reset, and the default style // for the widget is set.
{ "resource": "" }
c22228
train
// SetStyle sets the style used. This applies to every cell in the // in the text.
{ "resource": "" }
c22229
train
// StyleAt gets the style at the given rune index. If an invalid // index is given, or the index is a combining character, then // tcell.StyleDefault is returned.
{ "resource": "" }
c22230
train
// SetCenter sets the center text for the textbar. // It is always centered.
{ "resource": "" }
c22231
train
// Init initializes the screen for use.
{ "resource": "" }
c22232
train
// Clear clears the screen with the given attributes.
{ "resource": "" }
c22233
train
// SetOutputMode is used to set the color palette used.
{ "resource": "" }
c22234
train
// ParseEvent is not supported.
{ "resource": "" }
c22235
train
// NewEventError creates an ErrorEvent with the given error payload.
{ "resource": "" }
c22236
train
// Foreground returns a new style based on s, with the foreground color set // as requested. ColorDefault can be used to select the global default.
{ "resource": "" }
c22237
train
// Background returns a new style based on s, with the background color set // as requested. ColorDefault can be used to select the global default.
{ "resource": "" }
c22238
train
// Decompose breaks a style up, returning the foreground, background, // and other attributes.
{ "resource": "" }
c22239
train
// Bold returns a new style based on s, with the bold attribute set // as requested.
{ "resource": "" }
c22240
train
// Blink returns a new style based on s, with the blink attribute set // as requested.
{ "resource": "" }
c22241
train
// Dim returns a new style based on s, with the dim attribute set // as requested.
{ "resource": "" }
c22242
train
// Underline returns a new style based on s, with the underline attribute set // as requested.
{ "resource": "" }
c22243
train
// Name returns a printable value or the key stroke. This can be used // when printing the event, for example.
{ "resource": "" }
c22244
train
// FindColor attempts to find a given color, or the best match possible for it, // from the palette given. This is an expensive operation, so results should // be cached by the caller.
{ "resource": "" }
c22245
train
// buildAcsMap builds a map of characters that we translate from Unicode to // alternate character encodings. To do this, we use the standard VT100 ACS // maps. This is only done if the terminal lacks support for Unicode; we // always prefer to emit Unicode glyphs when we are able.
{ "resource": "" }
c22246
train
// parseXtermMouse is like parseSgrMouse, but it parses a legacy // X11 mouse record.
{ "resource": "" }
c22247
train
// Resize adjusts the layout when the underlying View changes size.
{ "resource": "" }
c22248
train
// Draw is called to update the displayed content.
{ "resource": "" }
c22249
train
// SetView sets the View object used for the text bar.
{ "resource": "" }
c22250
train
// HandleEvent implements a tcell.EventHandler. The only events // we care about are Widget change events from our children. We // watch for those so that if the child changes, we can arrange // to update our layout.
{ "resource": "" }
c22251
train
// AddWidget adds a widget to the end of the BoxLayout.
{ "resource": "" }
c22252
train
// InsertWidget inserts a widget at the given offset. Offset 0 is the // front. If the index is longer than the number of widgets, then it // just gets appended to the end.
{ "resource": "" }
c22253
train
// RemoveWidget removes a Widget from the layout.
{ "resource": "" }
c22254
train
// Widgets returns the list of Widgets for this BoxLayout.
{ "resource": "" }
c22255
train
// SetOrientation sets the orientation as either Horizontal or Vertical.
{ "resource": "" }
c22256
train
// SetStyle sets the style used.
{ "resource": "" }
c22257
train
// Convert windows dwControlKeyState to modifier mask
{ "resource": "" }
c22258
train
// Windows uses RGB signals
{ "resource": "" }
c22259
train
// Map a tcell style to Windows attributes
{ "resource": "" }
c22260
train
// LookupStyle returns the style registered for the given rune. // Returns tcell.StyleDefault if no style was previously registered // for the rune.
{ "resource": "" }
c22261
train
// NewSimpleStyledText creates an empty Text.
{ "resource": "" }
c22262
train
// Draw draws the Panel.
{ "resource": "" }
c22263
train
// SetTitle sets the Widget to display in the title area.
{ "resource": "" }
c22264
train
// SetMenu sets the Widget to display in the menu area, which is // just below the title.
{ "resource": "" }
c22265
train
// SetContent sets the Widget to display in the content area.
{ "resource": "" }
c22266
train
// SetStatus sets the Widget to display in the status area, which is at // the bottom of the panel.
{ "resource": "" }
c22267
train
// Draw draws the content.
{ "resource": "" }
c22268
train
// MakeCursorVisible ensures that the cursor is visible, panning the ViewPort // as necessary, if the cursor is enabled.
{ "resource": "" }
c22269
train
// HandleEvent handles events. In particular, it handles certain key events // to move the cursor or pan the view.
{ "resource": "" }
c22270
train
// Size returns the content size, based on the model.
{ "resource": "" }
c22271
train
// SetModel sets the model for this CellView.
{ "resource": "" }
c22272
train
// SetView sets the View context.
{ "resource": "" }
c22273
train
// Resize is called when the View is resized. It will ensure that the // cursor is visible, if present.
{ "resource": "" }
c22274
train
// SetCursor sets the the cursor position.
{ "resource": "" }
c22275
train
// SetCursorX sets the the cursor column.
{ "resource": "" }
c22276
train
// SetCursorY sets the the cursor row.
{ "resource": "" }
c22277
train
// MakeVisible makes the given coordinates visible, if they are not already. // It does this by moving the ViewPort for the CellView.
{ "resource": "" }
c22278
train
// Init initializes a new CellView for use.
{ "resource": "" }
c22279
train
// NewSimulationScreen returns a SimulationScreen. Note that // SimulationScreen is also a Screen.
{ "resource": "" }
c22280
train
// NewEventResize creates an EventResize with the new updated window size, // which is given in character cells.
{ "resource": "" }
c22281
train
// End returns the final output from TParam, but it also releases the lock.
{ "resource": "" }
c22282
train
// TGoto returns a string suitable for addressing the cursor at the given // row and column. The origin 0, 0 is in the upper left corner of the screen.
{ "resource": "" }
c22283
train
// TColor returns a string corresponding to the given foreground and background // colors. Either fg or bg can be set to -1 to elide.
{ "resource": "" }
c22284
train
// AddTerminfo can be called to register a new Terminfo entry.
{ "resource": "" }
c22285
train
// NewScreen returns a default Screen suitable for the user's terminal // environment.
{ "resource": "" }
c22286
train
// initialize initializes the application. It will normally attempt to // allocate a default screen if one is not already established.
{ "resource": "" }
c22287
train
// Quit causes the application to shutdown gracefully. It does not wait // for the application to exit, but returns immediately.
{ "resource": "" }
c22288
train
// Refresh causes the application forcibly redraw everything. Use this // to clear up screen corruption, etc.
{ "resource": "" }
c22289
train
// Update asks the application to draw any screen updates that have not // been drawn yet.
{ "resource": "" }
c22290
train
// PostFunc posts a function to be executed in the context of the // application's event loop. Functions that need to update displayed // state, etc. can do this to avoid holding locks.
{ "resource": "" }
c22291
train
// SetScreen sets the screen to use for the application. This must be // done before the application starts to run or is initialized.
{ "resource": "" }
c22292
train
// NewEventMouse is used to create a new mouse event. Applications // shouldn't need to use this; its mostly for screen implementors.
{ "resource": "" }
c22293
train
// Moves all generated profiles to specified directory
{ "resource": "" }
c22294
train
// Combines all generated profiles in the specified directory
{ "resource": "" }
c22295
train
//Create a new server, automatically selecting a port
{ "resource": "" }
c22296
train
// // Streaming Endpoints // //The server will forward all received messages to Ginkgo reporters registered with `RegisterReporters`
{ "resource": "" }
c22297
train
//Skip notifies Ginkgo that the current spec was skipped.
{ "resource": "" }
c22298
train
//You can mark the tests within a describe block as pending using PDescribe
{ "resource": "" }
c22299
train
//You can focus the tests within a describe block using FWhen
{ "resource": "" }