1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Removed 'internal' protection - it's all about [Friend] now

This commit is contained in:
Brian Fiete 2020-03-09 06:34:16 -07:00
parent 81af04a1ce
commit 14ac27c977
119 changed files with 1339 additions and 1388 deletions

View file

@ -714,7 +714,7 @@ namespace Beefy.geom
ThrowUnimplemented();
}
internal Matrix4 ToMatrix()
public Matrix4 ToMatrix()
{
Matrix4 matrix = Matrix4.Identity;
ToMatrix(out matrix);
@ -762,7 +762,7 @@ namespace Beefy.geom
matrix.m33 = 1.0f;
}
internal Vector3 XYZ
public Vector3 XYZ
{
get
{

View file

@ -347,7 +347,7 @@ namespace Beefy.gfx
}
}
internal bool Load(StringView fontName, float pointSize = -1)
public bool Load(StringView fontName, float pointSize = -1)
{
Dispose();

View file

@ -93,7 +93,7 @@ namespace Beefy.gfx
public int32 mDrawNestingDepth;
internal this()
public this()
{
mZDepthStack = StateStack<float>(256, 0.0f, new => PopZDepth);
@ -433,7 +433,7 @@ namespace Beefy.gfx
[StdCall, CLink]
extern static void Gfx_SetTexture_TextureSegment(int32 textureIdx, void* textureSegment);
internal this()
public this()
{
mRenderStateDisposeProxy.mDisposeProxyDelegate = new => PopRenderState;
}

View file

@ -69,7 +69,7 @@ namespace Beefy.gfx
[StdCall, CLink]
static extern int32 Gfx_Texture_GetHeight(void* textureSegment);
internal this()
public this()
{
}

View file

@ -68,7 +68,7 @@ namespace Beefy.gfx
[StdCall, CLink]
extern static void ModelDefAnimation_Clip(void* nativeAnimation, int32 startFrame, int32 numFrames);
internal this(void* nativeModelDefAnimation)
public this(void* nativeModelDefAnimation)
{
mNativeModelDefAnimation = nativeModelDefAnimation;
mFrameCount = ModelDefAnimation_GetFrameCount(mNativeModelDefAnimation);
@ -166,7 +166,7 @@ namespace Beefy.gfx
public float mAnimSpeed = 1.0f;
public bool mLoop;
internal this(void* nativeModelInstance, ModelDef modelDef)
public this(void* nativeModelInstance, ModelDef modelDef)
{
mNativeRenderCmd = nativeModelInstance;
mModelDef = modelDef;

View file

@ -46,12 +46,12 @@ namespace Beefy.gfx
public void* mNativeRenderState;
public bool mIsFromDefaultRenderState;
internal this()
public this()
{
}
internal ~this()
public ~this()
{
RenderState_Delete(mNativeRenderState);
}

View file

@ -8,7 +8,7 @@ namespace Beefy.gfx
{
public void* mNativeShaderParam;
internal this(void* shaderParam)
public this(void* shaderParam)
{
}
}
@ -38,7 +38,7 @@ namespace Beefy.gfx
return aShader;
}
internal this(void* nativeShader)
public this(void* nativeShader)
{
mNativeShader = nativeShader;
}

View file

@ -76,7 +76,7 @@ namespace Beefy.gfx
}
#endif
internal this()
public this()
{
}

View file

@ -22,7 +22,7 @@ namespace Beefy.sys
public Event<MenuItemUpdateHandler> mOnMenuItemUpdate ~ _.Dispose();
public List<SysMenu> mChildren ~ DeleteContainerAndItems!(_);
internal this()
public this()
{
}

View file

@ -555,8 +555,8 @@ namespace Beefy.theme.dark
if (mChildItems != null)
{
//mChildItems.BinarySearch()
float drawStartY = g.mClipRect.mValue.mY - g.mMatrix.ty;
float drawEndY = g.mClipRect.mValue.Bottom - g.mMatrix.ty;
float drawStartY = g.mClipRect.Value.mY - g.mMatrix.ty;
float drawEndY = g.mClipRect.Value.Bottom - g.mMatrix.ty;
int itemStart = 0;
if (drawStartY > 0)
itemStart = Math.Max(0, FindItemAtY(drawStartY) - 1);

View file

@ -915,11 +915,11 @@ namespace Beefy.widgets
mCursorTextPos = Math.Clamp(mCursorTextPos + (int32)ofs, 0, mData.mTextLength + 1);
if (HasSelection())
{
if (((ofs > 0) && (mSelection.mValue.mStartPos >= index)) ||
((ofs < 0) && (mSelection.mValue.mStartPos > index)))
mSelection.mValue.mStartPos += (int32)ofs;
if (mSelection.mValue.mEndPos > index)
mSelection.mValue.mEndPos += (int32)ofs;
if (((ofs > 0) && (mSelection.Value.mStartPos >= index)) ||
((ofs < 0) && (mSelection.Value.mStartPos > index)))
mSelection.ValueRef.mStartPos += (int32)ofs;
if (mSelection.Value.mEndPos > index)
mSelection.ValueRef.mEndPos += (int32)ofs;
}
}
@ -3052,8 +3052,8 @@ namespace Beefy.widgets
lineCharIdx--;
if (prevSelection != null)
{
prevSelection.mValue.mStartPos--;
prevSelection.mValue.mEndPos--;
prevSelection.ValueRef.mStartPos--;
prevSelection.ValueRef.mEndPos--;
}
Backspace();
if (c == '\t')

View file

@ -27,7 +27,7 @@ namespace Beefy.widgets
//int mIdx = sIdx++;
//static int sIdx = 0;
internal this()
public this()
{
}
@ -715,7 +715,7 @@ namespace Beefy.widgets
return null;
}
internal virtual ListViewItem CreateListViewItem_Internal()
public virtual ListViewItem CreateListViewItem_Internal()
{
var listViewItem = CreateListViewItem();
listViewItem.Init(this);