github.com/goki/ki@v1.1.11/ki/names.go (about)

     1  // Copyright (c) 2018, The GoKi Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ki
     6  
     7  // Named consts for bool args
     8  const (
     9  	// Continue = true can be returned from tree iteration functions to continue
    10  	// processing down the tree, as compared to Break = false which stops this branch.
    11  	Continue = true
    12  
    13  	// Break = false can be returned from tree iteration functions to stop processing
    14  	// this branch of the tree.
    15  	Break = false
    16  
    17  	// Embeds is used for methods that look for children or parents of different types.
    18  	// Passing this argument means to look for embedded types for matches.
    19  	Embeds = true
    20  
    21  	// NoEmbeds is used for methods that look for children or parents of different types.
    22  	// Passing this argument means to NOT look for embedded types for matches.
    23  	NoEmbeds = false
    24  
    25  	// DestroyKids is used for Delete methods to indicate that deleted children
    26  	// should be destroyed (else can be re-used somewhere else).
    27  	DestroyKids = true
    28  
    29  	// NoDestroyKids is used for Delete methods to indicate that deleted children
    30  	// should NOT be destroyed, so they can be re-used somewhere else.
    31  	NoDestroyKids = false
    32  
    33  	// ShallowCopy is used for Props CopyFrom functions to indicate a shallow copy of
    34  	// Props or PropSlice within Props (points to source props)
    35  	ShallowCopy = true
    36  
    37  	// DeepCopy is used for Props CopyFrom functions to indicate a deep copy of
    38  	// Props or PropSlice within Props
    39  	DeepCopy = true
    40  
    41  	// Inherit is used for PropInherit to indicate that inherited properties
    42  	// from parent objects should be checked as well.  Otherwise not.
    43  	Inherit = true
    44  
    45  	// NoInherit is used for PropInherit to indicate that inherited properties
    46  	// from parent objects should NOT be checked.
    47  	NoInherit = false
    48  
    49  	// TypeProps is used for PropInherit to indicate that properties
    50  	// set on the type should be checked.
    51  	TypeProps = true
    52  
    53  	// NoTypeProps is used for PropInherit to indicate that properties
    54  	// set on the type should NOT be checked.
    55  	NoTypeProps = false
    56  
    57  	// Indent is used for Write methods to indicate that indenting should be done.
    58  	Indent = true
    59  
    60  	// NoIndent is used for Write methods to indicate that indenting should NOT be done.
    61  	NoIndent = false
    62  )