mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-21 22:51:26 +08:00
Update release
This commit is contained in:
@@ -99,7 +99,19 @@ message ControllerGetScreenConfig
|
||||
message ControllerConnectionEstablished {}
|
||||
message ControllerConnectionStopped {}
|
||||
|
||||
event ControllerConnect {}
|
||||
enum CharacterEncoding
|
||||
{
|
||||
UTF8,
|
||||
UTF16,
|
||||
UTF32,
|
||||
}
|
||||
|
||||
struct ControllerGlobalConfig
|
||||
{
|
||||
var documentCaretFromEncoding : CharacterEncoding;
|
||||
}
|
||||
|
||||
event ControllerConnect { request: ControllerGlobalConfig; }
|
||||
event ControllerDisconnect {}
|
||||
event ControllerRequestExit {}
|
||||
event ControllerForceExit {}
|
||||
|
||||
@@ -11,8 +11,7 @@ enum RendererType
|
||||
SolidLabel,
|
||||
Polygon,
|
||||
ImageFrame,
|
||||
UnsupportedColorizedText,
|
||||
UnsupportedDocument,
|
||||
DocumentParagraph,
|
||||
}
|
||||
|
||||
struct RendererCreation
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
[@Cpp(::vl::presentation::elements::IGuiGraphicsParagraph::BreakCondition)]
|
||||
[@CppNamespace(::vl::presentation::elements::IGuiGraphicsParagraph)]
|
||||
enum BreakCondition
|
||||
{
|
||||
StickToPreviousRun,
|
||||
StickToNextRun,
|
||||
Alone,
|
||||
}
|
||||
|
||||
[@Cpp(::vl::presentation::elements::IGuiGraphicsParagraph::CaretRelativePosition)]
|
||||
[@CppNamespace(::vl::presentation::elements::IGuiGraphicsParagraph)]
|
||||
enum CaretRelativePosition
|
||||
{
|
||||
CaretFirst,
|
||||
CaretLast,
|
||||
CaretLineFirst,
|
||||
CaretLineLast,
|
||||
CaretMoveLeft,
|
||||
CaretMoveRight,
|
||||
CaretMoveUp,
|
||||
CaretMoveDown,
|
||||
}
|
||||
|
||||
struct DocumentTextRunProperty
|
||||
{
|
||||
var textColor : color;
|
||||
var backgroundColor : color;
|
||||
var fontProperties : FontProperties;
|
||||
}
|
||||
|
||||
struct DocumentInlineObjectRunProperty
|
||||
{
|
||||
var size : Size;
|
||||
var baseline : int;
|
||||
var breakCondition : BreakCondition;
|
||||
var backgroundElementId : int;
|
||||
var callbackId : int;
|
||||
}
|
||||
|
||||
union DocumentRunProperty
|
||||
{
|
||||
DocumentTextRunProperty,
|
||||
DocumentInlineObjectRunProperty,
|
||||
}
|
||||
|
||||
struct DocumentRun
|
||||
{
|
||||
var caretBegin : int;
|
||||
var caretEnd : int;
|
||||
var props : DocumentRunProperty;
|
||||
}
|
||||
|
||||
struct ElementDesc_DocumentParagraph
|
||||
{
|
||||
var id : int;
|
||||
var text : string?;
|
||||
var wrapLine : bool;
|
||||
var maxWidth : int;
|
||||
var alignment : ElementHorizontalAlignment;
|
||||
var runsDiff : DocumentRun[];
|
||||
var createdInlineObjects : int[];
|
||||
var removedInlineObjects : int[];
|
||||
}
|
||||
|
||||
message RendererUpdateElement_DocumentParagraph { request: ElementDesc_DocumentParagraph; response: Size; }
|
||||
|
||||
struct GetCaretRequest
|
||||
{
|
||||
var caret : int;
|
||||
var relativePosition : CaretRelativePosition;
|
||||
}
|
||||
|
||||
struct GetCaretResponse
|
||||
{
|
||||
var newCaret : int;
|
||||
var preferFrontSide : bool;
|
||||
}
|
||||
|
||||
struct GetCaretBoundsRequest
|
||||
{
|
||||
var caret : int;
|
||||
var frontSide : bool;
|
||||
}
|
||||
|
||||
struct OpenCaretRequest
|
||||
{
|
||||
var caret : int;
|
||||
var caretColor : color;
|
||||
var frontSide : bool;
|
||||
}
|
||||
|
||||
message DocumentParagraph_GetCaret { request: GetCaretRequest; response: GetCaretResponse; }
|
||||
message DocumentParagraph_GetCaretBounds { request: GetCaretBoundsRequest; response: Rect; }
|
||||
message DocumentParagraph_GetInlineObjectFromPoint { request: Point; response: DocumentRun?; }
|
||||
message DocumentParagraph_GetNearestCaretFromTextPos { request: GetCaretBoundsRequest; response: int; }
|
||||
message DocumentParagraph_IsValidCaret { request: int; response: bool; }
|
||||
message DocumentParagraph_OpenCaret { request: OpenCaretRequest; }
|
||||
message DocumentParagraph_CloseCaret {}
|
||||
|
||||
struct RenderInlineObjectRequest
|
||||
{
|
||||
var callbackId : int;
|
||||
var location : Rect;
|
||||
}
|
||||
|
||||
event DocumentParagraph_RenderInlineObjects { request: RenderInlineObjectRequest[]; }
|
||||
@@ -9,6 +9,7 @@ union UnitTest_ElementDescVariant
|
||||
ElementDesc_Polygon,
|
||||
ElementDesc_SolidLabel,
|
||||
ElementDesc_ImageFrame,
|
||||
ElementDesc_DocumentParagraph,
|
||||
}
|
||||
|
||||
struct UnitTest_RenderingFrame
|
||||
|
||||
@@ -3,6 +3,7 @@ Protocol_MainWindow
|
||||
Protocol_IO
|
||||
Protocol_Renderer_BasicElements
|
||||
Protocol_Renderer_ImageFrame
|
||||
Protocol_Renderer_Document
|
||||
Protocol_Renderer
|
||||
Protocol_SyncDom
|
||||
Protocol_UnitTest
|
||||
Reference in New Issue
Block a user