_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c171300
// SliceColorized returns a slice of text with correct color // tags. start and end are real printable rune indices
c171301
// ColorToString returns string representation of the attribute
c171302
// MainLoop starts the main application event loop
c171303
// NewEditField creates a new EditField control // view - is a View that manages the control // parent - is container that keeps the control. The same View can be a view and a parent at the same time. // width - is minimal width of the control. // text - text to edit. // scale - the way of scaling the control when the ...
c171304
// ChildAt returns the children of parent control that is at absolute // coordinates x, y. Returns nil if x, y are outside parent control and // returns parent if no child is at x, y
c171305
// DeactivateControls makes all children of parent inactive
c171306
// ActivateControl makes control active and disables all other children of // the parent. Returns true if control was found and activated
c171307
// FindChild returns control if it is a child of the parent and nil otherwise
c171308
// IsMouseClickEvent returns if a user action can be treated as mouse click.
c171309
// FindFirstControl returns the first child for that fn returns true. // The function is used to find active or tab-stop control
c171310
// ActiveControl returns the active child of the parent or nil if no child is // active
c171311
// FindFirstActiveControl returns the first active control of a parent
c171312
// SendEventToChild tries to find a child control that should recieve the evetn // For mouse click events it looks for a control at coordinates of event, // makes it active, and then sends the event to it. // If it is not mouse click event then it looks for the first active child and // sends the event to it if it is n...
c171313
// CalcClipper calculates the clipper size based on the control's size, position // and paddings
c171314
// ClippedParent finds the first c parent with clipped flag
c171315
// ControlInRect returns true if c is within a given rect
c171316
// CreateAlertDialog creates a new alert dialog. // title is a dialog title // message is a text inside dialog for user to be notified of a fact // button is a title for button inside dialog.
c171317
//ProcessEvent processes all events come from the control parent. If a control // processes an event it should return true. If the method returns false it means // that the control do not want or cannot process the event and the caller sends // the event to the control parent
c171318
// SetState changes the current state of CheckBox // Value must be 0 or 1 if Allow3State is off, // and 0, 1, or 2 if Allow3State is on
c171319
// State returns current state of CheckBox
c171320
// SetAllow3State sets if ComboBox should use 3 states. If the current // state is unknown and one disables Allow3State option then the current // value resets to off
c171321
// SetSize changes control size. Constant DoNotChange can be // used as placeholder to indicate that the control attrubute // should be unchanged. // Method does nothing if new size is less than minimal size // CheckBox height cannot be changed - it equals 1 always
c171322
// ScrollTo in case of a scrollable frame this api will scroll the content // without adjusting the clipper
c171323
// EnsureColVisible scrolls the table horizontally // to make the currently selected column fully visible
c171324
// EnsureRowVisible scrolls the table vertically // to make the currently selected row visible
c171325
// Columns returns the current list of table columns
c171326
// SetColumnInfo replaces the existing column info
c171327
// OnKeyPress sets the callback that is called when a user presses a Key while // the controls is active. If a handler processes the key it should return // true. If handler returns false it means that the default handler has to // process the key
c171328
// OnDrawCell is called every time the table is going to display // a cell
c171329
// SetSelectedRow changes the currently selected row. // If row is greater than number of row the last row // is selected. Set row to -1 to turn off selection. // The table scrolls automatically to display the column
c171330
// SetSelectedCol changes the currently selected column. // If column is greater than number of columns the last // column is selected. Set row to -1 to turn off selection. // The table scrolls automatically to display the column
c171331
// SetSelected makes the button selected. One should not use // the method directly, it is for RadioGroup control
c171332
// OnChange sets the callback that is called whenever the state // of the Radio is changed. Argument of callback is the current
c171333
// SetText replaces existing content of the control
c171334
// SetWordWrap enables or disables wordwrap mode
c171335
// LoadFile loads a text from file and replace the control // text with the file one. // Function returns false if loading text from file fails
c171336
// AddText appends a text to the end of the control content. // View position may be changed automatically depending on // value of AutoScroll
c171337
// Value returns the current ProgressBar value
c171338
// SetLimits set new ProgressBar limits. The current value // is adjusted if it exceeds new limits
c171339
// Step increases ProgressBar value by 1 if the value is less // than ProgressBar high limit
c171340
// SecondaryColors returns text and background colors for empty // part of the ProgressBar
c171341
// SetSecondaryColors sets new text and background colors for // empty part of the ProgressBar
c171342
// SetAutoSize enables or disables automatic bar // width calculation
c171343
// SetGap sets the space width between two adjacent bars
c171344
// SetMinBarWidth changes the minimal bar width
c171345
// SetShowTitles turns on and off horizontal axis and bar titles
c171346
// SetLegendWidth sets new legend panel width
c171347
// OnDrawCell sets callback that allows to draw multicolored // bars. BarChart sends the current attrubutes and rune that // it is going to use to display as well as the current value // of the bar. A user can change the values of BarDataCell // depending on some external data or calculations - only // changing colors ...
c171348
// SetShowMarks turns on and off marks under horizontal axis
c171349
// OnKeyDown sets the callback that is called when a user presses a key // while the Window is active
c171350
// SetMaximized opens the view to full screen or restores its // previous size
c171351
// SetVisible allows to temporarily remove the window from screen // and show it later without reconstruction
c171352
// SetTop sets the theoretical highest value of data flow // to scale the chart
c171353
// SetAutoScale changes the way of scaling the data flow
c171354
// SetHilitePeaks enables or disables hiliting maximum // values with different colors
c171355
// Load the ENV variables to the env map
c171356
// Get a value from the ENV. If it doesn't exist the // default value will be returned.
c171357
// Get a value from the ENV. If it doesn't exist // an error will be returned
c171358
// Set a value into the ENV. This is NOT permanent. It will // only affect values accessed through envy.
c171359
// MustSet the value into the underlying ENV, as well as envy. // This may return an error if there is a problem setting the // underlying ENV value.
c171360
// GoPaths returns all possible GOPATHS that are set.
c171361
// CurrentModule will attempt to return the module name from `go.mod` if // modules are enabled. // If modules are not enabled it will fallback to using CurrentPackage instead.
c171362
// change timeout to time.Duration
c171363
// validate checks the notificationRequest has 0<Interests<11 and has a // APNS, GCM or FCM payload
c171364
// NewNetworkNumber returns a equivalent NetworkNumber to given IP address, // return nil if ip is neither IPv4 nor IPv6.
c171365
// ToIP returns equivalent net.IP.
c171366
// Equal is the equality test for 2 network numbers.
c171367
// Next returns the next logical network number.
c171368
// Previous returns the previous logical network number.
c171369
// NewNetwork returns Network built using given net.IPNet.
c171370
// Masked returns a new network conforming to new mask.
c171371
// Contains returns true if NetworkNumber is in range of Network, false // otherwise.
c171372
// Contains returns true if Network covers o, false otherwise
c171373
// LeastCommonBitPosition returns the smallest position of the preceding common // bits of the 2 networks, and returns an error ErrNoGreatestCommonBit // if the two network number diverges from the first bit.
c171374
// Equal is the equality test for 2 networks.
c171375
// Mask returns a new masked NetworkNumber from given NetworkNumber.
c171376
// NextIP returns the next sequential ip.
c171377
// PreviousIP returns the previous sequential ip.
c171378
// newPrefixTree creates a new prefixTrie.
c171379
// Insert inserts a RangerEntry into prefix trie.
c171380
// Remove removes RangerEntry identified by given network from trie.
c171381
// Contains returns boolean indicating whether given ip is contained in any // of the inserted networks.
c171382
// String returns string representation of trie, mainly for visualization and // debugging.
c171383
// walkDepth walks the trie in depth order, for unit testing.
c171384
// newBruteRanger returns a new Ranger.
c171385
// Insert inserts a RangerEntry into ranger.
c171386
// Remove removes a RangerEntry identified by given network from ranger.
c171387
// Contains returns bool indicating whether given ip is contained by any // network in ranger.
c171388
// ParseMessage parse a raw Twitch IRC message
c171389
// NewClient to create a new client
c171390
// Say write something in a chat
c171391
// Whisper write something in private to someone on twitch // whispers are heavily spam protected // so your message might get blocked because of this // verify your bot to prevent this
c171392
// Join enter a twitch channel to read more messages
c171393
// Depart leave a twitch channel
c171394
// Disconnect close current connection
c171395
// Connect connect the client to the irc server
c171396
// Userlist returns the userlist for a given channel
c171397
// Errors returned from handleLine break out of readConnections, which starts a reconnect // This means that we should only return fatal errors as errors here
c171398
//Execute - generates concourse pipeline and tasks
c171399
//Execute - removes org users