{"id":19992,"date":"2022-03-19T08:24:52","date_gmt":"2022-03-19T11:24:52","guid":{"rendered":"http:\/\/maurinsoft.com.br\/index.php\/docs\/wiki-do-maurin\/libescpos\/estrutura-de-classes\/"},"modified":"2022-03-19T08:24:52","modified_gmt":"2022-03-19T11:24:52","slug":"estrutura-de-classes","status":"publish","type":"docs","link":"https:\/\/maurinsoft.com.br\/wp\/en\/docs\/wiki-do-maurin\/libescpos\/estrutura-de-classes\/","title":{"rendered":"Estrutura de classes"},"content":{"rendered":"<h3 class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio wp-block-heading\" id=\"estrutura-da-classe-publicada-para-os-aplicativos\">Estrutura da Classe Publicada para os aplicativos<\/h3>\n\n\n\n<pre class=\"wp-block-code wp-embed-aspect-16-9 wp-has-aspect-ratio\"><code>\ntype CTipoIMP = (TI_DRIVER, TI_SERIAL,  TI_BLUETOOTH);\ntype CModeloIMP = (MI_ELGINI9);\n\ntype CFormat = (FLeft, FCenter, FRigth); (*Formatacao do Texto*)\ntype CTypeText = (TT_NORMAL, TT_DOUBLE, TT_BOLD, TT_UNDERLINE ); (*Tipo do Texto*)\n\n\n  { Timp }\n\ntype TImp = class(tobject)\n    private\n      FDevice: string;\n          LazSerial1: TLazSerial;\n          FSetDevice : string;\n          Ftipoimp : CTipoIMP;\n          Fmodeloimp: CModeloIMP;\n          procedure SetDevice( value: string);\n          procedure SetTipoimp(value : CTipoIMP);\n          procedure Setmodeloimp(value : CModeloIMP);\n    public\n          constructor create(PLazSerial1: TLazSerial);\n          destructor destroy();\n          procedure DefaultSerial();\n          function FormatacaoString(info: string;tam: integer; Formatacao:CFormat; margin: integer): TStringList;\n          procedure TextoSerial(info : string);\n          procedure TextoSerial(info : string; Formatacao : CFormat);\n          procedure TextoSerial(info : string; Formatacao : CFormat; typetext : CTypeText);\n          procedure PrintBARCODE(info : string);\n          procedure LineSerial();\n          procedure close();\n          procedure open;\n          procedure Guilhotina();\n          procedure Gaveta();\n          procedure Beep();\n          procedure EjetarCUPOM();\n          property device : string read FDevice write SetDevice ;\n          property tipoimp : CTipoIMP read Ftipoimp write SetTipoimp;\n          property modeloimp : CModeloIMP read Fmodeloimp write SetModeloImp;\n  end;                     <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"estrutura-da-classe-generica-da-lib\">Estrutura da Classe Gen\u00e9rica da LIB<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>type<br \/>   { TIMP_GENERICO }<br \/>   TIMP_GENERICO = class(TObject)<br \/>     FCOLUNA : integer;<br \/>     FSERIAL : String;<br \/> private<br \/>     function getserial : string;<br \/>     procedure setserial(value : string);<br \/>  public<br \/>    constructor create();<br \/>    destructor destroy();<br \/>    function InitPrint(): string;<br \/>    function NewLine(): string;<br \/>    function LineText(Info : string): string;<br \/>    function Negrito(): string;<br \/>    function Normal(): string;<br \/>    function Sublinhado(): string;<br \/>    function DoubleTexto(): string;<br \/>    function beep(): string;<br \/>    function Guilhotina(): string;<br \/>    function AcionaGaveta(): string;<br \/>    function Barra1D(Info : string): string;<br \/>    function Barra2D(info : String): string;<br \/>    function loadImagem(X,Y : integer; Info : String): string;<br \/>    function imprimeImagem(X,Y : integer): string;<br \/>    property Serial : String read getserial  write setserial;<br \/> end;                      <\/p><\/blockquote>\n\n\n\n<p><\/p>","protected":false},"featured_media":0,"parent":19974,"menu_order":2,"template":"","doc_tag":[],"class_list":["post-19992","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs\/19992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/types\/docs"}],"version-history":[{"count":0,"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs\/19992\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs\/19974"}],"next":[{"title":"Compatibilidade com Hardware","link":"https:\/\/maurinsoft.com.br\/wp\/en\/docs\/wiki-do-maurin\/libescpos\/compatibilidade-com-hardware\/","href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs\/20003"}],"prev":[{"title":"Ferramenta de Teste","link":"https:\/\/maurinsoft.com.br\/wp\/en\/docs\/wiki-do-maurin\/libescpos\/ferramenta-de-teste\/","href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/docs\/19991"}],"wp:attachment":[{"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/media?parent=19992"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/maurinsoft.com.br\/wp\/en\/wp-json\/wp\/v2\/doc_tag?post=19992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}