// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/gui/widgets/multi/list/listboxheader.cpp
// Function: smooth::GUI::ListBoxHeader::ListBoxHeader(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::GUI::ListBoxHeader::ListBoxHeader(const Point &iPos, const Size &iSize) : Widget(iPos, iSize)
{
	moveTab		  = -1;
	draggingTab	  = False;

	moveTabStartWidth = 0;
	lastTabStartWidth = 0;

	type		  = classID;

	font.SetWeight(Font::Bold);

	dragHotspot	  = new Hotspot(Point(0, 0), GetSize());
	dragHotspot->SetIndependent(True);
	dragHotspot->onMouseDragStart.Connect(&ListBoxHeader::OnMouseDragStart, this);
	dragHotspot->onMouseDrag.Connect(&ListBoxHeader::OnMouseDrag, this);
	dragHotspot->onMouseDragEnd.Connect(&ListBoxHeader::OnMouseDragEnd, this);
	dragHotspot->onLeftButtonClick.Connect(&ListBoxHeader::OnLeftButtonClick, this);

	Add(dragHotspot);

	onChangeSize.Connect(&ListBoxHeader::OnChangeSize, this);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x57a30
movq 0xe797b(%rip), %rax     # 0x16cb18
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x5c0(%rbx)
leaq 0x5d8(%rbx), %r14
movq %r14, %rdi
callq 0x55d90
leaq 0xdc0cb(%rip), %rax     # 0x161290
movq %rax, 0x618(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x620(%rbx)
leaq 0xdc013(%rip), %rax     # 0x1611f0
movq %rax, 0x5d8(%rbx)
leaq 0x630(%rbx), %r15
movq %r15, %rdi
callq 0x55d90
leaq 0xe1426(%rip), %r13     # 0x166620
movq %r13, 0x670(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x678(%rbx)
leaq 0xe136e(%rip), %rbp     # 0x166580
movq %rbp, 0x630(%rbx)
leaq 0x688(%rbx), %r12
movq %r12, %rdi
callq 0x55d90
movq %r13, 0x6c8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x6d0(%rbx)
movq %rbp, 0x688(%rbx)
leaq 0x6e0(%rbx), %r13
movq %r13, %rdi
callq 0x55d90
leaq 0xe040a(%rip), %rax     # 0x165660
movq %rax, 0x720(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x728(%rbx)
leaq 0xe0352(%rip), %rax     # 0x1655c0
movq %rax, 0x6e0(%rbx)
xorl %eax, %eax
movq %rax, 0x740(%rbx)
leaq 0xddaf3(%rip), %rcx     # 0x162d78
movq %rcx, 0x738(%rbx)
movups %xmm0, 0x748(%rbx)
movl $0xffffffff, 0x5b8(%rbx) # imm = 0xFFFFFFFF
movb $0x0, 0x5bc(%rbx)
movq %rax, 0x5c8(%rbx)
movq 0xe742e(%rip), %rax     # 0x16c6e0
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
leaq 0x140(%rbx), %rdi
movq 0xe7181(%rip), %rax     # 0x16c448
movswl (%rax), %esi
callq 0x574e0
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x556b0
movq %rax, %rbp
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rax, %rdi
callq 0x55a30
movq %rbp, 0x5d0(%rbx)
movb $0x1, 0xcf(%rbp)
addq $0x3f8, %rbp            # imm = 0x3F8
movq 0xe728d(%rip), %rsi     # 0x16c5a0
movq %rbp, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x863a0
movl $0x418, %edi            # imm = 0x418
addq 0x5d0(%rbx), %rdi
movq 0xe7405(%rip), %rsi     # 0x16c738
xorl %edx, %edx
movq %rbx, %rcx
callq 0x863a0
movl $0x438, %edi            # imm = 0x438
addq 0x5d0(%rbx), %rdi
movq 0xe7138(%rip), %rsi     # 0x16c488
xorl %edx, %edx
movq %rbx, %rcx
callq 0x863a0
movl $0x338, %edi            # imm = 0x338
addq 0x5d0(%rbx), %rdi
movq 0xe794b(%rip), %rsi     # 0x16ccb8
xorl %edx, %edx
movq %rbx, %rcx
callq 0x863a0
movq 0x5d0(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
leaq 0x298(%rbx), %rdi
movq 0xe79f3(%rip), %rsi     # 0x16cd88
xorl %edx, %edx
movq %rbx, %rcx
callq 0x8645e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movl $0x5b8, %esi            # imm = 0x5B8
movq %rbp, %rdi
callq 0x55480
jmp 0x853e3
movq %rax, 0x8(%rsp)
jmp 0x853f7
movq %rax, 0x8(%rsp)
jmp 0x853ff
movq %rax, 0x8(%rsp)
jmp 0x85407
movq %rax, 0x8(%rsp)
jmp 0x8540f
movq %rax, 0x8(%rsp)
leaq 0x738(%rbx), %rdi
callq 0x72cce
movq %r13, %rdi
callq 0x80b52
movq %r12, %rdi
callq 0x8651c
movq %r15, %rdi
callq 0x8651c
movq %r14, %rdi
callq 0x63e08
movq %rbx, %rdi
callq 0x57640
movq 0x8(%rsp), %rdi
callq 0x57090
nop